This commit removes all the references of add_nncc_test from angkor's
build script.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
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)