forked from BRL-CAD/arbalest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
78 lines (66 loc) · 2.26 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
72
73
74
75
76
77
78
cmake_minimum_required(VERSION 3.1.3)
project(Arbalest)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
cmake_policy(SET CMP0072 NEW)
find_package(BRLCAD_MOOSE REQUIRED)
find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(OpenGL REQUIRED)
set(arbalest_Include_Dirs
"${CMAKE_CURRENT_SOURCE_DIR}"
"src/windows"
"include"
${BRLCAD_MOOSE_INCLUDE_DIR})
set(arbalest_Sources
src/gui/MainWindow.cpp
src/main.cpp
src/Document.cpp
src/ObjectTree.cpp
src/gui/ObjectTreeWidget.cpp
src/display/GeometryRenderer.cpp
src/display/OrthographicCamera.cpp
src/display/PerspectiveCamera.cpp
src/display/Display.cpp
src/display/DisplayManager.cpp
src/display/AxesRenderer.cpp
src/Globals.cpp
src/utils/QSSPreprocessor.cpp
src/gui/Dockable.cpp
src/gui/Properties.cpp
src/gui/CollapsibleWidget.cpp
src/gui/TypeSpecificProperties.cpp
src/gui/QHBoxWidget.cpp
src/gui/QVBoxWidget.cpp
src/gui/DataRow.cpp
src/gui/DragEditLineEdit.cpp
src/gui/ObjectTreeRowButtons.cpp
src/utils/Utils.cpp
src/gui/DisplayGrid.cpp
src/gui/AboutWindow.cpp
src/display/RaytraceView.cpp
src/gui/HelpWidget.cpp
src/gui/MatrixTransformWidget.cpp
src/display/GridRenderer.cpp
src/display/MouseAction.cpp
src/display/MoveCameraMouseAction.cpp
src/display/SelectMouseAction.cpp)
set(arbalest_Link_Libraries
${BRLCAD_MOOSE_LIBRARY}
Qt5::Widgets
OpenGL::GL)
# Meta-Object Compiling
file(GLOB arbalest_HEADERS_TO_MOC ./include/*)
qt5_wrap_cpp(arbalest_PROCESSED_MOCS ${arbalest_HEADERS_TO_MOC} TARGET arbalest OPTIONS --no-notes)
# Resource Compiling
qt5_add_resources(arbalest_PROCESSED_RCC resources/resources.qrc)
include_directories(${arbalest_Include_Dirs})
link_directories(${BRLCAD_MOSE_LIBRARY_DIR})
IF(MSVC)
ADD_DEFINITIONS("-DBRLCAD_MOOSE_EXPORT=__declspec(dllimport)")
ELSE(MSVC)
ADD_DEFINITIONS("-DBRLCAD_MOOSE_EXPORT=")
ENDIF(MSVC)
add_executable(arbalest
${arbalest_Sources}
${arbalest_PROCESSED_MOCS}
${arbalest_PROCESSED_RCC})
target_link_libraries(arbalest ${arbalest_Link_Libraries})