pvpgn-server/src/CMakeLists.txt
xboi209 ae45207b29 - Minimum CMake version: 3.1.0
- Minimum G++ version: 4.8
- Minimum Visual Studio version: VS2012
- Added '-std=c++11' flag to G++
- Removed unused defines
- Removed checks for standard library headers
- Added CMake detections of '_vsnprintf' and '_snprintf' for Visual Studio 2015
- Removed bnpcap
- Force Travis CI to use CMake 3.1.3 and G++5
2015-08-24 02:30:17 -07:00

60 lines
1.4 KiB
CMake

#first setup the includes and link paths
include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src)
# the following line makes sure all targets will lookup local libraries
# when referenced by short names
link_directories(${CMAKE_BINARY_DIR}/src/common
${CMAKE_BINARY_DIR}/src/compat
${CMAKE_BINARY_DIR}/src/win32
${CMAKE_BINARY_DIR}/src/tinycdb)
#this is needed to be compatible with existent code
add_definitions("-DHAVE_CONFIG_H")
if(WITH_FLAG_WALL)
add_definitions("-Wall")
endif(WITH_FLAG_WALL)
if(WITH_FLAG_ANSIPEDANTIC)
add_definitions("-pedantic -ansi")
endif(WITH_FLAG_ANSIPEDANTIC)
if(LUA_FOUND)
add_definitions("-DWITH_LUA")
endif(LUA_FOUND)
if(MYSQL_FOUND)
add_definitions("-DWITH_SQL_MYSQL")
endif(MYSQL_FOUND)
if(SQLITE3_FOUND)
add_definitions("-DWITH_SQL_SQLITE3")
endif(SQLITE3_FOUND)
if(PGSQL_FOUND)
add_definitions("-DWITH_SQL_PGSQL")
endif(PGSQL_FOUND)
if(ODBC_FOUND)
add_definitions("-DWITH_SQL_ODBC")
endif(ODBC_FOUND)
if (WITH_WIN32_GUI)
add_definitions("-DWIN32_GUI")
endif (WITH_WIN32_GUI)
subdirs(compat common win32 tinycdb bntrackd client bniutils bnpass)
if(WITH_BNETD)
add_subdirectory(bnetd)
endif(WITH_BNETD)
if(WITH_D2CS)
add_subdirectory(d2cs)
endif(WITH_D2CS)
if(WITH_D2DBS)
add_subdirectory(d2dbs)
endif(WITH_D2DBS)
if(CMAKE_TESTING_ENABLED)
add_subdirectory(test)
endif(CMAKE_TESTING_ENABLED)