From: 박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Mon, 11 Mar 2019 02:04:41 +0000 (+0900) Subject: Always enable test (#4634) X-Git-Tag: submit/tizen/20190325.013700~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6cecbc8117ae400d2ec9e343e0076542363106a;p=platform%2Fcore%2Fml%2Fnnfw.git Always enable test (#4634) This commit moves enable_testing() call from GTestConfig to top-level CMakeLists.txt. Signed-off-by: Jonghyun Park --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8feddd3..15fa924 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/cmake/packages/GTestConfig.cmake b/cmake/packages/GTestConfig.cmake index 62d2e89..7de8ad7 100644 --- a/cmake/packages/GTestConfig.cmake +++ b/cmake/packages/GTestConfig.cmake @@ -1,5 +1,4 @@ if(OBS_BUILD) - enable_testing() find_package(GTest REQUIRED) include_directories(${GTEST_INCLUDE_DIR}) set(GTest_FOUND TRUE)