2016-05-26 23:44:27 +02:00
|
|
|
|
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/hyperion)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/hyperion)
|
|
|
|
|
2022-01-07 14:47:51 +01:00
|
|
|
if(ENABLE_FLATBUF_SERVER)
|
2019-02-03 14:36:57 +01:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../libsrc/flatbufserver
|
|
|
|
)
|
2022-01-07 14:47:51 +01:00
|
|
|
endif()
|
2019-02-03 14:36:57 +01:00
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
FILE ( GLOB Hyperion_SOURCES "${CURRENT_HEADER_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
2016-05-26 23:44:27 +02:00
|
|
|
|
2017-10-13 00:06:31 +02:00
|
|
|
SET(Hyperion_RESOURCES ${CURRENT_SOURCE_DIR}/resource.qrc)
|
2016-05-26 23:44:27 +02:00
|
|
|
|
|
|
|
add_library(hyperion
|
|
|
|
${Hyperion_SOURCES}
|
2017-10-13 00:06:31 +02:00
|
|
|
${Hyperion_RESOURCES}
|
2016-05-26 23:44:27 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(hyperion
|
|
|
|
blackborder
|
|
|
|
hyperion-utils
|
|
|
|
leddevice
|
2019-07-12 16:54:26 +02:00
|
|
|
database
|
2016-05-26 23:44:27 +02:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|
2020-05-12 19:51:19 +02:00
|
|
|
|
2022-01-07 14:47:51 +01:00
|
|
|
if(ENABLE_BOBLIGHT_SERVER)
|
2021-09-15 10:32:19 +02:00
|
|
|
target_link_libraries(hyperion boblightserver)
|
|
|
|
endif()
|
|
|
|
|
2022-02-11 20:36:15 +01:00
|
|
|
if(ENABLE_EFFECTENGINE)
|
|
|
|
target_link_libraries(hyperion effectengine)
|
|
|
|
endif()
|
|
|
|
|
2022-01-07 14:47:51 +01:00
|
|
|
if(ENABLE_FLATBUF_SERVER)
|
|
|
|
target_link_libraries(hyperion flatbufserver)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ENABLE_FORWARDER)
|
|
|
|
target_link_libraries(hyperion forwarder)
|
|
|
|
endif()
|
|
|
|
|
2020-05-12 19:51:19 +02:00
|
|
|
if (ENABLE_AVAHI)
|
|
|
|
target_link_libraries(hyperion bonjour)
|
|
|
|
endif ()
|