OpenLCP/protocol/esta/sacn/CMakeLists.txt

41 lines
992 B
CMake

project(${PROJECT_NAME}_sacn VERSION 0.3.1 LANGUAGES CXX)
add_library(${PROJECT_NAME} SHARED)
configure_file(../../config.h.in config.h)
target_sources(${PROJECT_NAME}
PUBLIC
node.h
receiver.h
source.h
universe.h
PRIVATE
data.cpp
data.h
extended.cpp
extended.h
arbitratinguniverse.cpp
arbitratinguniverse.h
node.cpp
receiver.cpp
sacn.h
source.cpp
universe.cpp
universesender.h
universesender.cpp
)
target_link_libraries(${PROJECT_NAME}
PUBLIC
LCP_acn_pdu
LCP_acn_rlp
LCP_acn_dmp
LCP_dmx
)
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
target_compile_definitions(${PROJECT_NAME} PUBLIC ${PROJECT_NAME}_LIBRARY)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})