summaryrefslogtreecommitdiffstats
path: root/qtmcop
diff options
context:
space:
mode:
Diffstat (limited to 'qtmcop')
-rw-r--r--qtmcop/CMakeLists.txt40
1 files changed, 19 insertions, 21 deletions
diff --git a/qtmcop/CMakeLists.txt b/qtmcop/CMakeLists.txt
index c972153..dbb73bf 100644
--- a/qtmcop/CMakeLists.txt
+++ b/qtmcop/CMakeLists.txt
@@ -15,36 +15,34 @@ add_definitions(
include_directories(
${TQT_INCLUDE_DIRS}
- ${CMAKE_CURRENT_BINARY_DIR} # for qiomanager_p.moc
- ${CMAKE_BINARY_DIR}/mcop # for arts_export.h
- ${CMAKE_SOURCE_DIR}/mcop # for iomanager.h, etc.
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/mcop
+ ${CMAKE_SOURCE_DIR}/mcop
)
link_directories(
${TQT_LIBRARY_DIRS}
)
-add_custom_command(
- OUTPUT qiomanager_p.moc
- COMMAND moc-tqt ARGS ${QT_MOC_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qiomanager_p.h qiomanager_p.moc
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/qiomanager_p.h
-)
-set( qtmcop_INCS
- qiomanager.h
-)
+##### headers ###################################
-set( qtmcop_SRCS
- qiomanager.cc
- qiomanager_p.moc
-)
+install( FILES
+ qiomanager.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
-add_library( qtmcop SHARED ${qtmcop_SRCS} )
-set_target_properties( qtmcop PROPERTIES VERSION 1.0 SOVERSION 1 )
-target_link_libraries( qtmcop ${TQT_LIBRARIES} mcop )
+##### qtmcop ##############################
-##### install ###################################
+add_custom_command(
+ OUTPUT qiomanager_p.moc
+ COMMAND tmoc ${CMAKE_CURRENT_SOURCE_DIR}/qiomanager_p.h -o qiomanager_p.moc
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/qiomanager_p.h
+)
-install( FILES ${qtmcop_INCS} DESTINATION ${INCLUDE_INSTALL_DIR} )
-install(TARGETS qtmcop LIBRARY DESTINATION ${LIB_INSTALL_DIR} ) \ No newline at end of file
+tde_add_library( qtmcop SHARED
+ SOURCES qiomanager.cc qiomanager_p.moc
+ VERSION 1.0.0
+ LINK mcop-shared ${TQT_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)