diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 67 |
1 files changed, 7 insertions, 60 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5097178..880eec2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,19 +44,6 @@ tde_setup_install_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/$ tde_setup_install_path( PKGCONFIG_INSTALL_DIR "${LIB_INSTALL_DIR}/pkgconfig" ) -##### install headers ########################### - -install( FILES - tqdbuserror.h tqdbusmessage.h tqdbusconnection.h - tqdbusvariant.h tqdbusobject.h tqdbusproxy.h - tqdbusmacros.h tqdbusdata.h tqdbusdatalist.h - tqdbusdatamap.h tqdbusobjectpath.h tqdbusunixfd.h - tqdbusdataconverter.h - DESTINATION ${INCLUDE_INSTALL_DIR} ) - - -##### install other data ######################## - ##### write pkgconfig file ###################### string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} ) @@ -68,8 +55,9 @@ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/dbus-1-tqt.pc DESTINATION ${PKGCONFIG ##### build setup ############################### -set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" ) +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" ) add_definitions( -DDBUS_COMPILATION @@ -77,57 +65,16 @@ add_definitions( ${TQT_CFLAGS_OTHER} ) -include_directories( - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_SOURCE_DIR} - ${TQT_INCLUDE_DIRS} - ${DBUS_INCLUDE_DIRS} -) - -link_directories( - ${TQT_LIBRARY_DIRS} -) - - -##### dbus-1-tqt (shared) ######################### +set( APIDOX_HTML_DIRECTORY "usr/share/doc/libdbus-1-tqt/HTML" ) +set( APIDOX_DIRECTORY "${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY}/en" ) -tde_add_library( dbus-1-tqt SHARED AUTOMOC - SOURCES ${dbus_tqt_MOCS} - tqdbusconnection.cpp tqdbuserror.cpp tqdbusintegrator.cpp - tqdbusmarshall.cpp tqdbusmessage.cpp tqdbusserver.cpp - tqdbusproxy.cpp tqdbusdata.cpp tqdbusdatalist.cpp - tqdbusobjectpath.cpp tqdbusunixfd.cpp - tqdbusdataconverter.cpp - VERSION 0.0.0 - LINK ${TQT_LIBRARIES} ${DBUS_LIBRARIES} - DESTINATION ${LIB_INSTALL_DIR} -) +##### source directories ######################## -##### dbusxml2qt3 (executable) ################## +add_subdirectory( src ) -tde_add_executable( dbusxml2qt3 - SOURCES - tools/dbusxml2qt3/classgen.cpp - tools/dbusxml2qt3/main.cpp - tools/dbusxml2qt3/methodgen.cpp - LINK ${TQT_LIBRARIES} - DESTINATION ${BIN_INSTALL_DIR} -) +##### write configure files ##################### -##### add apidox targets ############ -set( APIDOX_HTML_DIRECTORY "usr/share/doc/libdbus-1-tqt/HTML" ) -set( APIDOX_DIRECTORY "${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY}/en" ) configure_file( ${CMAKE_SOURCE_DIR}/dbus-1-tqt.Doxyfile.in ${CMAKE_BINARY_DIR}/dbus-1-tqt.Doxyfile ) -add_custom_target( apidox - COMMAND test -d ${APIDOX_DIRECTORY} || mkdir -p ${APIDOX_DIRECTORY} - COMMAND doxygen ${CMAKE_BINARY_DIR}/dbus-1-tqt.Doxyfile - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - ) - -add_custom_target( install-apidox - COMMAND "./install_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${APIDOX_HTML_DIRECTORY}" - WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/" - ) |