]> git.cworth.org Git - apitrace-tests/blobdiff - CMakeLists.txt
Set default build type to debug.
[apitrace-tests] / CMakeLists.txt
index 32c3029ebd9252e0a0726668530bfa0fa6834727..907f0ba20737c739dfdaa7534fdde21f7352fa9a 100644 (file)
@@ -2,6 +2,14 @@ cmake_minimum_required (VERSION 2.8)
 
 project (apitrace-tests)
 
+# Set default built type
+if (NOT CMAKE_BUILD_TYPE)
+   set (CMAKE_BUILD_TYPE Debug
+       CACHE
+       STRING "Choose the build type, options are: None, Debug, Release, RelWithDebInfo, or MinSizeRel."
+       FORCE)
+endif (NOT CMAKE_BUILD_TYPE)
+
 find_package (OpenGL REQUIRED)
 find_package (GLUT)
 
@@ -51,5 +59,11 @@ if (MSVC)
        add_definitions (-wd4244) # conversion' conversion from 'type1' to 'type2', possible loss of data
 endif ()
 
+
+set (APITRACE_BINARY_DIR "${CMAKE_BINARY_DIR}/.." CACHE PATH "apitrace build directory")
+
+
+enable_testing()
+
 add_subdirectory (apps)