CMakeLists.txt 445 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
my_add_subdir(Test)
10
11

include_directories(${PROJECT_SOURCE_DIR}/..)
12
include_directories(${3P_DIR}/Boost/${INC_DIR})
13
14
15
16
17
18
19

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

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