diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-09-11 02:29:12 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-09-11 02:29:20 +0200 |
commit | 3bbed5fde52d566ac395133a059ed86d74db9d7a (patch) | |
tree | 336be799a9f6bfbaea03eb4a21b2f492f0aef3bf /CMakeLists.txt | |
parent | af3beba6a83f1c70924101fc84e028a32c72065f (diff) | |
download | tqtinterface-3bbed5fde52d566ac395133a059ed86d74db9d7a.tar.gz tqtinterface-3bbed5fde52d566ac395133a059ed86d74db9d7a.zip |
cmake: Add BUILD_ALL and WITH_ALL_OPTIONS for consistency with other modules
Added warning for building TQt interface based on Qt4
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5c2dda650e168f597899912c2a111d2c84b4771d)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f40664f..b23f4a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,11 +23,12 @@ cmake_minimum_required( VERSION 2.8 ) include( CheckCXXSourceCompiles ) + +##### include our cmake modules ################# + set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) include( TDEMacros ) -include( ConfigureChecks.cmake ) - ##### install paths setup ####################### @@ -38,6 +39,24 @@ tde_setup_install_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/t tde_setup_install_path( PKGCONFIG_INSTALL_DIR "${LIB_INSTALL_DIR}/pkgconfig" ) +##### optional stuff ############################ + +option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) + +option( WITH_QT3 "Build TQt interface based on TQt3" ${WITH_ALL_OPTIONS} ) +option( WITH_QT4 "Build TQt interface based on Qt4" OFF ) + + +##### user requested modules #################### + +option( BUILD_ALL "Build all" OFF ) + + +##### configure checks ########################## + +include( ConfigureChecks.cmake ) + + ##### tqtinterface sources ###################### add_subdirectory( qtinterface ) |