From a6761265511fa618fd26604df152ce09922e82ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 31 May 2018 18:37:54 +0900 Subject: [PATCH] Introduce 'nncc_include' (#263) This commit introduces 'nncc_include' macro which allows users to write and use useful nncc-internal CMake modules. Signed-off-by: Jonghyun Park --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cde183..0fdadb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,10 @@ enable_testing() set(CMAKE_CXX_STANDARD 11) +macro(nncc_include PREFIX) + include("${CMAKE_SOURCE_DIR}/cmake/modules/${PREFIX}.cmake") +endmacro(nncc_include) + macro(nncc_find_package PREFIX) find_package(${PREFIX} CONFIG NO_DEFAULT_PATH PATHS ${CMAKE_SOURCE_DIR}/cmake/packages ${ARGN}) endmacro(nncc_find_package) -- 2.7.4