You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
project(CyanWorldsEngine) |
|
cmake_minimum_required(VERSION 2.8) |
|
|
|
# Find all 3rd-party libraries that are required |
|
find_package(OpenSSL REQUIRED) |
|
find_package(OpenAL REQUIRED) |
|
find_package(PythonLibs REQUIRED) |
|
find_package(ZLIB REQUIRED) |
|
find_package(EXPAT REQUIRED) |
|
find_package(ZLIB REQUIRED) |
|
|
|
option(EXTERNAL_RELEASE "Is this release intended for the general public?" OFF) |
|
|
|
# TODO: are there any other build types which are useful for us? |
|
>>>>>>> Finish the port of FeatureLib to CMake |
|
add_definitions(-DBUILD_TYPE=BUILD_TYPE_LIVE) |
|
|
|
if(EXTERNAL_RELEASE) |
|
add_definitions(-DPLASMA_EXTERNAL_RELEASE) |
|
endif(EXTERNAL_RELEASE) |
|
|
|
set(PLASMA_TARGETS Client |
|
CACHE STRING "Which set of plasma targets to build and use") |
|
set_property(CACHE PLASMA_TARGETS PROPERTY STRINGS |
|
"Client" "Server" "Patcher" "Ethereal" "NoAvMsgs") |
|
|
|
if(PLASMA_TARGETS STREQUAL "Patcher") |
|
add_definitions(-DPATCHER) |
|
endif(PLASMA_TARGETS STREQUAL "Patcher") |
|
|
|
if(PLASMA_TARGETS STREQUAL "Server") |
|
add_definitions(-DSERVER) |
|
endif(PLASMA_TARGETS STREQUAL "Server") |
|
|
|
if(PLASMA_TARGETS STREQUAL "NoAvMsgs") |
|
add_definitions(-DNO_AV_MSGS) |
|
endif(PLASMA_TARGETS STREQUAL "NoAvMsgs") |
|
|
|
if(PLASMA_TARGETS STREQUAL "Ethereal") |
|
add_definitions(-DSTREAM_LOGGER) |
|
endif(PLASMA_TARGETS STREQUAL "Ethereal") |
|
|
|
if(MSVC) |
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS) |
|
add_definitions(-D_SCL_SECURE_NO_WARNINGS) |
|
endif(MSVC) |
|
|
|
add_subdirectory(Sources/Plasma) |
|
# add_subdirectory(Sources/Tools)
|
|
|