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_export ${LUCI_LIBRARY_TYPE} ${SOURCES})
10 target_include_directories(luci_export PRIVATE src)
11 target_include_directories(luci_export PUBLIC include)
12 target_link_libraries(luci_export PRIVATE luci_lang)
13 target_link_libraries(luci_export PRIVATE luci_service)
14 target_link_libraries(luci_export PRIVATE luci_pass)
15 target_link_libraries(luci_export PRIVATE mio_circle06)
16 target_link_libraries(luci_export PRIVATE luci_env)
17 target_link_libraries(luci_export PRIVATE luci_log)
18 target_link_libraries(luci_export PRIVATE luci_logex)
19 target_link_libraries(luci_export PRIVATE luci_profile)
20 target_link_libraries(luci_export PRIVATE luci_plan)
21 target_link_libraries(luci_export PRIVATE nncc_common)
22 target_link_libraries(luci_export PRIVATE locop)
23 target_link_libraries(luci_export PRIVATE oops)
24 install(TARGETS luci_export DESTINATION lib)
25 install(DIRECTORY include/ DESTINATION include
26 FILES_MATCHING PATTERN "*.h")
30 endif(NOT ENABLE_TEST)
32 nnas_find_package(GTest REQUIRED)
34 GTest_AddTest(luci_export_test ${TESTS})
35 target_include_directories(luci_export_test PRIVATE src)
36 target_link_libraries(luci_export_test luci_export)
37 target_link_libraries(luci_export_test luci_plan)
38 target_link_libraries(luci_export_test luci_lang)
39 target_link_libraries(luci_export_test mio_circle06)
40 target_link_libraries(luci_export_test luci_env)
41 target_link_libraries(luci_export_test oops)