-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (41 loc) · 1.45 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
cmake_minimum_required(VERSION 3.7)
project(orbit3d)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_STANDARD 11)
include_directories(${VTK_INCLUDE_DIRS})
add_custom_target(copy-runtime-files ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/data ${CMAKE_BINARY_DIR}/data
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/physical_properties ${CMAKE_BINARY_DIR}/physical_properties
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/trajectory
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/trajectory/vel
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/trajectory/pos)
find_package(VTK 8.0 REQUIRED COMPONENTS vtkViewsCore vtkGUISupportQt vtkCommonCore NO_MODULE)
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets X11Extras Charts)
find_package(Boost)
include(${VTK_USE_FILE})
set(SOURCE_FILES
main.cpp
body.h
system.cpp
system.h
vector3.h
trajectory.cpp
trajectory.h
planetdata.cpp
planetdata.h
propertiesfile.cpp
propertiesfile.h
verlet.cpp
verlet.h
rk4.cpp rk4.h)
add_executable(orbit3d ${SOURCE_FILES} )
add_dependencies(orbit3d copy-runtime-files)
target_link_libraries(orbit3d
Qt5::Core
Qt5::Gui
Qt5::Widgets
Qt5::X11Extras
Qt5::Charts
${VTK_LIBRARIES}
${Boost_LIBRARIES})