[angkor] Do not use add_nncc_test (#3116)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 27 Mar 2019 00:37:15 +0000 (09:37 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 27 Mar 2019 00:37:15 +0000 (09:37 +0900)
This commit removes all the references of add_nncc_test from angkor's
build script.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/angkor/CMakeLists.txt

index 75202ce..128a294 100644 (file)
@@ -9,5 +9,14 @@ set_target_properties(angkor PROPERTIES POSITION_INDEPENDENT_CODE ON)
 set_target_properties(angkor PROPERTIES LINKER_LANGUAGE CXX)
 target_include_directories(angkor PUBLIC include)
 
-add_nncc_test(angkor_test ${TESTS})
-nncc_target_link_libraries(angkor_test angkor)
+if(NOT ENABLE_TEST)
+  return()
+endif(NOT ENABLE_TEST)
+
+# Google Test is mandatory for test
+nncc_find_package(GTest REQUIRED)
+
+add_executable(angkor_test ${TESTS})
+target_link_libraries(angkor_test gtest_main)
+target_link_libraries(angkor_test angkor)
+add_test(angkor_test angkor_test)