CMakeLists.txt 377 Bytes
Newer Older
1
2
3
4
cmake_minimum_required(VERSION 3.0)

project(Base)

5
my_add_subdir(Code)
6
my_add_subdir(Debug)
7
my_add_subdir(Utils)
8
my_add_subdir(Security)
9
10
11
12
13
14
15
16
17

include_directories(${PROJECT_SOURCE_DIR}/..)

add_library(Base ${SOURCES} ${HEADERS})
# target_link_libraries(Base)

if (MSVC)
	add_definitions(-DNOMINMAX)
	
18
	add_definitions(/W4) 
19
20
	add_definitions(/MP) #build on all cores 
endif (MSVC)