ref: b0682214bba89f1a6386ed891495a53f74bb67d9
parent: 3a25c206f5610e2626926be036b1ffaa8afab5ef
parent: 3a9b6c7cb585c6b1328a97a8befe2f979a1b009d
author: Chris Moeller <[email protected]>
date: Mon Jan 13 18:54:15 EST 2014
Merge pull request #3 from Vagabond/adt-cmake-install-name Set the dylib install name on OSX
--- a/dumb/cmake/CMakeLists.txt
+++ b/dumb/cmake/CMakeLists.txt
@@ -8,6 +8,11 @@
set(CMAKE_C_FLAGS_DEBUG "${COMMON_FLAGS} -ggdb -DDEBUGMODE")
set(CMAKE_C_FLAGS_RELEASE "${COMMON_FLAGS} -ffast-math -O2")
+# Make sure the dylib install name path is set on OSX so you can include dumb in app bundles
+IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+ set_target_properties(dumb PROPERTIES INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+
link_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(../include/)