Imported Upstream version 1.7.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
8 if(NOT ENABLE_TEST)
9   return()
10 endif(NOT ENABLE_TEST)
11
12 nnas_find_package(GTest REQUIRED)
13 set(TESTS "${CMAKE_CURRENT_SOURCE_DIR}/tests/arser.test.cpp")
14 GTest_AddTest(arser_test ${TESTS})
15 target_include_directories(arser_test PRIVATE include)