/
CMakeLists.txt
71 lines (65 loc) · 2.22 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
include(GoogleTest)
add_executable(drtest
Basic.cpp
Brush.cpp
Camera.cpp
ColourSchemes.cpp
ContinuousBuffer.cpp
CSG.cpp
DeclManager.cpp
DefBlockSyntaxParser.cpp
DefTokenisers.cpp
Entity.cpp
EntityClass.cpp
Favourites.cpp
FileTypes.cpp
GeometryStore.cpp
Grid.cpp
HeadlessOpenGLContext.cpp
ImageLoading.cpp
LayerManipulation.cpp
MapExport.cpp
MapMerging.cpp
MapSavingLoading.cpp
MaterialExport.cpp
Materials.cpp
math/Matrix3.cpp
math/Matrix4.cpp
math/Plane3.cpp
math/Quaternion.cpp
math/Vector.cpp
MessageBus.cpp
ModelExport.cpp
ModelScale.cpp
Models.cpp
Particles.cpp
Patch.cpp
PatchIterators.cpp
PatchWelding.cpp
PointTrace.cpp
Prefabs.cpp
Renderer.cpp
SceneNode.cpp
SelectionAlgorithm.cpp
Selection.cpp
Settings.cpp
SoundManager.cpp
TextureManipulation.cpp
TextureTool.cpp
Transformation.cpp
UndoRedo.cpp
VFS.cpp
WorldspawnColour.cpp)
find_package(Threads REQUIRED)
target_compile_options(drtest PUBLIC ${SIGC_CFLAGS})
# Set up the paths such that the drtest executable can find the test resources
# and the core binary in the build workspace (in install/ and test/resources/)
get_filename_component(TEST_BASE_PATH "./" ABSOLUTE)
add_compile_definitions(TEST_BASE_PATH="${TEST_BASE_PATH}")
target_link_libraries(drtest PUBLIC
math xmlutil scenegraph module
${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES}
${SIGC_LIBRARIES} ${GLEW_LIBRARIES} ${X11_LIBRARIES}
PRIVATE Threads::Threads)
install(TARGETS drtest)
gtest_discover_tests(drtest)