2011-02-19 19:24:11 +01:00
|
|
|
include_directories(${CMAKE_BINARY_DIR})
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
common.cpp
|
|
|
|
connection.cpp
|
2011-03-01 15:34:06 +01:00
|
|
|
extensions.cpp
|
2011-02-19 19:24:11 +01:00
|
|
|
handler.cpp
|
|
|
|
mediaplayerhandler.cpp
|
|
|
|
mediaplayerinterface.cpp
|
2011-03-13 19:20:37 +01:00
|
|
|
mediastoragehandler.cpp
|
|
|
|
mediastorageinterface.cpp
|
2011-02-19 19:24:11 +01:00
|
|
|
remotecontrolhandler.cpp
|
|
|
|
remotecontrolinterface.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(HEADERS
|
|
|
|
connection.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(PUBLIC_HEADERS
|
|
|
|
connection.h
|
|
|
|
common.h
|
|
|
|
mediaplayerinterface.h
|
2011-03-13 19:20:37 +01:00
|
|
|
mediastorageinterface.h
|
2011-02-19 19:24:11 +01:00
|
|
|
remotecontrolinterface.h
|
|
|
|
)
|
|
|
|
|
|
|
|
qt4_wrap_cpp(MOC ${HEADERS})
|
|
|
|
|
|
|
|
add_library(xrme ${SOURCES} ${MOC})
|
|
|
|
target_link_libraries(xrme
|
2011-03-01 13:52:53 +01:00
|
|
|
gloox
|
2011-02-19 19:24:11 +01:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2011-03-01 17:03:04 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
|
|
|
|
2011-03-04 21:50:26 +01:00
|
|
|
# Also install public headers into the cmake binary dir so packages can use
|
|
|
|
# libxrme in their source tree by doing include_directories(${CMAKE_BINARY_DIR})
|
|
|
|
foreach(header ${PUBLIC_HEADERS})
|
|
|
|
configure_file(${header} ${CMAKE_BINARY_DIR}/xrme/${header} COPYONLY)
|
|
|
|
endforeach(header)
|