diff options
author | Alec Thomas <alec@swapoff.org> | 2013-02-27 13:14:53 -0800 |
---|---|---|
committer | Alec Thomas <alec@swapoff.org> | 2013-02-27 13:14:53 -0800 |
commit | 87785361dc273e8ae8ed14cc6d55a81ba9c647af (patch) | |
tree | 057fc0a8cf7d308edbb159c670736f7330d8fdfd /CMakeLists.txt | |
parent | 6bb2ed010c3892b3c290e76df0d37583448cc6c7 (diff) | |
parent | bda99099cf02c89977a06251462fecbb6025bf19 (diff) |
Merge pull request #1 from larspensjo/linux-gcc
Enable testing for Linux GCC.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index be77681..c4547c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,7 @@ set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF) find_package(Boost 1.48.0 REQUIRED COMPONENTS signals) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Werror -Wall -Wextra -Wno-unused-parameter -Wno-error=unused-variable -std=c++11") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Werror -Wall -Wextra -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=sign-compare -std=c++11") set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG") set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") @@ -67,9 +67,11 @@ include_directories( ${GTest_INCLUDE_DIR} ) +set(BUILD_TESTING false CACHE BOOL "Enable building of tests") if (BUILD_TESTING) enable_testing() find_package(GTest REQUIRED) + include_directories(${GTEST_INCLUDE_DIRS}) create_test(entity_test entityx/Entity_test.cc) create_test(component_test entityx/Components_test.cc) create_test(event_test entityx/Event_test.cc) |