-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
116 lines (103 loc) · 2.52 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
cmake_minimum_required(VERSION 3.16.0 FATAL_ERROR)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
set(VERSION "1.0.0")
project(PinpointWCS VERSION ${VERSION})
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5 COMPONENTS Core Network Widgets REQUIRED)
find_package(CFITSIO REQUIRED)
find_package(LIBWCS REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(XPA REQUIRED)
add_subdirectory(adobexmp)
add_compile_definitions(
UNIX_ENV=1
XMP_UNIXBuild=1
XMP_COMPONENT_INT_NAMESPACE=AdobeXMPCore_Int
)
include_directories(
${CMAKE_SOURCE_DIR}/backend
${CMAKE_SOURCE_DIR}/gui
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/adobexmp/XMP-Toolkit-SDK/public/include
${EIGEN3_INCLUDE_DIR}
${LIBWCS_INCLUDE_DIR}
${CFITSIO_INCLUDE_DIR}
${XPA_INCLUDE_DIR}
)
add_executable(
PinpointWCS
PinpointWCS.qrc
main.cpp
backend/ComputeWCS.cpp
backend/CoordinateDelegate.cpp
backend/CoordinateModel.cpp
backend/DS9Thread.cpp
backend/EpoImage.cpp
backend/ExportWCS.cpp
backend/FitsImage.cpp
backend/FITSThread.cpp
backend/PinpointWCSUtils.cpp
backend/PPWcsImage.cpp
backend/RemoteData.cpp
backend/ComputeWCS.h
backend/CoordinateDelegate.h
backend/CoordinateModel.h
backend/DS9Thread.h
backend/EpoImage.h
backend/ExportWCS.h
backend/FitsImage.h
backend/FITSThread.h
backend/PinpointWCSUtils.h
backend/PPWcsImage.h
backend/RemoteData.h
gui/AboutDialog.ui
gui/CoordinatePanel.ui
gui/CoordinateTableDialog.ui
gui/FitsToolbar.ui
gui/HelpPanel.ui
gui/PinpointWCS.ui
gui/WcsInfoPanel.ui
gui/AboutDialog.cpp
gui/Commands.cpp
gui/CoordinateMarker.cpp
gui/CoordinatePanel.cpp
gui/CoordinateTableDialog.cpp
gui/DropArea.cpp
gui/FitsToolbar.cpp
gui/GraphicsScene.cpp
gui/GraphicsView.cpp
gui/HelpPanel.cpp
gui/MainWindow.cpp
gui/MessageBox.cpp
gui/WcsInfoPanel.cpp
gui/AboutDialog.h
gui/Commands.h
gui/CoordinateMarker.h
gui/CoordinatePanel.h
gui/CoordinateTableDialog.h
gui/DropArea.h
gui/FitsToolbar.h
gui/GraphicsScene.h
gui/GraphicsView.h
gui/HelpPanel.h
gui/MainWindow.h
gui/MessageBox.h
gui/WcsInfoPanel.h
)
target_link_libraries(
PinpointWCS
PRIVATE
Qt5::Core
Qt5::Network
Qt5::Widgets
adobexmp
${LIBWCS_LIBRARY}
${CFITSIO_LIBRARY}
${XPA_LIBRARY}
${EXPAT_LIBRARY_RELEASE}
z
)