2013-12-11 02:41:43 +08:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (MCServer)
|
|
|
|
|
2013-12-11 05:39:20 +08:00
|
|
|
set(CMAKE_CXX_FLAGS_BAK ${CMAKE_CXX_FLAGS})
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
|
2013-12-11 06:43:21 +08:00
|
|
|
set(CMAKE_BUILD_TYPE_BAK ${CMAKE_BUILD_TYPE})
|
|
|
|
set(CMAKE_BUILD_TYPE "Release")
|
2013-12-11 05:39:20 +08:00
|
|
|
|
2013-12-11 02:41:43 +08:00
|
|
|
add_subdirectory(lib/inifile/)
|
2013-12-11 05:39:20 +08:00
|
|
|
add_subdirectory(lib/jsoncpp/)
|
|
|
|
add_subdirectory(lib/cryptopp/)
|
2013-12-11 07:26:55 +08:00
|
|
|
add_subdirectory(lib/zlib/)
|
2013-12-19 07:14:11 +08:00
|
|
|
add_subdirectory(lib/lua/)
|
2013-12-19 07:54:55 +08:00
|
|
|
add_subdirectory(lib/tolua++/)
|
2013-12-19 08:28:48 +08:00
|
|
|
add_subdirectory(lib/sqlite/)
|
2013-12-11 05:39:20 +08:00
|
|
|
|
|
|
|
#TODo: set -Wall -Werror -Wextra
|
2013-12-11 06:43:21 +08:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_BAK}")
|
|
|
|
set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE_BAK}")
|
2013-12-11 05:39:20 +08:00
|
|
|
|
2013-12-11 02:41:43 +08:00
|
|
|
add_subdirectory (src)
|
|
|
|
|