blob: 374794f90690916a70e7d3c77626c3924fb91034 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
file(GLOB_RECURSE SOURCES "src/*.cpp")
file(GLOB_RECURSE TESTS "src/*.test.cpp")
list(REMOVE_ITEM SOURCES ${TESTS})
add_library(logo_core STATIC ${SOURCES})
if (NOT NNCC_LIBRARY_NO_PIC)
set_target_properties(logo_core PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif(NOT NNCC_LIBRARY_NO_PIC)
target_include_directories(logo_core PRIVATE src)
target_include_directories(logo_core PUBLIC include)
target_link_libraries(logo_core PUBLIC loco)
if(NOT ENABLE_TEST)
return()
endif(NOT ENABLE_TEST)
nnas_find_package(GTest REQUIRED)
GTest_AddTest(logo_core_test ${TESTS})
target_include_directories(logo_core_test PRIVATE src)
target_link_libraries(logo_core_test logo_core)
|