From e6215e764bc149497ab5772d9ea136809d898993 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 8 Dec 2017 01:23:27 +0000 Subject: Improving api --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c5e13ab4..08b9ec36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,10 @@ project(yage VERSION 0.1.1.0 LANGUAGES CXX) +if(NOT DEFINED UNIT_TESTS) + set(UNIT_TESTS 0) +endif() + # set standard set(CMAKE_CXX_STANDARD 14) @@ -23,7 +27,7 @@ find_package(OpenGL REQUIRED) include(${CMAKE_CURRENT_SOURCE_DIR}/lib/CMakeLists.txt) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/yage) -if($ENV{UNIT_TESTS}) +if(UNIT_TESTS) add_executable(simplegame tests/simplegame.cpp) target_link_libraries(simplegame yage) -- cgit