From c3a8fe37ffe1d40c2c7bc08721b92a758696e709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Dumas?= Date: Fri, 6 Sep 2024 11:14:35 -0700 Subject: [PATCH] Update target_include_directories to make geometry-central installable See https://stackoverflow.com/questions/25676277/cmake-target-include-directories-prints-an-error-when-i-try-to-add-the-source for a description of the issue. --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e11380b7..01c8226b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -175,7 +175,10 @@ SET(HEADERS add_library(geometry-central ${SRCS} ${HEADERS}) # Includes from this project -target_include_directories(geometry-central PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../include") +target_include_directories(geometry-central PUBLIC + $ + $ +) # Add all includes and link libraries from dependencies, which were populated in deps/CMakeLists.txt target_link_libraries(geometry-central PUBLIC ${GC_DEP_LIBS})