CMakeLists.txt 565 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.0)

project(Base)

my_add_subdir(Debug)

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)
	
19
	add_definitions(/W1) #add appropriate warnings flags for this project, the compilation raises too may warnings
20
21
22
	add_definitions(/MP) #build on all cores 
endif (MSVC)