From 24d221052b2e5cce5eadf3a7183cc808dbb21236 Mon Sep 17 00:00:00 2001 From: Timothy Collett Date: Thu, 24 May 2012 11:31:20 -0400 Subject: Initial changes to get dfhack building on the Mac --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.1