-
Notifications
You must be signed in to change notification settings - Fork 59
/
CMakeLists.txt
51 lines (34 loc) · 964 Bytes
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
set(target globjects-test)
message(STATUS "Test ${target}")
# Includes
include_directories(
)
include_directories(
BEFORE
${CMAKE_SOURCE_DIR}/source/globjects/include
)
# Libraries
set(libs
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES}
globjects
)
# Sources
set(sources
main.cpp
ref_ptr_test.cpp
Referenced_test.cpp
)
# Build executable
add_executable(${target} ${sources})
target_link_libraries(${target} ${libs})
set_target_properties(${target}
PROPERTIES
LINKER_LANGUAGE CXX
FOLDER "${IDE_FOLDER}"
COMPILE_DEFINITIONS_DEBUG "${DEFAULT_COMPILE_DEFS_DEBUG}"
COMPILE_DEFINITIONS_RELEASE "${DEFAULT_COMPILE_DEFS_RELEASE}"
COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS}"
LINK_FLAGS_DEBUG "${DEFAULT_LINKER_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${DEFAULT_LINKER_FLAGS_RELEASE}"
DEBUG_POSTFIX "d${DEBUG_POSTFIX}")