|
|
|
@ -0,0 +1,66 @@
|
|
|
|
|
################################################# |
|
|
|
|
# |
|
|
|
|
# (C) 2010-2011 Serghei Amelian |
|
|
|
|
# serghei (DOT) amelian (AT) gmail.com |
|
|
|
|
# |
|
|
|
|
# Improvements and feedback are welcome |
|
|
|
|
# |
|
|
|
|
################################################# |
|
|
|
|
|
|
|
|
|
cmake_minimum_required( VERSION 2.8 ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### general package setup ##################### |
|
|
|
|
|
|
|
|
|
project( khdapsmonitor ) |
|
|
|
|
|
|
|
|
|
set( PACKAGE kdebase ) |
|
|
|
|
set( VERSION "3.5.13" ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### include essential cmake modules ########### |
|
|
|
|
|
|
|
|
|
include( FindPkgConfig ) |
|
|
|
|
include( CheckIncludeFile ) |
|
|
|
|
include( CheckCSourceRuns ) |
|
|
|
|
include( CheckCXXSourceCompiles ) |
|
|
|
|
include( CheckLibraryExists ) |
|
|
|
|
include( CheckFunctionExists ) |
|
|
|
|
include( CheckStructHasMember ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### include our cmake modules ################# |
|
|
|
|
|
|
|
|
|
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) |
|
|
|
|
include( TDEMacros ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### setup install paths ####################### |
|
|
|
|
|
|
|
|
|
include( TDESetupPaths ) |
|
|
|
|
tde_setup_paths( ) |
|
|
|
|
|
|
|
|
|
find_package( TQt ) |
|
|
|
|
find_package( TDE ) |
|
|
|
|
|
|
|
|
|
##### set PKG_CONFIG_PATH ####################### |
|
|
|
|
|
|
|
|
|
set( ENV{PKG_CONFIG_PATH} "${PKG_CONFIG_PATH}:$ENV{PKG_CONFIG_PATH}:${LIB_INSTALL_DIR}/pkgconfig" ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### configure checks ########################## |
|
|
|
|
|
|
|
|
|
###### global compiler settings ################# |
|
|
|
|
|
|
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) |
|
|
|
|
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" ) |
|
|
|
|
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### kdebase directories ####################### |
|
|
|
|
|
|
|
|
|
add_subdirectory( src ) |
|
|
|
|
|
|
|
|
|
##### write configure files ##################### |
|
|
|
|
|
|
|
|
|
configure_file( config.h.cmake config.h @ONLY ) |