-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (42 loc) · 1.57 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
41
42
43
44
45
46
47
48
49
50
cmake_minimum_required(VERSION 3.12)
project(smelly_shapes_cpp)
set(CMAKE_CXX_STANDARD 17)
include_directories(GoogleTestProject)
include_directories(SmellyShapes/include)
set(SOURCE_FILES
SmellyShapes/include/Circle.h
SmellyShapes/include/Color.h
SmellyShapes/include/ComplexShape.h
SmellyShapes/include/DrawingBoard.h
SmellyShapes/include/Rectangle.h
SmellyShapes/include/Shape.h
SmellyShapes/include/ShapeGroup.h
SmellyShapes/include/SimpleShape.h
SmellyShapes/include/Square.h
SmellyShapes/Source/Circle.cpp
SmellyShapes/Source/Color.cpp
SmellyShapes/Source/DrawingBoard.cpp
SmellyShapes/Source/Rectangle.cpp
SmellyShapes/Source/Shape.cpp
SmellyShapes/Source/ShapeGroup.cpp
SmellyShapes/Source/Square.cpp)
set(TEST_SOURCE_FILES
GoogleTestProject/CircleTest.cpp
GoogleTestProject/ColorTest.cpp
GoogleTestProject/pch.cpp
GoogleTestProject/pch.h
GoogleTestProject/RectangleTest.cpp
GoogleTestProject/ShapeGroupTest.cpp
GoogleTestProject/SquareTest.cpp
GoogleTestProject/gtest.h
GoogleTestProject/gtest-all.cc)
add_executable(smelly_shapes_cpp
${SOURCE_FILES}
SmellyShapes/SmellyShapes.cpp
)
add_executable(google_tests
${SOURCE_FILES}
${TEST_SOURCE_FILES}
GoogleTestProject/main.cpp)
# turn off pthread use in gtest as it's not available on all platforms and not needed for the project
target_compile_definitions(google_tests PUBLIC GTEST_HAS_PTHREAD=0)