diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..5b8ac2c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,79 @@ +################################################# +# +# (C) 2018 Emanoil Kotsev +# deloptes (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +cmake_minimum_required( VERSION 2.8 ) + + +##### general package setup ##################### + +project( tdebluez ) +set( PACKAGE tdebluez ) +set( VERSION R14.1.0 ) + + +##### include essential cmake modules ########### + +include( FindPkgConfig ) +include( CheckIncludeFile ) +include( CheckTypeSize ) +include( CheckCSourceCompiles ) +include( CheckCXXSourceCompiles ) +include( CheckLibraryExists ) + +##### include our cmake modules ################# +include( TDEMacros ) + +##### setup install paths ####################### +include( TDESetupPaths ) +tde_setup_paths( ) + +if( NOT DBUS_SYS_DIR ) + set( DBUS_SYS_DIR ${SYSCONF_INSTALL_DIR}/dbus-1/system.d ) +endif( ) + +##### add apidox targets ############ +add_custom_target(apidox + COMMAND "./generate_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${HTML_INSTALL_DIR}" "/usr/share/tdebluez/doc/html" + WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/") + +add_custom_target(install-apidox + COMMAND "./install_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${HTML_INSTALL_DIR}" "${CMAKE_INSTALL_PREFIX}" + WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/") + +##### optional stuff ############################ +option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) + +##### user requested modules #################### +option( BUILD_ALL "Build all" ON ) +option( BUILD_LIBTDEBLUEZ "Build libtdebluez" ON ) +option( BUILD_TDEIOSLAVE "Build tdeioslave" ${BUILD_ALL} ) +option( BUILD_DOC "Build doc" ${BUILD_ALL} ) + +##### configure checks ########################## +# if configure checks need be executed +include( ConfigureChecks.cmake ) + +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) +set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) +#-Wl,--whole-archive +set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ) + +##### activate dependencies ##################### +add_subdirectory( src/tdebluez-common ) +add_subdirectory( src/libtdebluez ) +add_subdirectory( src/libtdeobex ) +add_subdirectory( src/tdeioclient ) +add_subdirectory( src/tdeioslave ) +add_subdirectory( src/tdebluez ) +add_subdirectory( src/tdebluezauth ) + +tde_conditional_add_subdirectory( BUILD_DOC doc ) +tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) |