diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7eff7cb..0d0a2d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,12 +9,20 @@ # ################################################# -project( dbus-tqt-1 ) +##### set project version ######################## + +include( TDEVersion ) +cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} ) +tde_set_project_version( ) + + +##### general package setup ##################### -##### cmake setup ############################### +project( dbus-tqt-1 ) -cmake_minimum_required( VERSION 3.5 ) + +##### include essential cmake modules ########### include( FindPkgConfig ) include( CheckCXXSourceCompiles ) @@ -24,11 +32,6 @@ include( TDEMacros ) include( ConfigureChecks.cmake ) -##### set version number ######################## - -tde_set_project_version( ) - - ##### install paths setup ####################### tde_setup_install_path( EXEC_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" ) @@ -60,7 +63,6 @@ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/dbus-tqt.pc DESTINATION ${PKGCONFIG_I ##### build setup ############################### -set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) add_definitions( |