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)
+
+include (CMakeParseArguments)
+
find_package (OpenGL REQUIRED)
find_package (GLUT)
add_definitions (-wd4244) # conversion' conversion from 'type1' to 'type2', possible loss of data
endif ()
+if (NOT APITRACE_BINARY_DIR)
+ set (APITRACE_BINARY_DIR "${CMAKE_BINARY_DIR}/.." CACHE PATH "apitrace build directory")
+endif ()
+if (NOT EXISTS ${APITRACE_BINARY_DIR})
+ message (SEND_ERROR "Invalid APITRACE_BINARY_DIR")
+endif ()
+
+enable_testing()
+
add_subdirectory (apps)