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

project(Base)

my_add_subdir(Debug)
6
my_add_subdir(Utils)
7
my_add_subdir(Security)
8
9
10
11
12
13
14
15
16
17
18
19
20

include_directories(${PROJECT_SOURCE_DIR}/..)

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

if (MSVC)
# generate dllexport macros on Windows Win64 (we do not support x32 platforms)

	add_definitions(-D_SCL_SECURE_NO_DEPRECATE)
	add_definitions(-D_USE_MATH_DEFINES)
	add_definitions(-DNOMINMAX)
	
21
	add_definitions(/W4) 
22
23
24
	add_definitions(/MP) #build on all cores 
endif (MSVC)