Forráskód Böngészése

Update CMakeLists.txt

Daniele Bartolini 13 éve
szülő
commit
e9bb8eea73
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      CMakeLists.txt

+ 5 - 1
CMakeLists.txt

@@ -7,6 +7,7 @@ option (CROWN_BUILD_OPENGL "Whether to build the OpenGL renderer or not." ON)
 option (CROWN_BUILD_OPENGLES "Whether to build the OpenGL|ES 1.0 renderer or not." OFF)
 option (CROWN_BUILD_OPENGLES "Whether to build the OpenGL|ES 1.0 renderer or not." OFF)
 option (CROWN_BUILD_SAMPLES "Whether to build the samples" ON)
 option (CROWN_BUILD_SAMPLES "Whether to build the samples" ON)
 option (CROWN_BUILD_TOOLS "Whether to build the tools" ON)
 option (CROWN_BUILD_TOOLS "Whether to build the tools" ON)
+option (CROWN_BUILD_TESTS "Whether to build unit tests" ON)
 
 
 set (INCLUDES
 set (INCLUDES
 	${CMAKE_SOURCE_DIR}/src
 	${CMAKE_SOURCE_DIR}/src
@@ -42,4 +43,7 @@ endif (CROWN_BUILD_TOOLS)
 if (CROWN_BUILD_SAMPLES)
 if (CROWN_BUILD_SAMPLES)
 add_subdirectory(samples)
 add_subdirectory(samples)
 endif (CROWN_BUILD_SAMPLES)
 endif (CROWN_BUILD_SAMPLES)
- 
+
+if (CROWN_BUILD_TESTS)
+add_subdirectory(tests)
+endif (CROWN_BUILD_TESTS)