From 87f6e7d0efc660f9fb86c1857e5893a31122a0cf Mon Sep 17 00:00:00 2001 From: Darby Johnston Date: Mon, 11 Nov 2024 18:23:53 -0800 Subject: [PATCH] Setup rpath Signed-off-by: Darby Johnston --- CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 88dc020..7f2c0a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,19 @@ if(APPLE) endif() set_property(GLOBAL PROPERTY USE_FOLDERS ON) +if(WIN32) +elseif(APPLE) + set(CMAKE_SKIP_BUILD_RPATH FALSE) + set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) + set(CMAKE_INSTALL_RPATH "@executable_path/../lib") + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) +else() + set(CMAKE_SKIP_BUILD_RPATH FALSE) + set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) + set(CMAKE_INSTALL_RPATH "../lib") + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) +endif() + set(TOUCAN_PLUGINS toucanColorSpace toucanDraw