Commit af06e950 authored by Langella Olivier's avatar Langella Olivier
Browse files

using new cmake scripts for PAPPSOms++

parent 000ef6a3
This diff is collapsed.
[Project]
CreatedFrom=masschroq
CreatedFrom=CMakeLists.txt
Manager=KDevCMakeManager
Name=masschroq
SET (QT_USE_QTXML true)
SET (QT_USE_QTXMLPATTERNS true)
SET(masschroq_RCCS resources.qrc)
FIND_PACKAGE( Qt5 COMPONENTS Core Gui Xml XmlPatterns Widgets Concurrent PrintSupport REQUIRED )
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/modules)
#if (RocksDB_FOUND)
#else (RocksDB_FOUND)
# FIND_PACKAGE( RocksDB REQUIRED )
#endif (RocksDB_FOUND)
if (QCustomPlot_FOUND)
else (QCustomPlot_FOUND)
FIND_PACKAGE( QCustomPlot REQUIRED )
endif (QCustomPlot_FOUND)
if (ODSSTREAM_QT5_FOUND)
else (ODSSTREAM_QT5_FOUND)
FIND_PACKAGE( Odsstream REQUIRED ) #ODSSTREAM_INCLUDE_DIR AND ODSSTREAM_LIBRARY
endif (ODSSTREAM_QT5_FOUND)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Xml_EXECUTABLE_COMPILE_FLAGS} ${Qt5Gui_EXECUTABLE_COMPILE_FLAGS} ${Qt5Svg_EXECUTABLE_COMPILE_FLAGS}")
#sudo apt-get install libpappsomspp-dev
if (PAPPSOMSPP_QT5_FOUND)
else (PAPPSOMSPP_QT5_FOUND)
MESSAGE("looking for PAPPSOms++ library")
FIND_PACKAGE( Pappsomspp REQUIRED )
endif (PAPPSOMSPP_QT5_FOUND)
IF (PAPPSOMSPP_QT5_FOUND)
ELSE (PAPPSOMSPP_QT5_FOUND)
MESSAGE("PAPPSOms++ library not found")
MESSAGE("did you apt-get install libpappsomspp-dev ?")
ENDIF (PAPPSOMSPP_QT5_FOUND)
IF (PAPPSOMSPP_WIDGET_QT5_FOUND)
ELSE (PAPPSOMSPP_WIDGET_QT5_FOUND)
MESSAGE("PAPPSOms++ widget library not found")
MESSAGE("did you apt-get install libpappsomspp-widget-dev ?")
ENDIF (PAPPSOMSPP_WIDGET_QT5_FOUND)
SET (GUI_UIS
./gui/mcqgui/mcqgui.ui
)
SET(MASSCHROQ_LIB_SRCS
./masschroq_cli.cpp
./mcqsession.cpp
./lib/consoleout.cpp
./lib/mcq_error.h
./lib/share/utilities.cpp
./lib/peptides/protein.cpp
./lib/peptides/peptide.cpp
./lib/peptides/peptide_isotope.cpp
./lib/peptides/peptide_observed_in.cpp
./lib/peptides/peptide_list.cpp
./lib/peptides/isotope_label.cpp
./lib/peptides/peptidert.cpp
./lib/quanti_items/quantiItemBase.cpp
./lib/quanti_items/quantiItemMzRt.cpp
./lib/quanti_items/quantiItemPeptide.cpp
./lib/quanti_items/quantiitempeptidenaturalisotope.cpp
./lib/msrun/precursor.cpp
./lib/msrun/msrun.cpp
./lib/msrun/ms_run_hash_group.cpp
./lib/peak_collections/alignedpeakcollectionbase.cpp
./lib/peak_collections/alignedpeakcollectionmap.cpp
./lib/peak_collections/alignedpeakcollectionondisk.cpp
#./lib/peak_collections/alignedpeakcollectionrocksdb.cpp
./lib/quantifications/quantificationMethod.cpp
./lib/quantifications/mapquanti.cpp
./lib/quantifications/mapquantirealxic.cpp
./lib/quantificator.cpp
./lib/mass_chroq.cpp
./lib/alignments/alignment_base.cpp
./lib/alignments/alignment_obiwarp.cpp
./lib/alignments/alignment_ms2.cpp
./lib/alignments/lmatreader.cpp
./lib/alignments/monitors/monitor_alignment_base.cpp
./lib/alignments/monitors/monitor_alignment_time.cpp
./lib/alignments/monitors/monitor_alignment_plot.cpp
./lib/xic/alignedxicpeak.cpp
./lib/xic/xic_base.cpp
./lib/xic/xicfilterdetectmatch.cpp
./lib/xic/xicfilterdetectmatchrealrt.cpp
./lib/xic/xictracebase.cpp
./lib/xic/xictracepeptide.cpp
./lib/xic/xictracepeptidenaturalisotope.cpp
./lib/monitors/mcq_qxmlstreamwriter.cpp
./lib/monitors/masschroqWriter.cpp
./lib/monitors/monitorspeedinterface.cpp
./lib/monitors/monitorodsoutput.cpp
./lib/monitors/monitorspeedlist.cpp
./lib/monitors/monitorcomparoutput.cpp
./reporters/ReporterConsole.cpp
)
SET(SAXLIB_SRCS
./encode/decodeBinary.cpp
./saxparsers/xmlSimpleParser.cpp
# ./saxparsers/mzxmlSimpleParser.cpp
# ./saxparsers/mzmlSimpleParser.cpp
# ./saxparsers/xmlParserFactory.cpp
./saxparsers/xmlToLmatParser.cpp
# ./saxparsers/mzxmlToLmatParser.cpp
# ./saxparsers/mzmlToLmatParser.cpp
./saxparsers/masschroqmlParser.cpp
./pepfileparser/masschroq_dom_engine.cpp
./pepfileparser/pepParser.cpp
)
SET(OBIWARP_SRCS
./libobiwarp/lmat.cpp
./libobiwarp/vec.cpp
./libobiwarp/mat.cpp
./libobiwarp/dynprog.cpp
)
SET(GUI_SRCS
./gui/mcqgui/guiworkerthread.cpp
./gui/mcqgui/launcherMainWindow.cpp
./gui/thread/mcqThread.cpp
./gui/thread/masschroqRunningThread.cpp
./gui/logQIODevice.cpp
)
SET(STUDIO_SRCS
./gui/parameterMainWindow.cpp
./gui/logQIODevice.cpp
./gui/masschroQWidget.cpp
./gui/runningQLabel.cpp
./gui/dom_methods/masschroqDomDocument.cpp
./gui/quantificationwidget/masschroqml_selection_widget.cpp
./gui/quantificationwidget/xicSelectionWidget.cpp
./gui/quantificationwidget/peptideSelectionWidget.cpp
./gui/quantificationwidget/filterBackgroundWidget.cpp
./gui/quantificationwidget/filterSpikeWidget.cpp
./gui/quantificationwidget/filterSmoothWidget.cpp
./gui/quantificationwidget/filterMinMaxWidget.cpp
./gui/quantificationwidget/filterMaxMinWidget.cpp
./gui/quantificationwidget/detectionZivyWidget.cpp
./gui/quantificationwidget/msrun_selection_widget.cpp
./gui/quantificationwidget/plot.cpp
./gui/alignementwidget/plot_aligned.cpp
./gui/alignementwidget/alignment_widget.cpp
./gui/alignementwidget/obiwarp_alignment_widget.cpp
./gui/alignementwidget/ms2_alignment_widget.cpp
./gui/thread/mcqThread.cpp
./gui/thread/msrunLoaderThread.cpp
./gui/thread/msrunSimpleLoaderThread.cpp
./gui/thread/masschroqmlLoaderThread.cpp
./gui/thread/masschroqml_gui_parser.cpp
./gui/thread/alignment_thread.cpp
./gui/engine/masschroq_gui_engin.cpp
./gui/engine/masschroq_gui_data.cpp
./gui/treatment/treatment_box.cpp
./gui/treatment/treatment_box_xic_extract.cpp
./gui/treatment/treatment_box_xic_filter.cpp
./gui/treatment/treatment_box_xic_detect.cpp
./gui/treatment/treatment_chain.cpp
)
QT5_ADD_RESOURCES(MASSCHROQ_RCC_SRCS_QT5 ${masschroq_RCCS})
IF (NOGUI)
ELSE (NOGUI)
# this will run uic on .ui files:
QT5_WRAP_UI( GUI_UI_HDRS ${GUI_UIS} )
ENDIF (NOGUI)
ADD_LIBRARY(${MASSCHROQ_LIB_NAME} SHARED ${MASSCHROQ_LIB_SRCS} ${MASSCHROQ_LIB_MOC_SRCS}
${SAXLIB_SRCS} ${OBIWARP_SRCS} ${MASSCHROQ_RCC_SRCS_QT5})
TARGET_LINK_LIBRARIES(${MASSCHROQ_LIB_NAME}
Pappso::Core
Pappso::Widget
OdsStream::Core
Qt5::Core
Qt5::Gui
Qt5::Xml
Qt5::XmlPatterns
Qt5::Concurrent
)
target_include_directories (${MASSCHROQ_LIB_NAME} PUBLIC
${QCustomPlot_INCLUDES}
${QUAZIP_INCLUDE_DIR}
)
SET_TARGET_PROPERTIES(${MASSCHROQ_LIB_NAME} PROPERTIES
VERSION ${MASSCHROQ_LIB_VERSION}
SOVERSION ${MASSCHROQ_LIB_SOVERSION}
)
ADD_EXECUTABLE(masschroq_main main.cpp)
TARGET_LINK_LIBRARIES(masschroq_main ${MASSCHROQ_LIB_NAME}
Pappso::Core
Pappso::Widget
OdsStream::Core
${Boost_chrono_LIBRARY}
${Boost_filesystem_LIBRARY}
${Boost_iostreams_LIBRARY}
${Boost_program_options_LIBRARY}
${Boost_serialization_LIBRARY}
${Boost_system_LIBRARY}
${Boost_thread_LIBRARY}
Qt5::Core
)
SET_TARGET_PROPERTIES(masschroq_main PROPERTIES OUTPUT_NAME masschroq)
target_include_directories (masschroq_main PUBLIC
${QUAZIP_INCLUDE_DIR}
)
IF (NOGUI)
ELSE (NOGUI)
ADD_EXECUTABLE(masschroq_gui gui/mcqgui/launcherGui.cpp ${GUI_SRCS} ${GUI_MOC_SRCS} ${GUI_UI_HDRS})
TARGET_LINK_LIBRARIES(masschroq_gui ${MASSCHROQ_LIB_NAME}
Pappso::Core
Pappso::Widget
OdsStream::Core
Qt5::Core
Qt5::Gui
Qt5::Widgets
${Boost_chrono_LIBRARY}
${Boost_filesystem_LIBRARY}
${Boost_iostreams_LIBRARY}
${Boost_program_options_LIBRARY}
${Boost_serialization_LIBRARY}
${Boost_system_LIBRARY}
${Boost_thread_LIBRARY}
)
ADD_EXECUTABLE(masschroq_studio gui/parameterGui.cpp ${STUDIO_SRCS} ${STUDIO_MOC_SRCS})
TARGET_LINK_LIBRARIES(masschroq_studio ${MASSCHROQ_LIB_NAME}
Pappso::Core
Pappso::Widget
OdsStream::Core
Qt5::Core
Qt5::Gui
Qt5::Widgets
Qt5::PrintSupport
${QCustomPlot_LIBRARIES}
${Boost_chrono_LIBRARY}
${Boost_filesystem_LIBRARY}
${Boost_iostreams_LIBRARY}
${Boost_program_options_LIBRARY}
${Boost_serialization_LIBRARY}
${Boost_system_LIBRARY}
${Boost_thread_LIBRARY}
)
ENDIF (NOGUI)
IF (MXE)
SET_TARGET_PROPERTIES(masschroq_main PROPERTIES LINK_FLAGS "-Wl,--subsystem,console ${CMAKE_EXE_LINKER_FLAGS}")
target_compile_options(
masschroq_gui PRIVATE -mwindows
)
SET_TARGET_PROPERTIES(masschroq_gui PROPERTIES LINK_FLAGS "-Wl,--subsystem,windows ${CMAKE_EXE_LINKER_FLAGS}")
target_compile_options(
masschroq_studio PRIVATE -mwindows
)
SET_TARGET_PROPERTIES(masschroq_studio PROPERTIES LINK_FLAGS "-Wl,--enable-auto-import -Wl,--subsystem,windows ${CMAKE_EXE_LINKER_FLAGS}")
ELSE (MXE)
#add new executable called new_parseur
#ADD_EXECUTABLE(new_parseur parseur.cpp)
#TARGET_LINK_LIBRARIES(new_parseur ${MASSCHROQ_LIB_NAME} ${QT_LIBRARIES})
INSTALL(TARGETS ${MASSCHROQ_LIB_NAME} LIBRARY DESTINATION lib)
ENDIF(MXE)
#if lib quanti is graphical
#TARGET_LINK_LIBRARIES(masschroq libmasschroq ${QT_LIBRARIES} ${Qwt5_Qt4_LIBRARY})
SET (QT_USE_QTXML true)
SET (QT_USE_QTXMLPATTERNS true)
SET(masschroq_RCCS resources.qrc)
FIND_PACKAGE( Qt5 COMPONENTS Core Gui Xml XmlPatterns Widgets Concurrent PrintSupport REQUIRED )
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/modules)
#if (RocksDB_FOUND)
#else (RocksDB_FOUND)
# FIND_PACKAGE( RocksDB REQUIRED )
#endif (RocksDB_FOUND)
if (QCustomPlot_FOUND)
else (QCustomPlot_FOUND)
FIND_PACKAGE( QCustomPlot REQUIRED )
endif (QCustomPlot_FOUND)
if (OdsStream_FOUND)
else (OdsStream_FOUND)
FIND_PACKAGE( OdsStream REQUIRED ) #ODSSTREAM_INCLUDE_DIR AND ODSSTREAM_LIBRARY
endif (OdsStream_FOUND)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Xml_EXECUTABLE_COMPILE_FLAGS} ${Qt5Gui_EXECUTABLE_COMPILE_FLAGS} ${Qt5Svg_EXECUTABLE_COMPILE_FLAGS}")
#sudo apt-get install libpappsomspp-dev
if (PappsoMSpp_FOUND)
else (PappsoMSpp_FOUND)
MESSAGE("looking for PAPPSOms++ library")
FIND_PACKAGE( PappsoMSpp REQUIRED )
endif (PappsoMSpp_FOUND)
IF (PappsoMSpp_FOUND)
ELSE (PappsoMSpp_FOUND)
MESSAGE("PAPPSOms++ library not found")
MESSAGE("did you apt-get install libpappsomspp-dev ?")
ENDIF (PappsoMSpp_FOUND)
IF (PappsoMSppWidget_FOUND)
ELSE (PappsoMSppWidget_FOUND)
MESSAGE("PAPPSOms++ widget library not found")
MESSAGE("did you apt-get install libpappsomspp-widget-dev ?")
ENDIF (PappsoMSppWidget_FOUND)
SET (GUI_UIS
./gui/mcqgui/mcqgui.ui
)
SET(MASSCHROQ_LIB_SRCS
./masschroq_cli.cpp
./mcqsession.cpp
./lib/consoleout.cpp
./lib/mcq_error.h
./lib/share/utilities.cpp
./lib/peptides/protein.cpp
./lib/peptides/peptide.cpp
./lib/peptides/peptide_isotope.cpp
./lib/peptides/peptide_observed_in.cpp
./lib/peptides/peptide_list.cpp
./lib/peptides/isotope_label.cpp
./lib/peptides/peptidert.cpp
./lib/quanti_items/quantiItemBase.cpp
./lib/quanti_items/quantiItemMzRt.cpp
./lib/quanti_items/quantiItemPeptide.cpp
./lib/quanti_items/quantiitempeptidenaturalisotope.cpp
./lib/msrun/precursor.cpp
./lib/msrun/msrun.cpp
./lib/msrun/ms_run_hash_group.cpp
./lib/peak_collections/alignedpeakcollectionbase.cpp
./lib/peak_collections/alignedpeakcollectionmap.cpp
./lib/peak_collections/alignedpeakcollectionondisk.cpp
#./lib/peak_collections/alignedpeakcollectionrocksdb.cpp
./lib/quantifications/quantificationMethod.cpp
./lib/quantifications/mapquanti.cpp
./lib/quantifications/mapquantirealxic.cpp
./lib/quantificator.cpp
./lib/mass_chroq.cpp
./lib/alignments/alignment_base.cpp
./lib/alignments/alignment_obiwarp.cpp
./lib/alignments/alignment_ms2.cpp
./lib/alignments/lmatreader.cpp
./lib/alignments/monitors/monitor_alignment_base.cpp
./lib/alignments/monitors/monitor_alignment_time.cpp
./lib/alignments/monitors/monitor_alignment_plot.cpp
./lib/xic/alignedxicpeak.cpp
./lib/xic/xic_base.cpp
./lib/xic/xicfilterdetectmatch.cpp
./lib/xic/xicfilterdetectmatchrealrt.cpp
./lib/xic/xictracebase.cpp
./lib/xic/xictracepeptide.cpp
./lib/xic/xictracepeptidenaturalisotope.cpp
./lib/monitors/mcq_qxmlstreamwriter.cpp
./lib/monitors/masschroqWriter.cpp
./lib/monitors/monitorspeedinterface.cpp
./lib/monitors/monitorodsoutput.cpp
./lib/monitors/monitorspeedlist.cpp
./lib/monitors/monitorcomparoutput.cpp
./reporters/ReporterConsole.cpp
)
SET(SAXLIB_SRCS
./encode/decodeBinary.cpp
./saxparsers/xmlSimpleParser.cpp
# ./saxparsers/mzxmlSimpleParser.cpp
# ./saxparsers/mzmlSimpleParser.cpp
# ./saxparsers/xmlParserFactory.cpp
./saxparsers/xmlToLmatParser.cpp
# ./saxparsers/mzxmlToLmatParser.cpp
# ./saxparsers/mzmlToLmatParser.cpp
./saxparsers/masschroqmlParser.cpp
./pepfileparser/masschroq_dom_engine.cpp
./pepfileparser/pepParser.cpp
)
SET(OBIWARP_SRCS
./libobiwarp/lmat.cpp
./libobiwarp/vec.cpp
./libobiwarp/mat.cpp
./libobiwarp/dynprog.cpp
)
SET(GUI_SRCS
./gui/mcqgui/guiworkerthread.cpp
./gui/mcqgui/launcherMainWindow.cpp
./gui/thread/mcqThread.cpp
./gui/thread/masschroqRunningThread.cpp
./gui/logQIODevice.cpp
)
SET(STUDIO_SRCS
./gui/parameterMainWindow.cpp
./gui/logQIODevice.cpp
./gui/masschroQWidget.cpp
./gui/runningQLabel.cpp
./gui/dom_methods/masschroqDomDocument.cpp
./gui/quantificationwidget/masschroqml_selection_widget.cpp
./gui/quantificationwidget/xicSelectionWidget.cpp
./gui/quantificationwidget/peptideSelectionWidget.cpp
./gui/quantificationwidget/filterBackgroundWidget.cpp
./gui/quantificationwidget/filterSpikeWidget.cpp
./gui/quantificationwidget/filterSmoothWidget.cpp
./gui/quantificationwidget/filterMinMaxWidget.cpp
./gui/quantificationwidget/filterMaxMinWidget.cpp
./gui/quantificationwidget/detectionZivyWidget.cpp
./gui/quantificationwidget/msrun_selection_widget.cpp
./gui/quantificationwidget/plot.cpp
./gui/alignementwidget/plot_aligned.cpp
./gui/alignementwidget/alignment_widget.cpp
./gui/alignementwidget/obiwarp_alignment_widget.cpp
./gui/alignementwidget/ms2_alignment_widget.cpp
./gui/thread/mcqThread.cpp
./gui/thread/msrunLoaderThread.cpp
./gui/thread/msrunSimpleLoaderThread.cpp
./gui/thread/masschroqmlLoaderThread.cpp
./gui/thread/masschroqml_gui_parser.cpp
./gui/thread/alignment_thread.cpp
./gui/engine/masschroq_gui_engin.cpp
./gui/engine/masschroq_gui_data.cpp
./gui/treatment/treatment_box.cpp
./gui/treatment/treatment_box_xic_extract.cpp
./gui/treatment/treatment_box_xic_filter.cpp
./gui/treatment/treatment_box_xic_detect.cpp
./gui/treatment/treatment_chain.cpp
)
QT5_ADD_RESOURCES(MASSCHROQ_RCC_SRCS_QT5 ${masschroq_RCCS})
IF (NOGUI)
ELSE (NOGUI)
# this will run uic on .ui files:
QT5_WRAP_UI( GUI_UI_HDRS ${GUI_UIS} )
ENDIF (NOGUI)
ADD_LIBRARY(${MASSCHROQ_LIB_NAME} SHARED ${MASSCHROQ_LIB_SRCS} ${MASSCHROQ_LIB_MOC_SRCS}
${SAXLIB_SRCS} ${OBIWARP_SRCS} ${MASSCHROQ_RCC_SRCS_QT5})
TARGET_LINK_LIBRARIES(${MASSCHROQ_LIB_NAME}
PappsoMSpp::Core
PappsoMSpp::Widget
OdsStream::Core
Qt5::Core
Qt5::Gui
Qt5::Xml
Qt5::XmlPatterns
Qt5::Concurrent
)
target_include_directories (${MASSCHROQ_LIB_NAME} PUBLIC
${QCustomPlot_INCLUDES}
${QUAZIP_INCLUDE_DIR}
)
SET_TARGET_PROPERTIES(${MASSCHROQ_LIB_NAME} PROPERTIES
VERSION ${MASSCHROQ_LIB_VERSION}
SOVERSION ${MASSCHROQ_LIB_SOVERSION}
)
ADD_EXECUTABLE(masschroq_main main.cpp)
TARGET_LINK_LIBRARIES(masschroq_main ${MASSCHROQ_LIB_NAME}
PappsoMSpp::Core
PappsoMSpp::Widget
OdsStream::Core
${Boost_chrono_LIBRARY}
${Boost_filesystem_LIBRARY}
${Boost_iostreams_LIBRARY}
${Boost_program_options_LIBRARY}
${Boost_serialization_LIBRARY}
${Boost_system_LIBRARY}
${Boost_thread_LIBRARY}
Qt5::Core
)
SET_TARGET_PROPERTIES(masschroq_main PROPERTIES OUTPUT_NAME masschroq)
target_include_directories (masschroq_main PUBLIC
${QUAZIP_INCLUDE_DIR}
)
IF (NOGUI)
ELSE (NOGUI)
ADD_EXECUTABLE(masschroq_gui gui/mcqgui/launcherGui.cpp ${GUI_SRCS} ${GUI_MOC_SRCS} ${GUI_UI_HDRS})
TARGET_LINK_LIBRARIES(masschroq_gui ${MASSCHROQ_LIB_NAME}
PappsoMSpp::Core
PappsoMSpp::Widget
OdsStream::Core
Qt5::Core
Qt5::Gui
Qt5::Widgets
${Boost_chrono_LIBRARY}
${Boost_filesystem_LIBRARY}
${Boost_iostreams_LIBRARY}
${Boost_program_options_LIBRARY}
${Boost_serialization_LIBRARY}
${Boost_system_LIBRARY}
${Boost_thread_LIBRARY}
)
ADD_EXECUTABLE(masschroq_studio gui/parameterGui.cpp ${STUDIO_SRCS} ${STUDIO_MOC_SRCS})
TARGET_LINK_LIBRARIES(masschroq_studio ${MASSCHROQ_LIB_NAME}
PappsoMSpp::Core
PappsoMSpp::Widget
OdsStream::Core
Qt5::Core
Qt5::Gui
Qt5::Widgets
Qt5::PrintSupport
${QCustomPlot_LIBRARIES}
${Boost_chrono_LIBRARY}
${Boost_filesystem_LIBRARY}
${Boost_iostreams_LIBRARY}
${Boost_program_options_LIBRARY}
${Boost_serialization_LIBRARY}
${Boost_system_LIBRARY}
${Boost_thread_LIBRARY}
)
ENDIF (NOGUI)
IF (MXE)
SET_TARGET_PROPERTIES(masschroq_main PROPERTIES LINK_FLAGS "-Wl,--subsystem,console ${CMAKE_EXE_LINKER_FLAGS}")
target_compile_options(
masschroq_gui PRIVATE -mwindows
)
SET_TARGET_PROPERTIES(masschroq_gui PROPERTIES LINK_FLAGS "-Wl,--subsystem,windows ${CMAKE_EXE_LINKER_FLAGS}")
target_compile_options(
masschroq_studio PRIVATE -mwindows
)
SET_TARGET_PROPERTIES(masschroq_studio PROPERTIES LINK_FLAGS "-Wl,--enable-auto-import -Wl,--subsystem,windows ${CMAKE_EXE_LINKER_FLAGS}")
ELSE (MXE)
#add new executable called new_parseur
#ADD_EXECUTABLE(new_parseur parseur.cpp)
#TARGET_LINK_LIBRARIES(new_parseur ${MASSCHROQ_LIB_NAME} ${QT_LIBRARIES})
INSTALL(TARGETS ${MASSCHROQ_LIB_NAME} LIBRARY DESTINATION lib)
ENDIF(MXE)
#if lib quanti is graphical
#TARGET_LINK_LIBRARIES(masschroq libmasschroq ${QT_LIBRARIES} ${Qwt5_Qt4_LIBRARY})
......@@ -748,7 +748,7 @@ MassChroq::setTracesDirectory(QDir qdir, McqTsvFormat tsv_format)
}
}
}
catch(std::exception error)
catch(const std::exception &error)
{
throw mcqError(
QObject::tr("error in MassChroq::setTracesDirectory with QDir path %1")
......
......@@ -53,7 +53,7 @@ AlignedXicPeak::serialize(QDataStream *p_outputstream) const
(*p_outputstream) << m_area << m_left.x << m_left.y << m_max.x << m_max.y
<< m_right.x << m_right.y;
}
catch(std::exception ex)