2013-12-10 13:41:43 -05:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (MCServer)
|
|
|
|
|
2013-12-10 16:39:20 -05:00
|
|
|
set(CMAKE_CXX_FLAGS_BAK ${CMAKE_CXX_FLAGS})
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
|
2013-12-10 17:43:21 -05:00
|
|
|
set(CMAKE_BUILD_TYPE_BAK ${CMAKE_BUILD_TYPE})
|
|
|
|
set(CMAKE_BUILD_TYPE "Release")
|
2013-12-10 16:39:20 -05:00
|
|
|
|
2013-12-10 13:41:43 -05:00
|
|
|
add_subdirectory(lib/inifile/)
|
2013-12-10 16:39:20 -05:00
|
|
|
add_subdirectory(lib/jsoncpp/)
|
|
|
|
add_subdirectory(lib/cryptopp/)
|
2013-12-10 18:26:55 -05:00
|
|
|
add_subdirectory(lib/zlib/)
|
2013-12-18 18:14:11 -05:00
|
|
|
add_subdirectory(lib/lua/)
|
2013-12-18 18:54:55 -05:00
|
|
|
add_subdirectory(lib/tolua++/)
|
2013-12-10 16:39:20 -05:00
|
|
|
|
|
|
|
#TODo: set -Wall -Werror -Wextra
|
2013-12-10 17:43:21 -05:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_BAK}")
|
|
|
|
set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE_BAK}")
|
2013-12-10 16:39:20 -05:00
|
|
|
|
2013-12-10 13:41:43 -05:00
|
|
|
add_subdirectory (src)
|
|
|
|
|