浏览代码

Expose BUILD_TESTS as (advanced) CMake option

This makes it easier to set BUILD_TESTS (introduced in
87ea0392b477cf1397d835a48c1e7fdaceeed79b) from ccmake/cmake-gui
Palana 10 年之前
父节点
当前提交
a14d003955
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      CMakeLists.txt

+ 3 - 0
CMakeLists.txt

@@ -74,6 +74,9 @@ elseif(UNIX AND NOT UNIX_STRUCTURE)
 	list(APPEND CMAKE_INSTALL_RPATH "$ORIGIN")
 endif()
 
+option(BUILD_TESTS "Build test directory (includes test sources and possibly a platform test executable)" FALSE)
+mark_as_advanced(BUILD_TESTS)
+
 if(NOT INSTALLER_RUN)
 	add_subdirectory(deps)