cmake: more necessary files added. Still a lot of testing needed.
This commit is contained in:
141
src/musredit/CMakeLists.txt
Normal file
141
src/musredit/CMakeLists.txt
Normal file
@@ -0,0 +1,141 @@
|
||||
#--- musredit for Qt > 4.6 and < 5.0 ------------------------------------------
|
||||
|
||||
#--- create musrfit-info.h ----------------------------------------------------
|
||||
configure_file(
|
||||
${CMAKE_SOURCE_DIR}/cmake/musrfit-info.h.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/musrfit-info.h
|
||||
)
|
||||
|
||||
#--- sources, headers, ... ----------------------------------------------------
|
||||
set(musredit_src
|
||||
main.cpp
|
||||
PAdmin.cpp
|
||||
PDumpOutputHandler.cpp
|
||||
PFindDialog.cpp
|
||||
PFitOutputHandler.cpp
|
||||
PGetAsymmetryRunBlockDialog.cpp
|
||||
PGetDefaultDialog.cpp
|
||||
PGetFourierBlockDialog.cpp
|
||||
PGetFunctionsBlockDialog.cpp
|
||||
PGetMusrFTOptionsDialog.cpp
|
||||
PGetNonMusrRunBlockDialog.cpp
|
||||
PGetParameterBlockDialog.cpp
|
||||
PGetPlotBlockDialog.cpp
|
||||
PGetSingleHistoRunBlockDialog.cpp
|
||||
PGetTheoryBlockDialog.cpp
|
||||
PGetTitleBlockDialog.cpp
|
||||
PHelp.cpp
|
||||
PMsr2DataDialog.cpp
|
||||
PMusrEditAbout.cpp
|
||||
PPrefsDialog.cpp
|
||||
PReplaceConfirmationDialog.cpp
|
||||
PReplaceDialog.cpp
|
||||
PSubTextEdit.cpp
|
||||
PTextEdit.cpp
|
||||
)
|
||||
|
||||
set(musredit_h
|
||||
musredit.h
|
||||
PAdmin.h
|
||||
PDumpOutputHandler.h
|
||||
PFindDialog.h
|
||||
PFitOutputHandler.h
|
||||
PGetAsymmetryRunBlockDialog.h
|
||||
PGetDefaultDialog.h
|
||||
PGetFourierBlockDialog.h
|
||||
PGetFunctionsBlockDialog.h
|
||||
PGetMusrFTOptionsDialog.h
|
||||
PGetNonMusrRunBlockDialog.h
|
||||
PGetParameterBlockDialog.h
|
||||
PGetPlotBlockDialog.h
|
||||
PGetSingleHistoRunBlockDialog.h
|
||||
PGetTheoryBlockDialog.h
|
||||
PGetTitleBlockDialog.h
|
||||
PHelp.h
|
||||
PMsr2DataDialog.h
|
||||
PMusrEditAbout.h
|
||||
PPrefsDialog.h
|
||||
PReplaceConfirmationDialog.h
|
||||
PReplaceDialog.h
|
||||
PSubTextEdit.h
|
||||
PTextEdit.h
|
||||
)
|
||||
|
||||
set(musredit_ui
|
||||
forms/PFindDialog.ui
|
||||
forms/PGetAsymmetryRunBlockDialog.ui
|
||||
forms/PGetDefaultDialog.ui
|
||||
forms/PGetFourierBlockDialog.ui
|
||||
forms/PGetFunctionsBlockDialog.ui
|
||||
forms/PGetMusrFTOptionsDialog.ui
|
||||
forms/PGetNonMusrRunBlockDialog.ui
|
||||
forms/PGetParameterBlockDialog.ui
|
||||
forms/PGetPlotBlockDialog.ui
|
||||
forms/PGetSingleHistoRunBlockDialog.ui
|
||||
forms/PGetTheoryBlockDialog.ui
|
||||
forms/PGetTitleBlockDialog.ui
|
||||
forms/PMsr2DataDialog.ui
|
||||
forms/PMusrEditAbout.ui
|
||||
forms/PPrefsDialog.ui
|
||||
forms/PReplaceConfirmationDialog.ui
|
||||
forms/PReplaceDialog.ui
|
||||
)
|
||||
|
||||
set(musredit_rcc
|
||||
musredit.qrc
|
||||
)
|
||||
|
||||
# Next, using precompiler, compiler and linker
|
||||
include(${QT_USE_FILE})
|
||||
|
||||
# using Qt meta-system (precompiler)
|
||||
QT4_ADD_RESOURCES(RESOURCES ${musredit_rcc})
|
||||
QT4_WRAP_UI( UI_HEADERS ${musredit_ui})
|
||||
QT4_WRAP_CPP( MOC_SRCS ${musredit_h})
|
||||
|
||||
# define target
|
||||
add_executable(musredit ${musredit_src} ${MOC_SRCS} ${RESOURCES} ${UI_HEADERS})
|
||||
|
||||
target_include_directories(musredit
|
||||
BEFORE PRIVATE
|
||||
$<BUILD_INTERFACE:${QT_INCLUDES}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/..>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/../..>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include>
|
||||
)
|
||||
|
||||
target_compile_definitions(musredit
|
||||
PRIVATE
|
||||
${QT_DEFINITIONS}
|
||||
)
|
||||
|
||||
target_link_libraries(musredit
|
||||
Qt4::QtCore
|
||||
Qt4::QtGui
|
||||
Qt4::QtNetwork
|
||||
Qt4::QtWebKit
|
||||
Qt4::QtXml
|
||||
)
|
||||
|
||||
#--- installation info --------------------------------------------------------
|
||||
install(
|
||||
TARGETS
|
||||
musredit
|
||||
RUNTIME DESTINATION
|
||||
bin
|
||||
)
|
||||
|
||||
#--- documentation installation info ------------------------------------------
|
||||
install(
|
||||
DIRECTORY
|
||||
${CMAKE_SOURCE_DIR}/doc/examples
|
||||
${CMAKE_SOURCE_DIR}/doc/html
|
||||
${CMAKE_SOURCE_DIR}/doc/memos
|
||||
DESTINATION
|
||||
${CMAKE_INSTALL_PREFIX}/share/doc/musrfit
|
||||
MESSAGE_NEVER
|
||||
)
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<iconset resource="../musredit.qrc">
|
||||
<normaloff>:/images/musrfit.xpm</normaloff>:/images/musrfit.xpm</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget0">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
@@ -66,7 +66,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>12</x>
|
||||
@@ -124,7 +124,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>99</x>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<property name="title">
|
||||
<string> Fourier </string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget0">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>21</x>
|
||||
@@ -337,7 +337,7 @@ p, li { white-space: pre-wrap; }
|
||||
<property name="title">
|
||||
<string> Histo Info </string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
@@ -605,7 +605,7 @@ p, li { white-space: pre-wrap; }
|
||||
<property name="title">
|
||||
<string>File Selection</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>19</x>
|
||||
@@ -711,7 +711,7 @@ p, li { white-space: pre-wrap; }
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget3">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<property name="title">
|
||||
<string>Run Header Info</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget0">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
@@ -54,7 +54,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>11</x>
|
||||
@@ -105,7 +105,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
@@ -211,7 +211,7 @@
|
||||
<property name="title">
|
||||
<string>Required Entries</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget3">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
@@ -237,7 +237,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget4">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>11</x>
|
||||
@@ -275,7 +275,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget5">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
@@ -345,7 +345,7 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget6">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<property name="checkable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget0">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>11</x>
|
||||
@@ -160,7 +160,7 @@ p, li { white-space: pre-wrap; }
|
||||
<property name="title">
|
||||
<string>msr File Extension</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
@@ -228,7 +228,7 @@ p, li { white-space: pre-wrap; }
|
||||
<property name="title">
|
||||
<string>Template Run Input</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
@@ -295,7 +295,7 @@ p, li { white-space: pre-wrap; }
|
||||
<property name="title">
|
||||
<string>Data Output File Name</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget3">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
@@ -350,7 +350,7 @@ p, li { white-space: pre-wrap; }
|
||||
<property name="title">
|
||||
<string>Options</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget4">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>6</x>
|
||||
@@ -550,7 +550,7 @@ p, li { white-space: pre-wrap; }
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget5">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>5</x>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<iconset resource="../musredit.qrc">
|
||||
<normaloff>:/images/musrfit.xpm</normaloff>:/images/musrfit.xpm</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget0">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
@@ -39,7 +39,7 @@
|
||||
<attribute name="title">
|
||||
<string>general</string>
|
||||
</attribute>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
|
||||
Reference in New Issue
Block a user