install as component devel

svn path=/branches/work/~ervin/qtjolie/; revision=1018785
This commit is contained in:
Laurent Montel 2009-09-02 07:50:40 +00:00
parent 677240d7b4
commit 083c419616

View File

@ -1,3 +1,5 @@
project(QtJolie)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../
${CMAKE_CURRENT_BINARY_DIR}
@ -18,14 +20,14 @@ set(qtjolie_LIB_SRCS
serverthread.cpp
)
kde4_add_library(QtJoliePlasmaPrivate SHARED ${qtjolie_LIB_SRCS})
kde4_add_library(QtJolie SHARED ${qtjolie_LIB_SRCS})
target_link_libraries(QtJoliePlasmaPrivate ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY})
target_link_libraries(QtJolie ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY})
install(TARGETS QtJoliePlasmaPrivate
install(TARGETS QtJolie
DESTINATION ${LIB_INSTALL_DIR})
set_target_properties(QtJoliePlasmaPrivate PROPERTIES VERSION 1.0.0 SOVERSION 1)
set_target_properties(QtJolie PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(FILES
abstractadaptor.h
@ -38,12 +40,12 @@ install(FILES
pendingcallwatcher.h
pendingreply.h
server.h
DESTINATION ${INCLUDE_INSTALL_DIR}/qtjolie)
DESTINATION ${INCLUDE_INSTALL_DIR}/qtjolie COMPONENT Devel)
if(NOT WIN32) # pkgconfig file
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/QtJolie.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/QtJoliePlasmaPrivate.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/QtJoliePlasmaPrivate.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/QtJolie.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/QtJolie.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/QtJolie.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
endif(NOT WIN32)
configure_file("QtJolie.prf.cmake" "${CMAKE_BINARY_DIR}/QtJoliePlasmaPrivate.prf" @ONLY)
install(FILES "${CMAKE_BINARY_DIR}/QtJoliePlasmaPrivate.prf" DESTINATION ${CMAKE_INSTALL_PREFIX}/mkspecs/features)
configure_file("QtJolie.prf.cmake" "${CMAKE_BINARY_DIR}/QtJolie.prf" @ONLY)
install(FILES "${CMAKE_BINARY_DIR}/QtJolie.prf" DESTINATION ${CMAKE_INSTALL_PREFIX}/mkspecs/features)