36 lines
838 B
CMake
36 lines
838 B
CMake
# Find the BCM-package (VC control)
|
|
IF ( "${PLATFORM}" MATCHES rpi)
|
|
find_package(BCM REQUIRED)
|
|
include_directories(${BCM_INCLUDE_DIRS})
|
|
ELSE()
|
|
SET(BCM_INCLUDE_DIRS "")
|
|
SET(BCM_LIBRARIES "")
|
|
ENDIF()
|
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/api)
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/api)
|
|
|
|
FILE ( GLOB_RECURSE Api_SOURCES "${CURRENT_HEADER_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
|
|
|
set(Api_RESOURCES ${CURRENT_SOURCE_DIR}/JSONRPC_schemas.qrc )
|
|
|
|
add_library(hyperion-api
|
|
${Api_SOURCES}
|
|
${Api_RESOURCES}
|
|
)
|
|
|
|
if(ENABLE_DX)
|
|
include_directories(${DIRECTX9_INCLUDE_DIRS})
|
|
target_link_libraries(hyperion-api ${DIRECTX9_LIBRARIES})
|
|
endif(ENABLE_DX)
|
|
|
|
target_link_libraries(hyperion-api
|
|
hyperion
|
|
hyperion-utils
|
|
Qt5::Core
|
|
Qt5::Gui
|
|
Qt5::Network
|
|
)
|