really allow building EDITOR2 now...

This commit is contained in:
Nils Kneuper 2008-06-18 19:20:18 +00:00
parent f4b06457f2
commit 03eeb31061

View file

@ -58,8 +58,8 @@ set(FIFO_DIR "/var/run/wesnothd" CACHE STRING "Directory for the wesnothd fifo s
option(ENABLE_GAME "Enable compilation of the game" ON)
option(ENABLE_CAMPAIGN_SERVER "Enable compilation of campaign server")
option(ENABLE_SERVER "Enable compilation of server" ON)
option(ENABLE_EDITOR "Enable compilation of map editor")
option(ENABLE_EDITOR2 "Enable compilation of the new map editor into the game")
option(ENABLE_EDITOR "Enable compilation of map editor (only either EDITOR or EDITOR2 do currently work, not both at the same time!)")
option(ENABLE_EDITOR2 "Enable compilation of the new map editor into the game (only either EDITOR or EDITOR2 do currently work, not both at the same time!)")
option(ENABLE_TOOLS "Enable building and installation of tools for artists and WML maintainers")
option(ENABLE_TESTS "Build unit tests")
option(ENABLE_NLS "Enable building of tranlations" ON)
@ -88,6 +88,10 @@ if(NOT WIN32)
add_definitions(-DWESNOTH_PATH='\"${DATADIR}\"')
endif(NOT WIN32)
if(ENABLE_EDITOR2)
add_definitions(-DUSE_EDITOR2)
endif(ENABLE_EDITOR2)
add_definitions(-DHAS_RELATIVE_LOCALEDIR)
add_definitions(-DLOCALEDIR='\"${LOCALEDIR}\"')
set(LOCALE_INSTALL ${DATADIR}/${LOCALEDIR})