shithub: dumb

Download patch

ref: 70c9d7e03ed210010c88acb2024c94fc60d74cdc
parent: 3ec1cc5db70c2f782b9e4b1f199bfb04ceae8718
parent: b0682214bba89f1a6386ed891495a53f74bb67d9
author: Chris Moeller <kode54@gmail.com>
date: Fri Feb 28 12:06:13 EST 2014

Merge branch 'master' of github.com:kode54/dumb

--- 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/)