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/)
|
|
|
|
|
|
|
|
#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)
|
|
|
|
|