added missing fields of CMakeList.txt
this fixed cmake error for me
This commit is contained in:
parent
8498c785a6
commit
4569752903
@ -1,6 +1,7 @@
|
|||||||
# Copyright (c) 2011 Milo Yip (miloyip@gmail.com)
|
# Copyright (c) 2011 Milo Yip (miloyip@gmail.com)
|
||||||
# Copyright (c) 2013 Rafal Jeczalik (rjeczalik@gmail.com)
|
# Copyright (c) 2013 Rafal Jeczalik (rjeczalik@gmail.com)
|
||||||
# Distributed under the MIT License (see license.txt file)
|
# Distributed under the MIT License (see license.txt file)
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
set(EXAMPLES
|
set(EXAMPLES
|
||||||
capitalize
|
capitalize
|
||||||
@ -14,6 +15,8 @@ set(EXAMPLES
|
|||||||
simplewriter
|
simplewriter
|
||||||
tutorial)
|
tutorial)
|
||||||
|
|
||||||
|
include_directories("../include/")
|
||||||
|
|
||||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default")
|
||||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user