From a6cecbc8117ae400d2ec9e343e0076542363106a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 11 Mar 2019 11:04:41 +0900 Subject: [PATCH] Always enable test (#4634) This commit moves enable_testing() call from GTestConfig to top-level CMakeLists.txt. Signed-off-by: Jonghyun Park --- CMakeLists.txt | 2 ++ cmake/packages/GTestConfig.cmake | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- 2.7.4