From 67bd11f95707d9dc5985b8607b15cf57071d390a Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Thu, 19 Feb 2015 12:40:01 +0100 Subject: [PATCH] COMP: set build output dir for application to lib/otb/applications --- CMake/OTBApplicationMacros.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMake/OTBApplicationMacros.cmake b/CMake/OTBApplicationMacros.cmake index 024dd67eae..9b8922c7bc 100644 --- a/CMake/OTBApplicationMacros.cmake +++ b/CMake/OTBApplicationMacros.cmake @@ -9,8 +9,14 @@ macro(otb_create_application) target_link_libraries(${APPLICATION_TARGET_NAME} OTBApplicationEngine ${APPLICATION_LINK_LIBRARIES}) otb_module_target_label(${APPLICATION_TARGET_NAME}) + # Setup build output location + # Do not output in the standard lib folder where all shared libs goes. + # This is to avoid the application factory to look into each and every shared lib + # for itkLoad symbol + set_property(TARGET ${APPLICATION_TARGET_NAME} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${OTB_BINARY_DIR}/lib/otb/applications) + # Remove the usual 'lib' prefix to make it clear it is a plugin - # and not a library to link against + # and not a shared library to link against set_property(TARGET ${APPLICATION_TARGET_NAME} PROPERTY PREFIX "") # on Apple platform, a "MODULE" library gets a ".so" extension -- GitLab