forked from github/server
26 lines
868 B
CMake
26 lines
868 B
CMake
cmake_minimum_required(VERSION 2.6)
|
|
if (WIN32)
|
|
FILE(TO_CMAKE_PATH "${CMAKE_MODULE_PATH}" CMAKE_MODULE_PATH )
|
|
FILE(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH )
|
|
endif(WIN32)
|
|
|
|
project (eressea-server C)
|
|
|
|
|
|
enable_testing()
|
|
find_package (LibXml2)
|
|
find_package (SQLite3)
|
|
find_package (Curses)
|
|
find_package (Lua REQUIRED)
|
|
find_package (ToLua REQUIRED)
|
|
|
|
add_subdirectory (cJSON)
|
|
add_subdirectory (storage)
|
|
add_subdirectory (iniparser)
|
|
add_subdirectory (clibs)
|
|
add_subdirectory (process)
|
|
add_subdirectory (src eressea)
|
|
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 share DESTINATION ${CMAKE_INSTALL_PREFIX})
|