-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathCMakeLists.txt
90 lines (78 loc) · 3.88 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
cmake_minimum_required (VERSION 3.14)
project(OMSens_Qt)
## This is used by the OpenModelica superproject. Pedantically, it should be done
## in OpenModelica itself but it is cleaner to set it here for now since this project
## is not used standalone.
## Anything installed from this directory and its subdirectories belongs
## to the install component 'omshell' if it is not explicitly changed.
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME omsens)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt${OM_QT_MAJOR_VERSION} COMPONENTS Core Gui Widgets REQUIRED)
set(OMSENS_QT_SOURCES dialogs/general/CSVViewerDialog.cpp
dialogs/general/ImageViewerDialog.cpp
dialogs/indiv/IndivParamSensAnalysisDialog.cpp
dialogs/indiv/IndivSensAnalTypeDialog.cpp
dialogs/indiv/IndivSensResultsDialog.cpp
dialogs/sweep/MultiParamSweepDialog.cpp
dialogs/sweep/SweepResultDialog.cpp
dialogs/vect/VectorialParamSensAnalysisDialog.cpp
dialogs/vect/VectorialResultsDialog.cpp
tabs/HelpTab.cpp
tabs/OptimizationTab.cpp
tabs/ParametersExtendedTab.cpp
tabs/ParametersSimpleTab.cpp
tabs/SensitivityMethodResultsTab.cpp
tabs/SimulationTab.cpp
tabs/VariablesTab.cpp
DualLists.cpp
main.cpp
OMSensDialog.cpp
tabs/optim_result/OptimizationResultParametersTab.cpp
tabs/optim_result/OptimizationResultOtherTab.cpp
tabs/sweep_result/SweepResultVariableTab.cpp
dialogs/help/HelpBrowser.cpp
tabs/PerturbationTab.cpp
specs/IndivSpecs.cpp
specs/SweepSpecs.cpp
specs/VectSpecs.cpp
OMSensPlugin.cpp
omedit_plugin/model.cpp)
set(OMSENS_QT_HEADERS dialogs/general/CSVViewerDialog.h
dialogs/general/ImageViewerDialog.h
dialogs/indiv/IndivParamSensAnalysisDialog.h
dialogs/indiv/IndivSensAnalTypeDialog.h
dialogs/indiv/IndivSensResultsDialog.h
dialogs/sweep/MultiParamSweepDialog.h
dialogs/sweep/SweepResultDialog.h
dialogs/vect/VectorialParamSensAnalysisDialog.h
dialogs/vect/VectorialResultsDialog.h
tabs/HelpTab.h
tabs/OptimizationTab.h
tabs/ParametersExtendedTab.h
tabs/ParametersSimpleTab.h
tabs/SensitivityMethodResultsTab.h
tabs/SimulationTab.h
tabs/VariablesTab.h
DualLists.h
OMSensDialog.h
TableItemDelegate.h
tabs/optim_result/OptimizationResultParametersTab.h
tabs/optim_result/OptimizationResultOtherTab.h
dialogs/BaseRunSpecsDialog.h
dialogs/BaseResultsDialog.h
tabs/sweep_result/SweepResultVariableTab.h
dialogs/help/HelpBrowser.h
tabs/PerturbationTab.h
ForceSignDoubleSpinbox.h
SciNotationDoubleSpinbox.h
specs/IndivSpecs.h
specs/RunSpecifications.h
specs/VectSpecs.h
OMSensPlugin.h
omedit_plugin/model.h)
add_library(omsensplugin SHARED ${OMSENS_QT_SOURCES} ${OMSENS_QT_HEADERS})
target_include_directories(omsensplugin PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(omsensplugin PUBLIC Qt${OM_QT_MAJOR_VERSION}::Widgets)
install(TARGETS omsensplugin)