summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-14 16:51:36 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-14 16:51:36 +0300
commitda98d12637db106b87341560cc72ca6207b2d12f (patch)
treec79f1c3389f38ec878fc2dfc4729839242e2e81c /src/CMakeLists.txt
parent8a616021cbefff5f62b0ca55cf535130c8c1b5f0 (diff)
downloadmv-da98d12637db106b87341560cc72ca6207b2d12f.tar.gz
mv-da98d12637db106b87341560cc72ca6207b2d12f.tar.bz2
mv-da98d12637db106b87341560cc72ca6207b2d12f.tar.xz
mv-da98d12637db106b87341560cc72ca6207b2d12f.zip
Add configure and cmake option to enable/disable compilation for tmwa/evol.
Tmwa/evol by default enabled.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a6cbcb69f..171ee9245 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -29,6 +29,9 @@ ENDIF()
IF (ENABLE_EATHENA)
SET(FLAGS "${FLAGS} -DEATHENA_SUPPORT=1")
ENDIF()
+IF (ENABLE_TMWA)
+ SET(FLAGS "${FLAGS} -DTMWA_SUPPORT=1")
+ENDIF()
IF (CMAKE_BUILD_TYPE)
STRING(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER)
@@ -1396,11 +1399,13 @@ ENDIF ()
SET (PROGRAMS manaplus dyecmd)
IF (ENABLE_EATHENA)
- ADD_EXECUTABLE(manaplus WIN32 ${SRCS} ${SRCS_EATHENA} ${SRCS_TMWA} ${SRCS_EVOL})
-ELSE(ENABLE_EATHENA)
- ADD_EXECUTABLE(manaplus WIN32 ${SRCS} ${SRCS_TMWA} ${SRCS_EVOL})
+ SET(SRCS ${SRCS} ${SRCS_EATHENA})
ENDIF(ENABLE_EATHENA)
+IF (ENABLE_TMWA)
+ SET(SRCS ${SRCS} ${SRCS_TMWA})
+ENDIF(ENABLE_TMWA)
+ADD_EXECUTABLE(manaplus WIN32 ${SRCS} ${SRCS_EVOL})
ADD_EXECUTABLE(dyecmd WIN32 ${DYE_CMD_SRCS})
TARGET_LINK_LIBRARIES(manaplus