2009-09-02 09:50:40 +02:00
|
|
|
project(QtJolie)
|
|
|
|
|
2009-04-25 14:26:01 +02:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
2009-04-25 16:06:25 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../
|
2009-04-25 14:26:01 +02:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${QT_INCLUDE_DIR})
|
|
|
|
|
2009-06-02 20:02:06 +02:00
|
|
|
set(qtjolie_LIB_SRCS
|
2009-06-06 00:51:08 +02:00
|
|
|
abstractadaptor.cpp
|
2009-06-02 20:02:06 +02:00
|
|
|
client.cpp
|
|
|
|
clientthread.cpp
|
|
|
|
value.cpp
|
|
|
|
fault.cpp
|
|
|
|
message.cpp
|
|
|
|
metaservice.cpp
|
|
|
|
pendingcall.cpp
|
|
|
|
pendingcallwatcher.cpp
|
2009-06-02 22:52:56 +02:00
|
|
|
pendingreply.cpp
|
2009-06-06 00:51:08 +02:00
|
|
|
server.cpp
|
|
|
|
serverthread.cpp
|
2009-06-02 20:02:06 +02:00
|
|
|
)
|
2009-04-25 14:26:01 +02:00
|
|
|
|
2009-09-02 09:50:40 +02:00
|
|
|
kde4_add_library(QtJolie SHARED ${qtjolie_LIB_SRCS})
|
2009-04-25 14:26:01 +02:00
|
|
|
|
2009-09-02 09:50:40 +02:00
|
|
|
target_link_libraries(QtJolie ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY})
|
2009-04-25 14:26:01 +02:00
|
|
|
|
2009-09-02 09:50:40 +02:00
|
|
|
install(TARGETS QtJolie
|
2009-04-25 14:26:01 +02:00
|
|
|
DESTINATION ${LIB_INSTALL_DIR})
|
|
|
|
|
2009-09-02 09:50:40 +02:00
|
|
|
set_target_properties(QtJolie PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
2009-04-25 14:26:01 +02:00
|
|
|
|
|
|
|
install(FILES
|
2009-06-06 00:51:08 +02:00
|
|
|
abstractadaptor.h
|
2009-04-25 15:50:35 +02:00
|
|
|
client.h
|
|
|
|
value.h
|
|
|
|
fault.h
|
|
|
|
message.h
|
2009-05-08 10:23:59 +02:00
|
|
|
metaservice.h
|
2009-04-25 15:50:35 +02:00
|
|
|
pendingcall.h
|
2009-06-02 20:02:06 +02:00
|
|
|
pendingcallwatcher.h
|
2009-06-02 22:52:56 +02:00
|
|
|
pendingreply.h
|
2009-06-06 00:51:08 +02:00
|
|
|
server.h
|
2009-09-02 09:50:40 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/qtjolie COMPONENT Devel)
|
2009-06-08 14:49:17 +02:00
|
|
|
|
|
|
|
if(NOT WIN32) # pkgconfig file
|
2009-09-02 09:50:40 +02:00
|
|
|
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)
|
2009-06-08 14:49:17 +02:00
|
|
|
endif(NOT WIN32)
|
2009-06-08 15:34:54 +02:00
|
|
|
|
2009-09-02 09:50:40 +02:00
|
|
|
configure_file("QtJolie.prf.cmake" "${CMAKE_BINARY_DIR}/QtJolie.prf" @ONLY)
|
|
|
|
install(FILES "${CMAKE_BINARY_DIR}/QtJolie.prf" DESTINATION ${CMAKE_INSTALL_PREFIX}/mkspecs/features)
|