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

new cmake compilation system

parent 2877f930
......@@ -201,13 +201,19 @@ 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}
Qt5::Core Qt5::Gui Qt5::Xml Qt5::XmlPatterns Qt5::Concurrent
${PAPPSOMSPP_QT5_LIBRARY} ${ODSSTREAM_QT5_LIBRARY}
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 ${Qt5Core_INCLUDES} ${Qt5Concurrent_INCLUDES} ${Qt5Gui_INCLUDES}
${Qt5Xml_INCLUDES} ${Qt5XmlPatterns_INCLUDES} ${PAPPSOMSPP_INCLUDE_DIR} ${ODSSTREAM_INCLUDE_DIR}
${QCustomPlot_INCLUDES} ${QUAZIP_INCLUDE_DIR}
target_include_directories (${MASSCHROQ_LIB_NAME} PUBLIC
${QCustomPlot_INCLUDES}
${QUAZIP_INCLUDE_DIR}
)
SET_TARGET_PROPERTIES(${MASSCHROQ_LIB_NAME} PROPERTIES
VERSION ${MASSCHROQ_LIB_VERSION}
......@@ -215,9 +221,10 @@ SET_TARGET_PROPERTIES(${MASSCHROQ_LIB_NAME} PROPERTIES
)
ADD_EXECUTABLE(masschroq_main main.cpp)
TARGET_LINK_LIBRARIES(masschroq_main ${MASSCHROQ_LIB_NAME}
${PAPPSOMSPP_QT5_LIBRARY}
${ODSSTREAM_QT5_LIBRARY}
TARGET_LINK_LIBRARIES(masschroq_main ${MASSCHROQ_LIB_NAME}
Pappso::Core
Pappso::Widget
OdsStream::Core
${Boost_chrono_LIBRARY}
${Boost_filesystem_LIBRARY}
${Boost_iostreams_LIBRARY}
......@@ -225,22 +232,24 @@ TARGET_LINK_LIBRARIES(masschroq_main ${MASSCHROQ_LIB_NAME}
${Boost_serialization_LIBRARY}
${Boost_system_LIBRARY}
${Boost_thread_LIBRARY}
Qt5::Core)
Qt5::Core
)
SET_TARGET_PROPERTIES(masschroq_main PROPERTIES OUTPUT_NAME masschroq)
target_include_directories (masschroq_main PUBLIC
${Qt5Core_INCLUDES} ${Qt5Concurrent_INCLUDES} ${Qt5Gui_INCLUDES} ${Qt5Xml_INCLUDES} ${Qt5XmlPatterns_INCLUDES} ${PAPPSOMSPP_INCLUDE_DIR} ${ODSSTREAM_INCLUDE_DIR} ${QUAZIP_INCLUDE_DIR}
${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}
TARGET_LINK_LIBRARIES(masschroq_gui ${MASSCHROQ_LIB_NAME}
Pappso::Core
Pappso::Widget
OdsStream::Core
Qt5::Core
Qt5::Gui
Qt5::Widgets
${PAPPSOMSPP_QT5_LIBRARY}
${ODSSTREAM_QT5_LIBRARY}
Qt5::Widgets
${Boost_chrono_LIBRARY}
${Boost_filesystem_LIBRARY}
${Boost_iostreams_LIBRARY}
......@@ -249,21 +258,17 @@ ELSE (NOGUI)
${Boost_system_LIBRARY}
${Boost_thread_LIBRARY}
)
target_include_directories (masschroq_gui PUBLIC ${Qt5Core_INCLUDES} ${Qt5Concurrent_INCLUDES} ${Qt5Gui_INCLUDES}
${Qt5Xml_INCLUDES} ${Qt5XmlPatterns_INCLUDES} ${PAPPSOMSPP_INCLUDE_DIR}
)
ADD_EXECUTABLE(masschroq_studio gui/parameterGui.cpp ${STUDIO_SRCS} ${STUDIO_MOC_SRCS})
TARGET_LINK_LIBRARIES(masschroq_studio ${MASSCHROQ_LIB_NAME}
TARGET_LINK_LIBRARIES(masschroq_studio ${MASSCHROQ_LIB_NAME}
Pappso::Core
Pappso::Widget
OdsStream::Core
Qt5::Core
Qt5::Gui
Qt5::Widgets
Qt5::PrintSupport
${ODSSTREAM_QT5_LIBRARY}
${QCustomPlot_LIBRARIES}
${PAPPSOMSPP_QT5_LIBRARY}
${PAPPSOMSPP_WIDGET_QT5_LIBRARY}
${QCustomPlot_LIBRARIES}
${Boost_chrono_LIBRARY}
${Boost_filesystem_LIBRARY}
${Boost_iostreams_LIBRARY}
......@@ -272,9 +277,6 @@ ELSE (NOGUI)
${Boost_system_LIBRARY}
${Boost_thread_LIBRARY}
)
target_include_directories (masschroq_studio PUBLIC ${Qt5Core_INCLUDES} ${Qt5Concurrent_INCLUDES} ${Qt5Gui_INCLUDES}
${Qt5Xml_INCLUDES} ${Qt5XmlPatterns_INCLUDES} ${PAPPSOMSPP_INCLUDE_DIR}
)
ENDIF (NOGUI)
IF (MINGW)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment