|
@@ -10,6 +10,7 @@ if (NOT CMAKE_BUILD_TYPE)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
option(DISABLE_ERM "Disable compilation of ERM scripting module" ON)
|
|
option(DISABLE_ERM "Disable compilation of ERM scripting module" ON)
|
|
|
|
+option(ENABLE_EDITOR "Enable compilation of map editor" OFF)
|
|
|
|
|
|
############################################
|
|
############################################
|
|
# Building section #
|
|
# Building section #
|
|
@@ -41,6 +42,11 @@ find_package(SDL_mixer REQUIRED)
|
|
find_package(SDL_ttf REQUIRED)
|
|
find_package(SDL_ttf REQUIRED)
|
|
find_package(ZLIB REQUIRED)
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
|
|
|
|
+if (ENABLE_EDITOR)
|
|
|
|
+ # Widgets finds its own dependencies (QtGui and QtCore).
|
|
|
|
+ find_package(Qt5Widgets REQUIRED)
|
|
|
|
+endif()
|
|
|
|
+
|
|
if(NOT WIN32)
|
|
if(NOT WIN32)
|
|
set(FFmpeg_FIND_COMPONENTS AVFORMAT SWSCALE)
|
|
set(FFmpeg_FIND_COMPONENTS AVFORMAT SWSCALE)
|
|
find_package(FFmpeg REQUIRED)
|
|
find_package(FFmpeg REQUIRED)
|
|
@@ -101,6 +107,9 @@ add_subdirectory(AI)
|
|
if (NOT DISABLE_ERM)
|
|
if (NOT DISABLE_ERM)
|
|
add_subdirectory(Scripting/ERM)
|
|
add_subdirectory(Scripting/ERM)
|
|
endif()
|
|
endif()
|
|
|
|
+if (ENABLE_EDITOR)
|
|
|
|
+ add_subdirectory(Editor)
|
|
|
|
+endif()
|
|
|
|
|
|
#######################################
|
|
#######################################
|
|
# Installation section #
|
|
# Installation section #
|