-
Notifications
You must be signed in to change notification settings - Fork 51
/
CMakeLists.txt
40 lines (31 loc) · 1.16 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.5.1)
project(RCSSServer VERSION 19.0.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
find_package(ZLIB REQUIRED)
if(ZLIB_FOUND)
set(HAVE_LIBZ TRUE)
endif()
find_package(BISON REQUIRED)
find_package(FLEX REQUIRED)
#find_package(Boost COMPONENTS system filesystem REQUIRED)
find_package(Boost 1.44.0 COMPONENTS system REQUIRED)
include(GNUInstallDirs)
include(CheckIncludeFileCXX)
check_include_file_cxx("sys/socket.h" HAVE_SYS_SOCKET_H)
check_include_file_cxx("sys/param.h" HAVE_SYS_PARAM_H)
check_include_file_cxx("sys/time.h" HAVE_SYS_TIME_H)
check_include_file_cxx("netinet/in.h" HAVE_NETINET_IN_H)
check_include_file_cxx("arpa/inet.h" HAVE_ARPA_INET_H)
check_include_file_cxx("netdb.h" HAVE_NETDB_H)
check_include_file_cxx("unistd.h" HAVE_UNISTD_H)
check_include_file_cxx("poll.h" HAVE_POLL_H)
check_include_file_cxx("pwd.h" HAVE_PWD_H)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake config.h)
add_subdirectory(rcss)
add_subdirectory(src)