-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (31 loc) · 872 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
##
## EPITECH PROJECT, 2018
## NETiles
## File description:
## CMakeLists
##
cmake_minimum_required(VERSION 3.0.0)
########################################
function(PREPEND var prefix)
set(listVar "")
foreach(f ${ARGN})
list(APPEND listVar "${prefix}${f}")
endforeach(f)
set(${var} "${listVar}" PARENT_SCOPE)
endfunction(PREPEND)
########################################
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
project(NETiles)
add_definitions("-std=c++17")
add_definitions("-W -Wall -Wextra")
########################################
set(SERVER_DIR server/)
set(CLIENT_DIR client/)
set(EDITOR_DIR editor/)
set(SERVER_NAME NETiles_Server)
set(CLIENT_NAME NETiles_Client)
set(EDITOR_NAME NETiles_Editor)
########################################
add_subdirectory(${SERVER_DIR})
add_subdirectory(${CLIENT_DIR})
add_subdirectory(${EDITOR_DIR})