From 0c9be2e65635edbf395a7f544de73fd6323a6a5d Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Tue, 25 Mar 2014 17:12:34 +0100 Subject: [PATCH] cmake: add mac target properties --- lib/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 5425311..e844240 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -45,6 +45,14 @@ add_library(gnuradio-foo SHARED ${foo_sources}) target_link_libraries(gnuradio-foo ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${GNURADIO_PMT_LIBRARIES} ${UHD_LIBRARIES}) set_target_properties(gnuradio-foo PROPERTIES DEFINE_SYMBOL "gnuradio_foo_EXPORTS") + +if(APPLE) + set_target_properties(gnuradio-foo PROPERTIES + INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib" + ) +endif(APPLE) + + ######################################################################## # Install built library files ########################################################################