From c4c8cc71c217dfddc4a17b3ac7f63b661bc5d115 Mon Sep 17 00:00:00 2001 From: Curve Date: Sun, 17 Mar 2024 13:36:30 +0100 Subject: [PATCH] feat: add lookup dirs setting [skip ci] --- CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f436ef..82b6d26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project( VERSION 2.0.0) # -------------------------------------------------------------------------------------------------------- -# Library options +# Library switches # -------------------------------------------------------------------------------------------------------- option(VIENNAPS_USE_DOUBLE "Use double precision floating point numbers in application" OFF) @@ -15,6 +15,17 @@ option(VIENNAPS_BUILD_PYTHON "Build python bindings" OFF) option(VIENNAPS_BUILD_EXAMPLES "Build examples" OFF) option(VIENNAPS_BUILD_TESTS "Build tests" OFF) +# -------------------------------------------------------------------------------------------------------- +# Library options +# -------------------------------------------------------------------------------------------------------- + +set(VIENNAPS_LOOKUP_DIRS + "" + CACHE STRING + "Directories to account for when searching installed dependencies (e.g. ViennaLS, ...)") + + list(APPEND CMAKE_PREFIX_PATH ${VIENNAPS_LOOKUP_DIRS}) + # -------------------------------------------------------------------------------------------------------- # Global CMake Configuration # └ We depend on the vtk python package for our python build and re-use