QT4_ADD_RESOURCES(_RCCS ${quassel_RCCS})
+SET(TARGET_LIST )
+
IF(BUILD_CORE)
ADD_DEFINITIONS(-DBUILD_CORE)
ADD_EXECUTABLE(quasselcore ${quassel_core_SRCS} ${_RCCS})
TARGET_LINK_LIBRARIES(quasselcore core main ${QT_LIBRARIES})
+ SET(TARGET_LIST ${TARGET_LIST} quasselcore)
ENDIF(BUILD_CORE)
IF(BUILD_GUI OR BUILD_MONO) # OK, now we need QtGui!
ADD_DEFINITIONS(-DBUILD_MONO)
ADD_EXECUTABLE(quassel ${quassel_mono_SRCS} ${_RCCS})
TARGET_LINK_LIBRARIES(quassel gui core main ${QT_LIBRARIES})
+ SET(TARGET_LIST ${TARGET_LIST} quassel)
ENDIF(BUILD_MONO)
IF(BUILD_GUI)
ADD_DEFINITIONS(-DBUILD_GUI)
ADD_EXECUTABLE(quasselgui ${quassel_gui_SRCS} ${_RCCS})
TARGET_LINK_LIBRARIES(quasselgui gui main ${QT_LIBRARIES})
+ SET(TARGET_LIST ${TARGET_LIST} quasselgui)
ENDIF(BUILD_GUI)
ENDIF(BUILD_GUI OR BUILD_MONO)
+
+INSTALL(TARGETS ${TARGET_LIST}
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib/static)