server/CMakeLists.txt

41 lines
1.2 KiB
Text
Raw Normal View History

2017-03-27 21:10:30 +02:00
cmake_minimum_required(VERSION 2.8)
2017-03-28 16:25:56 +02:00
project (eressea-server C)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules/" ${CMAKE_MODULE_PATH})
if (WIN32)
FILE(TO_CMAKE_PATH "${CMAKE_MODULE_PATH}" CMAKE_MODULE_PATH )
FILE(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH )
endif(WIN32)
2017-03-28 16:25:56 +02:00
if (MSVC)
include(MSVC)
endif (MSVC)
find_package (SQLite3)
find_package (Curses)
find_package (LibXml2)
find_package (ToLua REQUIRED)
if (TOLUA_FOUND)
2017-03-27 21:59:56 +02:00
if (${TOLUA_VERSION_STRING} VERSION_GREATER "5.2")
find_package (Lua 5.2 REQUIRED)
2017-03-27 21:59:56 +02:00
elseif (${TOLUA_VERSION_STRING} VERSION_GREATER "5.1")
find_package (Lua 5.1 REQUIRED)
endif()
endif(TOLUA_FOUND)
2017-03-28 16:25:56 +02:00
enable_testing()
2014-03-06 16:15:43 +01:00
add_subdirectory (cJSON)
add_subdirectory (storage)
add_subdirectory (iniparser)
add_subdirectory (clibs)
add_subdirectory (process)
add_subdirectory (src eressea)
2017-03-28 16:25:56 +02:00
install(DIRECTORY res conf DESTINATION ${CMAKE_INSTALL_PREFIX} FILES_MATCHING PATTERN "*.xml")
install(DIRECTORY res conf DESTINATION ${CMAKE_INSTALL_PREFIX} FILES_MATCHING PATTERN "*.json")
install(DIRECTORY scripts DESTINATION ${CMAKE_INSTALL_PREFIX} FILES_MATCHING PATTERN "*.lua")
install(DIRECTORY lunit DESTINATION ${CMAKE_INSTALL_PREFIX} FILES_MATCHING PATTERN "*.lua")
install(DIRECTORY share DESTINATION ${CMAKE_INSTALL_PREFIX})
2017-03-28 16:25:56 +02:00