20 lines
539 B
CMake
20 lines
539 B
CMake
cmake_minimum_required(VERSION 2.6)
|
|
|
|
IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
|
# GNU systems need to define the Mersenne exponent for the RNG to compile w/o warning
|
|
ADD_DEFINITIONS("-DSFMT_MEXP=19937")
|
|
ENDIF()
|
|
|
|
add_subdirectory(common)
|
|
if(WITH_SERVER)
|
|
add_subdirectory(servatrice)
|
|
endif(WITH_SERVER)
|
|
if (NOT WITHOUT_CLIENT)
|
|
add_subdirectory(cockatrice)
|
|
add_subdirectory(oracle)
|
|
add_subdirectory(sounds)
|
|
add_subdirectory(zonebg)
|
|
endif(NOT WITHOUT_CLIENT)
|
|
if (WITH_TESTCLIENT)
|
|
add_subdirectory(testclient)
|
|
endif(WITH_TESTCLIENT)
|