-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (30 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.13)
project(Fabryka)
set(CMAKE_CXX_STANDARD 17)
add_compile_options(-Wall -Wextra -Werror -Wpedantic -pedantic-errors)
include_directories(
include
)
set(SOURCE_FILES
src/package.cpp
src/storage_types.cpp
src/nodes.cpp
src/helpers.cpp)
add_executable(Fabryka__debug ${SOURCE_FILES} fabryka.cpp #src/storage_types.cpp#)
)
target_compile_definitions(Fabryka__debug PUBLIC EXERCISE_ID=2)
set(SOURCES_FILES_TESTS
test/test_package.cpp
test/test_nodes.cpp
#test/test_Factory.cpp
#test/test_factory_io.cpp
#test/test_simulate.cpp
test/test_storage_types.cpp)
add_executable(Fabryka__test ${SOURCE_FILES} ${SOURCES_FILES_TESTS} test/main_gtest.cpp)
target_include_directories(Fabryka__test PUBLIC
../../googletest-master/googlemock/include
../../googletest-master/googletest/include
mocks
)
add_subdirectory(googletest-master)
target_link_libraries(Fabryka__test gmock)