-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
23 lines (20 loc) · 1.01 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
project(design-patterns-cpp14 CXX)
cmake_minimum_required(VERSION 3.5)
include("$ENV{CMAKI_PWD}/node_modules/npm-mas-mas/cmaki/cmaki.cmake")
cmaki_setup()
cmaki_find_package_boost()
include_directories(include)
cmaki_library(foo tests/foo.cpp)
cmaki_library(fooA tests/fooA.cpp DEPENDS foo)
cmaki_library(fooB tests/fooB.cpp DEPENDS foo)
cmaki_google_test(factory_dynamic tests/test_factory_dynamic.cpp PTHREADS)
cmaki_google_test(factory_static tests/test_factory_static.cpp PTHREADS)
cmaki_google_test(memoize_dynamic tests/test_memoize_dynamic.cpp PTHREADS)
cmaki_google_test(memoize_static tests/test_memoize_static.cpp PTHREADS)
if(WIN32)
cmaki_google_test(factory_linking tests/test_factory_linking.cpp DEPENDS foo PTHREADS)
else()
cmaki_google_test(factory_linking tests/test_factory_linking.cpp DEPENDS foo dl PTHREADS)
endif()
cmaki_google_test(repository_static tests/test_repository_static.cpp PTHREADS)
cmaki_google_test(repository_once_static tests/test_repository_once_static.cpp PTHREADS)