diff options
| author | Timothy Collett | 2012-05-24 11:31:20 -0400 |
|---|---|---|
| committer | Timothy Collett | 2012-05-24 11:31:20 -0400 |
| commit | 24d221052b2e5cce5eadf3a7183cc808dbb21236 (patch) | |
| tree | 8eca2859eecaa99365df6d87e973f7cde9505404 /CMakeLists.txt | |
| parent | 20794ebf191d21d5acce274d70bdad4012deaa44 (diff) | |
| download | dfhack-24d221052b2e5cce5eadf3a7183cc808dbb21236.tar.gz dfhack-24d221052b2e5cce5eadf3a7183cc808dbb21236.tar.bz2 dfhack-24d221052b2e5cce5eadf3a7183cc808dbb21236.tar.xz | |
Initial changes to get dfhack building on the Mac
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bfd56b72..ec11c08e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,7 +117,9 @@ ENDIF() ADD_DEFINITIONS(-DPROTOBUF_USE_DLLS) ADD_DEFINITIONS(-DLUA_BUILD_AS_DLL) -if(UNIX) +if(APPLE) + add_definitions(-D_DARWIN) +elseif(UNIX) add_definitions(-D_LINUX) elseif(WIN32) add_definitions(-DWIN32) @@ -137,6 +139,10 @@ include_directories(depends/tinyxml) include_directories(depends/tthread) include_directories(${ZLIB_INCLUDE_DIRS}) include_directories(depends/clsocket/src) +if(APPLE) + include_directories(${CMAKE_INSTALL_PREFIX}/libs/SDL.framework/Headers) + SET(PROJECT_LIBS SDL) +endif() add_subdirectory(depends) |
