mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 01:41:42 -06:00
34 lines
782 B
CMake
34 lines
782 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project(OctavePlugins)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
|
find_package(Octave)
|
|
|
|
if(CEE_USE_QT6)
|
|
find_package(
|
|
Qt6
|
|
COMPONENTS
|
|
REQUIRED Core Gui OpenGL Widgets Network
|
|
)
|
|
set(QT_LIBRARIES Qt6::Core Qt6::Gui Qt6::OpenGL Qt6::Widgets Qt6::Network)
|
|
qt_standard_project_setup()
|
|
else()
|
|
find_package(
|
|
Qt5
|
|
COMPONENTS
|
|
REQUIRED Core Gui OpenGL Widgets Network
|
|
)
|
|
set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Widgets Qt5::Network)
|
|
endif()
|
|
|
|
# Disable build of Octave awaiting a fix for Qt6 add_subdirectory(OctavePlugin)
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
set(CPACK_GENERATOR TGZ)
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
|
set(CPACK_GENERATOR ZIP)
|
|
endif()
|
|
|
|
include(CPack)
|