############################################################################ # Copyright 2007-2026 Universidade do Porto - Faculdade de Engenharia # # Laboratório de Sistemas e Tecnologia Subaquática (LSTS) # ############################################################################ # This file is part of DUNE: Unified Navigation Environment. # # # # Commercial Licence Usage # # Licencees holding valid commercial DUNE licences may use this file in # # accordance with the commercial licence agreement provided with the # # Software or, alternatively, in accordance with the terms contained in a # # written agreement between you and Faculdade de Engenharia da # # Universidade do Porto. For licensing terms, conditions, and further # # information contact lsts@fe.up.pt. # # # # Modified European Union Public Licence - EUPL v.1.1 Usage # # Alternatively, this file may be used under the terms of the Modified # # EUPL, Version 1.1 only (the "Licence"), appearing in the file LICENCE.md # # included in the packaging of this file. You may not use this work # # except in compliance with the Licence. Unless required by applicable # # law or agreed to in writing, software distributed under the Licence is # # distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF # # ANY KIND, either express or implied. See the Licence for the specific # # language governing permissions and limitations at # # https://github.com/LSTS/dune/blob/master/LICENCE.md and # # http://ec.europa.eu/idabc/eupl.html. # ############################################################################ # Author: Ricardo Martins # ############################################################################ if(QT5) find_package(Qt5Core) if(Qt5Core_INCLUDE_DIRS) include_directories(${Qt5Core_INCLUDE_DIRS}) add_definitions(${Qt5Core_DEFINITIONS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}") dune_add_lib(Qt5::Core) endif() find_package(Qt5Widgets) if(Qt5Widgets_INCLUDE_DIRS) include_directories(${Qt5Widgets_INCLUDE_DIRS}) add_definitions(${Qt5Widgets_DEFINITIONS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") dune_add_lib(Qt5::Widgets) endif() find_package(Qt5Network) if(Qt5Network_INCLUDE_DIRS) include_directories(${Qt5Network_INCLUDE_DIRS}) add_definitions(${Qt5Network_DEFINITIONS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Network_EXECUTABLE_COMPILE_FLAGS}") dune_add_lib(Qt5::Network) endif() if(Qt5Core_INCLUDE_DIRS) set(DUNE_USING_QT5 1 CACHE INTERNAL "Qt5 Library") else() set(DUNE_USING_QT5 0 CACHE INTERNAL "Qt5 Library") endif() endif()