summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPetr Mrázek2010-08-31 04:51:10 +0000
committerPetr Mrázek2010-08-31 04:51:10 +0000
commit0db450e5380942e418e6ca668a226536ee1bab3b (patch)
treeb36fe55151f9f0c945dadb92f3e9c26bd78f2432 /CMakeLists.txt
parent068b449bee9708f8ad3961b7ca90bbbed896c42c (diff)
downloadstonesense-0db450e5380942e418e6ca668a226536ee1bab3b.tar.gz
stonesense-0db450e5380942e418e6ca668a226536ee1bab3b.tar.bz2
stonesense-0db450e5380942e418e6ca668a226536ee1bab3b.tar.xz
Update linux DFHack stuff
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt20
1 files changed, 18 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f3994d..230029d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,7 @@ ENDIF(NOT DEFINED CMAKE_BUILD_TYPE)
SET( EXECUTABLE_OUTPUT_PATH ${stonesense_SOURCE_DIR} CACHE PATH "Output directory for stonesense, default is root" )
+if(WIN32)
include_directories (
${CMAKE_SOURCE_DIR}/dfhack/include/
${CMAKE_SOURCE_DIR}/dfhack/depends/md5/
@@ -26,6 +27,13 @@ include_directories (
${CMAKE_SOURCE_DIR}/allegro/lib/
${CMAKE_SOURCE_DIR}
)
+else(WIN32)
+include_directories (
+ ${CMAKE_SOURCE_DIR}/dfhack/depends/md5/
+ ${CMAKE_SOURCE_DIR}/dfhack/depends/tinyxml/
+ ${CMAKE_SOURCE_DIR}
+)
+endif(WIN32)
SET(PROJECT_SRCS
dfhack/depends/tinyxml/tinystr.cpp
@@ -95,8 +103,16 @@ IF(UNIX)
# INCLUDE_DIRECTORIES(${ALLEGRO_INCLUDE_DIR})
# SET(PROJECT_LIBS ${ALLEGRO5_LIBRARIES} ${PROJECT_LIBS})
- SET(PROJECT_LIBS allegro allegro_primitives allegro_color allegro_dialog allegro_font allegro_image allegro_main allegro_ttf dfhack ${PROJECT_LIBS})
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ SET(PROJECT_LIBS allegro allegro_primitives allegro_color allegro_dialog allegro_font
+ allegro_image allegro_main allegro_ttf dfhack-debug ${PROJECT_LIBS})
+ else(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ SET(PROJECT_LIBS allegro allegro_primitives allegro_color allegro_dialog
+ allegro_font allegro_image allegro_main allegro_ttf dfhack
+ ${PROJECT_LIBS})
+ endif(CMAKE_BUILD_TYPE STREQUAL "Debug")
+
ADD_EXECUTABLE(stonesense ${PROJECT_SRCS} ${PLATFORM_SRC})
TARGET_LINK_LIBRARIES(stonesense ${PROJECT_LIBS})
@@ -137,4 +153,4 @@ ELSE(UNIX)
ADD_EXECUTABLE(stonesense WIN32 ${PROJECT_SRCS} ${PLATFORM_SRC})
TARGET_LINK_LIBRARIES(stonesense ${PROJECT_LIBS})
-ENDIF(UNIX) \ No newline at end of file
+ENDIF(UNIX)