diff options
author | Slávek Banko <[email protected]> | 2019-02-10 16:49:55 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-02-10 16:50:11 +0100 |
commit | 5e2efcc212cf7e28af6702467f74528bb50de577 (patch) | |
tree | 1b25660525e34e052a4946a8de337341a340ac59 /CMakeLists.txt | |
parent | 2b10fa4a652842fd0236799a9fbe8bf7f0f9dea5 (diff) | |
download | gtk-qt-engine-5e2efcc212cf7e28af6702467f74528bb50de577.tar.gz gtk-qt-engine-5e2efcc212cf7e28af6702467f74528bb50de577.zip |
Use common CMake tests.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit b5da70f35248145bf66d137470952bcab9e16494)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 947a797..173c8fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,8 +17,10 @@ include( CheckCSourceRuns ) include( CheckCXXSourceCompiles ) include( CheckLibraryExists ) include( CheckFunctionExists ) +include( CheckSymbolExists ) include( CheckStructHasMember ) + ##### include our cmake modules ################# set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) @@ -30,6 +32,7 @@ include( TDEMacros ) include( TDESetupPaths ) tde_setup_paths( ) + ##### set PKG_CONFIG_PATH ####################### set( ENV{PKG_CONFIG_PATH} "${PKG_CONFIG_PATH}:$ENV{PKG_CONFIG_PATH}:${LIB_INSTALL_DIR}/pkgconfig" ) @@ -50,6 +53,7 @@ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ) + INCLUDE (UsePkgConfig) # Find GTK @@ -70,33 +74,6 @@ ELSE (NOT BONOBO_INCLUDE_DIR) SET(BONOBO_DEFINITIONS -D HAVE_BONOBO) ENDIF (NOT BONOBO_INCLUDE_DIR) -# Find msgfmt -SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules) -FIND_PACKAGE(Msgfmt REQUIRED) - -# Find xgettext -FIND_PROGRAM( - XGETTEXT_PATH - NAMES "xgettext" - PATHS "/usr/bin" -) -IF(${XGETTEXT_PATH} STREQUAL "XGETTEXT_PATH-NOTFOUND") - MESSAGE(STATUS "xgettext not found. You will not be able to run 'make extract_messages' in the 'po' directory.") -ELSE(${XGETTEXT_PATH} STREQUAL "XGETTEXT_PATH-NOTFOUND") - MESSAGE(STATUS "Found xgettext: ${XGETTEXT_PATH}") -ENDIF(${XGETTEXT_PATH} STREQUAL "XGETTEXT_PATH-NOTFOUND") - -# Find extractrc -FIND_PROGRAM( - EXTRACTRC_PATH - NAMES "extractrc" - PATHS "/usr/bin" -) -IF(${EXTRACTRC_PATH} STREQUAL "EXTRACTRC_PATH-NOTFOUND") - MESSAGE(STATUS "extractrc not found. You will not be able to run 'make extract_messages' in the 'po' directory.") -ELSE(${EXTRACTRC_PATH} STREQUAL "EXTRACTRC_PATH-NOTFOUND") - MESSAGE(STATUS "Found extractrc: ${EXTRACTRC_PATH}") -ENDIF(${EXTRACTRC_PATH} STREQUAL "EXTRACTRC_PATH-NOTFOUND") # Work out where to install stuff EXEC_PROGRAM( |