-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (24 loc) · 1.08 KB
/
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
CMAKE_MINIMUM_REQUIRED(VERSION 3.6)
PROJECT(OpenBase)
#################################################################
# CMAKE search path
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
#################################################################
# Compiler and Linker
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/lib/gtest/${CMAKE_CFG_INTDIR}/)
#################################################################
# projects
SET(UTILITY_TESTS
${CMAKE_CURRENT_SOURCE_DIR}/test/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test/utility.hpp
${CMAKE_CURRENT_SOURCE_DIR}/src/utility/platform.h
${CMAKE_CURRENT_SOURCE_DIR}/src/utility/platform.cpp)
SET(UTILITY_LIBS
gtest.lib)
#################################################################
# Compile targets
ADD_EXECUTABLE(MainTest ${UTILITY_TESTS})
TARGET_LINK_LIBRARIES(MainTest ${UTILITY_LIBS})