Skip to content
Snippets Groups Projects
Commit 25c34137 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

cleanup CMake files

parent b5541f78
No related branches found
No related tags found
No related merge requests found
...@@ -199,6 +199,7 @@ endif() ...@@ -199,6 +199,7 @@ endif()
if (ENABLE_INFO) if (ENABLE_INFO)
find_package(Qt5Xml REQUIRED) find_package(Qt5Xml REQUIRED)
set(QT_LIBRARIES ${QT_LIBRARIES} Qt5::Xml)
endif() endif()
if (OPTIMIZE) if (OPTIMIZE)
...@@ -271,7 +272,7 @@ endif() ...@@ -271,7 +272,7 @@ endif()
if (ENABLE_GUI) if (ENABLE_GUI)
find_package(Qt5Widgets REQUIRED) find_package(Qt5Widgets REQUIRED)
find_package(Qt5OpenGL REQUIRED) find_package(Qt5OpenGL REQUIRED)
find_package(Qt5PrintSupport REQUIRED) set(QT_LIBRARIES ${QT_LIBRARIES} Qt5::OpenGL Qt5::Gui Qt5::Widgets Qt5::Core)
ost_find_python_module(sip) ost_find_python_module(sip)
ost_find_python_module(PyQt5) ost_find_python_module(PyQt5)
endif() endif()
......
...@@ -118,4 +118,4 @@ install(FILES ${INSPECTOR_ICONS} DESTINATION "share/openstructure/scene/icons") ...@@ -118,4 +118,4 @@ install(FILES ${INSPECTOR_ICONS} DESTINATION "share/openstructure/scene/icons")
set(QT_USE_QTOPENGL 1) set(QT_USE_QTOPENGL 1)
set(QT_USE_QTNETWORK 1) set(QT_USE_QTNETWORK 1)
target_link_libraries(_ost_gui ${QT_LIBRARIES} Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport) target_link_libraries(_ost_gui ${QT_LIBRARIES})
...@@ -458,7 +458,7 @@ module(NAME gui SOURCES ${OST_GUI_MOCS} ${OST_GUI_SOURCES} ...@@ -458,7 +458,7 @@ module(NAME gui SOURCES ${OST_GUI_MOCS} ${OST_GUI_SOURCES}
${OST_GUI_DATA_VIEWER_HEADERS} ${OST_GUI_DATA_VIEWER_HEADERS}
${OST_GUI_HEADERS} ${OST_GUI_HEADERS}
DEPENDS_ON ost_gfx ost_io ost_mol_alg ost_seq_alg DEPENDS_ON ost_gfx ost_io ost_mol_alg ost_seq_alg
LINK Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL Qt5::PrintSupport Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL Qt5::PrintSupport LINK ${QT_LIBRARIES}
${PYTHON_LIBRARIES} ${PYTHON_LIBRARIES}
${BOOST_PYTHON_LIBRARIES} ${BOOST_PYTHON_LIBRARIES}
${SPNAV_LIBRARIES} ${SPNAV_LIBRARIES}
...@@ -476,7 +476,7 @@ qt5_wrap_cpp(OST_GOSTY_MOC "gosty.hh" ...@@ -476,7 +476,7 @@ qt5_wrap_cpp(OST_GOSTY_MOC "gosty.hh"
OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
-DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
set(LINK LINK Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL Qt5::PrintSupport Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL Qt5::PrintSupport ${BOOST_PROGRAM_OPTIONS_LIBRARIES}) set(LINK LINK ${QT_LIBRARIES} ${BOOST_PROGRAM_OPTIONS_LIBRARIES})
executable_libexec(NAME gosty SOURCES gosty.cc ${OST_GOSTY_MOC} executable_libexec(NAME gosty SOURCES gosty.cc ${OST_GOSTY_MOC}
${OST_QT_RESOURCE} DEPENDS_ON ost_gui ${LINK}) ${OST_QT_RESOURCE} DEPENDS_ON ost_gui ${LINK})
......
...@@ -31,5 +31,5 @@ set(QT_USE_QTXML 1) ...@@ -31,5 +31,5 @@ set(QT_USE_QTXML 1)
module(NAME info SOURCES ${OST_INFO_SOURCES} module(NAME info SOURCES ${OST_INFO_SOURCES}
HEADERS ${OST_INFO_HEADERS} HEADERS ${OST_INFO_HEADERS}
DEPENDS_ON ost_base LINK ${BOOST_REGEX_LIBRARIES} ${QT_LIBRARIES} Qt5::Xml) DEPENDS_ON ost_base LINK ${BOOST_REGEX_LIBRARIES} ${QT_LIBRARIES})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment