From e3f76f13c2295bb957c7ff3efd8e27677fa61895 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Mon, 23 May 2022 19:07:23 +0200 Subject: [PATCH] CMakeLists.txt adding detectorlib dependency --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ac8b262..4d9b2354 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,13 @@ set(LibraryVersion "1.6") add_definitions(-DLIBRARY_VERSION="${LibraryVersion}") -COMPILELIB("") +set( deps detector ) + +if (NOT ${RESTLIB_DETECTOR} MATCHES "ON") + list(REMOVE_ITEM deps detector) +endif () + +COMPILELIB(deps) file(GLOB_RECURSE MAC "${CMAKE_CURRENT_SOURCE_DIR}/macros/*") INSTALL(FILES ${MAC} DESTINATION ./macros/raw)