[Kst] branches/work/kst/portto4/kst/cmake
Peter Kümmel
syntheticpp at gmx.net
Fri Jan 7 13:34:22 CET 2011
SVN commit 1212555 by kuemmel:
cmake: add option kst_release
M +7 -0 CMakeLists.txt
--- branches/work/kst/portto4/kst/cmake/CMakeLists.txt #1212554:1212555
@@ -8,11 +8,18 @@
message(STATUS "")
message(STATUS "Build options:")
message(STATUS "")
+kst_option(release "Build release version" OFF all)
kst_option(merge_files "Merge files to speedup build" OFF all)
kst_option(merge_rebuild "Rebuild generated files from merged files build" OFF all)
message(STATUS "")
+if(kst_release)
+ set(CMAKE_BUILD_TYPE Release)
+else()
+ set(CMAKE_BUILD_TYPE Debug)
+endif()
+
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
More information about the Kst
mailing list