diff options
author | Michele Calgaro <[email protected]> | 2019-04-27 00:21:43 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2019-04-27 00:21:43 +0900 |
commit | f9c9e15267bd0319a8190ba146d7be95c37dac2e (patch) | |
tree | 1180022eddef0ffc8f44b030e721b6efef4f8b2a /CMakeLists.txt | |
parent | 7d3c2ed4e8cdf9292059a4fc8f3678ca9d1d7c5c (diff) | |
download | dbus-1-tqt-f9c9e15267bd0319a8190ba146d7be95c37dac2e.tar.gz dbus-1-tqt-f9c9e15267bd0319a8190ba146d7be95c37dac2e.zip |
Moved source files to "src" folder.
Signed-off-by: Michele Calgaro <[email protected]>
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/" - ) |