Imported Upstream version 1.25.0
[platform/core/ml/nnfw.git] / compiler / arser / CMakeLists.txt
1 add_library(arser INTERFACE)
2
3 # It specifies INTERFACE so that future targets linked with arser library will inherit its include directory.
4 # It means that a developer who want to link arser just need to add one line.
5 # target_link_library(another-users-target arser)
6 target_include_directories(arser INTERFACE include/)
7 target_link_libraries(arser INTERFACE nncc_coverage)
8
9 if(NOT ENABLE_TEST)
10   return()
11 endif(NOT ENABLE_TEST)
12
13 nnas_find_package(GTest REQUIRED)
14 set(TESTS "${CMAKE_CURRENT_SOURCE_DIR}/tests/arser.test.cpp"
15           "${CMAKE_CURRENT_SOURCE_DIR}/tests/HelpMessage.test.cpp")
16 GTest_AddTest(arser_test ${TESTS})
17 target_link_libraries(arser_test arser)