summaryrefslogtreecommitdiff
path: root/library/CMakeLists.txt
diff options
context:
space:
mode:
authorTimothy Collett2012-05-24 15:02:53 -0400
committerTimothy Collett2012-05-24 15:02:53 -0400
commit7e88631698077ef88dced138126dd9f36acc6388 (patch)
tree10d5592d0a0cd484a294a5692c7ff20bf95496a9 /library/CMakeLists.txt
parent24d221052b2e5cce5eadf3a7183cc808dbb21236 (diff)
downloaddfhack-7e88631698077ef88dced138126dd9f36acc6388.tar.gz
dfhack-7e88631698077ef88dced138126dd9f36acc6388.tar.bz2
dfhack-7e88631698077ef88dced138126dd9f36acc6388.tar.xz
Trying a different method now (with install_name_tool)
Diffstat (limited to 'library/CMakeLists.txt')
-rw-r--r--library/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 3245653c..16954727 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -221,7 +221,7 @@ ENDIF()
IF(UNIX)
SET(PROJECT_LIBS rt dl dfhack-md5 dfhack-tinyxml dfhack-tinythread)
IF(APPLE)
- SET(PROJECT_LIBS dl dfhack-md5 dfhack-tinyxml dfhack-tinythread SDL)
+ SET(PROJECT_LIBS dl dfhack-md5 dfhack-tinyxml dfhack-tinythread)
# include_directories(${CMAKE_INSTALL_PREFIX}/libs/SDL.framework/Headers)
ENDIF()
ELSE(WIN32)
@@ -257,7 +257,10 @@ ENDIF()
SET_TARGET_PROPERTIES(dfhack PROPERTIES DEBUG_POSTFIX "-debug" )
IF(APPLE)
- TARGET_LINK_LIBRARIES(dfhack ${CMAKE_INSTALL_PREFIX}/libs/SDL.framework/SDL)
+ SET(SDL_LIBRARY ${CMAKE_INSTALL_PREFIX}/libs/SDL.framework)
+ TARGET_LINK_LIBRARIES(dfhack ${SDL_LIBRARY})
+ SET_TARGET_PROPERTIES(dfhack PROPERTIES VERSION 1.0.0)
+ SET_TARGET_PROPERTIES(dfhack PROPERTIES SOVERSION 1.0.0)
ENDIF()
TARGET_LINK_LIBRARIES(dfhack protobuf-lite clsocket lua ${PROJECT_LIBS})