forked from BertHeesakkers/IGADPiGameServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (18 loc) · 811 Bytes
/
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
cmake_minimum_required(VERSION 3.9.2)
project (IGADPiGameServer)
if(UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++11")
endif()
set(THIRD_PARTY_FOLDER ${CMAKE_SOURCE_DIR}/Thirdparty/)
set(ROOT_INCLUDE_FOLDER ${CMAKE_SOURCE_DIR}/Include/)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) # Output directory for static lib
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) # Output directory for shared lib
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) # Output directory for executables
set(CMAKE_DEBUG_POSTFIX "_d")
include_directories(${ROOT_INCLUDE_FOLDER})
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
add_definitions(-D_WINSOCKAPI_)
endif()
add_subdirectory(Libraries)
add_subdirectory(Applications)