-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
42 lines (32 loc) · 905 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.14)
project(CPP_rtype_2019)
set(CMAKE_CXX_STANDARD 14)
if (NOT WIN32)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
endif (NOT WIN32)
# Include folders
include_directories(Common/)
include_directories(GameEngine/Include/)
include_directories(Entity/Include/)
include_directories(Common/Include/)
include(GameEngine/GameEngine.cmake)
include(Common/Common.cmake)
include(Entity/Entity.cmake)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
set(CMAKE_CXX_COMPILER clang++)
# Client
add_executable(r-type_client
${SRC}
Client/Main.cpp
)
# Server
add_executable(r-type_server
${SRC}
Server/Main.cpp
Server/Server.cpp
)
if (NOT WIN32)
target_link_libraries(r-type_server ${CONAN_LIBS} -lm)
target_link_libraries(r-type_client ${CONAN_LIBS} -lm)
endif (NOT WIN32)