Forked from
asapo / asapo
2376 commits behind the upstream repository.
-
Sergey Yakubov authoredSergey Yakubov authored
CMakeLists.txt 629 B
set(TARGET_NAME producer-api)
set(SOURCE_FILES src/producer/producer.cpp include/producer/producer.h)
################################
# Library
################################
add_library(${TARGET_NAME} STATIC ${SOURCE_FILES})
target_include_directories(${TARGET_NAME} PUBLIC include)
target_link_libraries(${TARGET_NAME} common)
set_target_properties(${TARGET_NAME} PROPERTIES LINKER_LANGUAGE CXX)
################################
# Testing
################################
set(TEST_SOURCE_FILES unittests/test_producer.cpp)
set(TEST_LIBRARIES producer-api)
gtest(${TARGET_NAME} ${TEST_SOURCE_FILES} ${TEST_LIBRARIES})