summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
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