2014-09-08 16:16:02 +02:00
|
|
|
|
2016-12-23 19:37:35 +01:00
|
|
|
add_executable(hyperiond
|
2016-12-24 10:02:12 +01:00
|
|
|
configMigratorBase.cpp
|
|
|
|
configMigratorBase.h
|
2016-12-23 19:37:35 +01:00
|
|
|
configMigrator.cpp
|
|
|
|
configMigrator.h
|
|
|
|
hyperiond.cpp
|
|
|
|
hyperiond.h
|
|
|
|
main.cpp
|
|
|
|
)
|
2014-09-08 16:16:02 +02:00
|
|
|
|
|
|
|
target_link_libraries(hyperiond
|
2016-08-28 15:10:43 +02:00
|
|
|
commandline
|
2014-09-08 16:16:02 +02:00
|
|
|
hyperion
|
2016-07-10 22:04:31 +02:00
|
|
|
kodivideochecker
|
2014-09-08 16:16:02 +02:00
|
|
|
effectengine
|
|
|
|
jsonserver
|
|
|
|
boblightserver
|
2016-06-20 08:38:12 +02:00
|
|
|
udplistener
|
2016-06-12 22:27:24 +02:00
|
|
|
protoserver
|
2016-06-17 01:25:40 +02:00
|
|
|
webconfig
|
|
|
|
bonjour
|
2014-09-08 16:16:02 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if (ENABLE_DISPMANX)
|
|
|
|
target_link_libraries(hyperiond dispmanx-grabber)
|
2016-05-22 00:27:06 +02:00
|
|
|
endif ()
|
2014-09-08 16:16:02 +02:00
|
|
|
|
2015-01-18 00:04:45 +01:00
|
|
|
if (ENABLE_FB)
|
|
|
|
target_link_libraries(hyperiond framebuffer-grabber)
|
2016-05-22 00:27:06 +02:00
|
|
|
endif ()
|
2015-01-18 00:04:45 +01:00
|
|
|
|
2015-01-24 23:42:22 +01:00
|
|
|
if (ENABLE_OSX)
|
|
|
|
target_link_libraries(hyperiond osx-grabber)
|
2016-05-22 00:27:06 +02:00
|
|
|
endif ()
|
2015-01-24 23:42:22 +01:00
|
|
|
|
2014-09-08 16:16:02 +02:00
|
|
|
if (ENABLE_V4L2)
|
|
|
|
target_link_libraries(hyperiond v4l2-grabber)
|
2016-05-22 00:27:06 +02:00
|
|
|
endif ()
|
2014-09-08 16:16:02 +02:00
|
|
|
|
2015-08-20 09:51:44 +02:00
|
|
|
if (ENABLE_AMLOGIC)
|
|
|
|
target_link_libraries(hyperiond amlogic-grabber)
|
2016-05-22 00:27:06 +02:00
|
|
|
endif ()
|
2015-08-20 09:51:44 +02:00
|
|
|
|
2016-07-24 15:18:34 +02:00
|
|
|
if (ENABLE_X11)
|
|
|
|
target_link_libraries(hyperiond x11-grabber )
|
|
|
|
endif ()
|
|
|
|
|
2016-08-20 16:37:45 +02:00
|
|
|
install ( TARGETS hyperiond DESTINATION "share/hyperion/bin/" COMPONENT "${PLATFORM}" )
|
|
|
|
install ( DIRECTORY ${CMAKE_SOURCE_DIR}/bin/service DESTINATION "share/hyperion/" COMPONENT "${PLATFORM}" )
|
2016-11-20 22:57:19 +01:00
|
|
|
install ( FILES ${CMAKE_SOURCE_DIR}/effects/readme.txt DESTINATION "share/hyperion/effects" COMPONENT "${PLATFORM}" )
|
|
|
|
|
|
|
|
if(CMAKE_HOST_UNIX)
|
|
|
|
install(CODE "EXECUTE_PROCESS(COMMAND ln -sf \"../share/hyperion/bin/hyperiond\" \"${CMAKE_BINARY_DIR}/symlink_hyperiond\" )" COMPONENT "${PLATFORM}" )
|
|
|
|
install(FILES ${CMAKE_BINARY_DIR}/symlink_hyperiond DESTINATION "bin" RENAME hyperiond COMPONENT "${PLATFORM}" )
|
|
|
|
install(CODE "FILE (REMOVE ${CMAKE_BINARY_DIR}/symlink_hyperiond )" COMPONENT "${PLATFORM}" )
|
|
|
|
endif(CMAKE_HOST_UNIX)
|
|
|
|
|