mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
c5b18d5925
Former-commit-id: 49860cd93e1492a2c67bd2a84bd082713a0c8e9b
35 lines
916 B
CMake
35 lines
916 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(hyperion-remote)
|
|
|
|
# add protocol buffers
|
|
find_package(Protobuf REQUIRED)
|
|
|
|
# find Qt4
|
|
find_package(Qt4 REQUIRED QtCore QtGui QtNetwork)
|
|
|
|
# The following I do not undrstand completely...
|
|
# libQtCore.so uses some hardcoded library path inside which are incorrect after copying the file RPi file system
|
|
# Therefor, an extra path is needed on which to find the required libraries
|
|
LINK_DIRECTORIES(${LINK_DIRECTORIES} ${CMAKE_FIND_ROOT_PATH}/lib/arm-linux-gnueabihf)
|
|
|
|
include_directories(${QT_INCLUDES})
|
|
|
|
set(hyperion-remote_HEADERS
|
|
CustomParameter.h
|
|
JsonConnection.h
|
|
ColorTransformValues.h)
|
|
|
|
set(hyperion-remote_SOURCES
|
|
hyperion-remote.cpp
|
|
JsonConnection.cpp)
|
|
|
|
add_executable(hyperion-remote
|
|
${hyperion-remote_HEADERS}
|
|
${hyperion-remote_SOURCES})
|
|
|
|
target_link_libraries(hyperion-remote
|
|
jsoncpp
|
|
getoptPlusPlus
|
|
${QT_LIBRARIES})
|