2014-01-28 09:47:16 +01:00
|
|
|
# Configure minimum CMAKE version
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
# Set the project name
|
|
|
|
project(hyperion-x11)
|
|
|
|
|
|
|
|
# find Qt4
|
|
|
|
find_package(Qt4 REQUIRED QtCore QtGui QtNetwork)
|
|
|
|
|
2014-01-30 13:35:29 +01:00
|
|
|
# Find X11
|
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
|
2014-01-28 09:47:16 +01:00
|
|
|
include_directories(
|
2014-11-21 21:24:33 +01:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../libsrc/protoserver
|
2014-01-28 09:47:16 +01:00
|
|
|
${QT_INCLUDES}
|
2014-01-30 13:35:29 +01:00
|
|
|
${X11_INCLUDES}
|
2014-12-20 13:15:20 +01:00
|
|
|
${PROTOBUF_INCLUDE_DIRS}
|
2014-01-28 09:47:16 +01:00
|
|
|
)
|
|
|
|
|
2014-01-30 13:35:29 +01:00
|
|
|
set(Hyperion_X11_QT_HEADERS
|
|
|
|
X11Wrapper.h)
|
|
|
|
|
2014-01-28 09:47:16 +01:00
|
|
|
set(Hyperion_X11_HEADERS
|
|
|
|
)
|
|
|
|
|
|
|
|
set(Hyperion_X11_SOURCES
|
2014-01-30 13:35:29 +01:00
|
|
|
hyperion-x11.cpp
|
|
|
|
X11Wrapper.cpp
|
2014-01-28 09:47:16 +01:00
|
|
|
)
|
|
|
|
|
2014-01-30 13:35:29 +01:00
|
|
|
QT4_WRAP_CPP(Hyperion_X11_HEADERS_MOC ${Hyperion_X11_QT_HEADERS})
|
|
|
|
|
2014-01-28 09:47:16 +01:00
|
|
|
add_executable(hyperion-x11
|
|
|
|
${Hyperion_X11_HEADERS}
|
|
|
|
${Hyperion_X11_SOURCES}
|
2014-01-30 13:35:29 +01:00
|
|
|
${Hyperion_X11_HEADERS_MOC}
|
2014-01-28 09:47:16 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(hyperion-x11
|
|
|
|
getoptPlusPlus
|
|
|
|
blackborder
|
|
|
|
hyperion-utils
|
2014-11-21 21:24:33 +01:00
|
|
|
protoserver
|
|
|
|
x11-grabber
|
2014-01-30 13:35:29 +01:00
|
|
|
${X11_LIBRARIES}
|
2014-01-28 09:47:16 +01:00
|
|
|
pthread
|
|
|
|
)
|
|
|
|
|
|
|
|
qt4_use_modules(hyperion-x11
|
|
|
|
Core
|
|
|
|
Gui
|
|
|
|
Network)
|