Always enable test (#4634)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 11 Mar 2019 02:04:41 +0000 (11:04 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 11 Mar 2019 02:04:41 +0000 (11:04 +0900)
This commit moves enable_testing() call from GTestConfig to top-level
CMakeLists.txt.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
CMakeLists.txt
cmake/packages/GTestConfig.cmake

index 8feddd3..15fa924 100644 (file)
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.1)
 
 project(nnfw)
 
+enable_testing()
+
 macro(nnfw_include PREFIX)
   include("${CMAKE_SOURCE_DIR}/cmake/modules/${PREFIX}.cmake")
 endmacro(nnfw_include)
index 62d2e89..7de8ad7 100644 (file)
@@ -1,5 +1,4 @@
 if(OBS_BUILD)
-  enable_testing()
   find_package(GTest REQUIRED)
   include_directories(${GTEST_INCLUDE_DIR})
   set(GTest_FOUND TRUE)