[Kst] branches/work/kst/portto4/kst/cmake
Peter Kümmel
syntheticpp at gmx.net
Wed Jan 12 15:41:27 CET 2011
SVN commit 1214006 by kuemmel:
cmake: disable tests by default, build on Linux
M +2 -2 CMakeLists.txt
M +3 -3 tests/CMakeLists.txt
--- branches/work/kst/portto4/kst/cmake/CMakeLists.txt #1214005:1214006
@@ -24,7 +24,7 @@
kst_option(install_prefix "Install path for Kst, using a default if not set" OFF all)
kst_option(console "Open console on Windows" OFF win)
kst_option(3rdparty "Build plugins depending on 3rd party libraries" ON all)
-kst_option(tests "Build unit tests" ON all)
+kst_option(tests "Build unit tests" OFF all)
message(STATUS)
@@ -157,4 +157,4 @@
${MINGW_BIN_PATH}/libgcc_s_dw2-1.dll
${MINGW_BIN_PATH}/mingwm10.dll
DESTINATION bin)
-endif()
\ No newline at end of file
+endif()
--- branches/work/kst/portto4/kst/cmake/tests/CMakeLists.txt #1214005:1214006
@@ -1,12 +1,12 @@
project(ksttests)
-kst_init(tests)
-kst_files_find(tests)
+file(GLOB test_headers ${kst_dir}/tests/*.h)
kst_include_directories(kstcore kstmath)
+
add_definitions(-DKST_USE_QTEST_MAIN)
-foreach(header ${kst_tests_headers})
+foreach(header ${test_headers})
get_filename_component(testname ${header} NAME_WE)
kst_init(${testname})
set(moc_file)
More information about the Kst
mailing list