1 file(GLOB_RECURSE SOURCES "src/*.cpp")
2 file(GLOB_RECURSE TESTS "src/*.test.cpp")
3 list(REMOVE_ITEM SOURCES ${TESTS})
5 if (NOT LUCI_LIBRARY_TYPE)
6 set(LUCI_LIBRARY_TYPE "SHARED")
7 endif(NOT LUCI_LIBRARY_TYPE)
9 add_library(luci_service ${LUCI_LIBRARY_TYPE} ${SOURCES})
10 target_include_directories(luci_service PRIVATE src)
11 target_include_directories(luci_service PUBLIC include)
12 target_link_libraries(luci_service PUBLIC luci_lang)
13 target_link_libraries(luci_service PUBLIC mio_circle)
14 target_link_libraries(luci_service PUBLIC logo_core)
15 target_link_libraries(luci_service PRIVATE luci_log)
16 target_link_libraries(luci_service PRIVATE luci_logex)
17 target_link_libraries(luci_service PRIVATE nncc_common)
18 target_link_libraries(luci_service PRIVATE oops)
19 install(TARGETS luci_service DESTINATION lib)
20 install(DIRECTORY include/ DESTINATION include
21 FILES_MATCHING PATTERN "*.h")
25 endif(NOT ENABLE_TEST)
27 nnas_find_package(GTest REQUIRED)
29 GTest_AddTest(luci_service_test ${TESTS})
30 target_include_directories(luci_service_test PRIVATE src)
31 target_link_libraries(luci_service_test luci_service)
32 target_link_libraries(luci_service_test luci_testhelper)
33 target_link_libraries(luci_service_test oops)