Files
ResInsight/Fwk/AppFwk/cafVizExtensions/CMakeLists.txt
Eirik Marthinsen ea27e952f5 Prepare building with Qt6
* Fwk: Switch from delta to angleDelta for QWheelEvent
* Fwk: Add option to build more libraries with Qt6
* Fwk: Remove unused includes of QtOpenGL
* Fwk: Don't forward declare QStringList
* Fwk: Store cursor position in QPoint variable
* Fwk: Use QWheelEvent::position in Qt6
2024-03-06 08:32:27 +01:00

81 lines
1.9 KiB
CMake

project(cafVizExtensions)
# Unity Build
if(CAF_ENABLE_UNITY_BUILD)
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
set(CMAKE_UNITY_BUILD true)
endif()
# Open GL
find_package(OpenGL)
# Qt
if(CEE_USE_QT6)
find_package(
Qt6
COMPONENTS
REQUIRED Core Gui Widgets OpenGL
)
set(QT_LIBRARIES Qt6::Core Qt6::Gui Qt6::Widgets Qt6::OpenGL)
qt_standard_project_setup()
set_property(
SOURCE cafTransparentWBRenderConfiguration.cpp PROPERTY SKIP_AUTOMOC ON
)
else()
find_package(
Qt5
COMPONENTS
REQUIRED Core Gui Widgets OpenGL
)
set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL)
qt5_wrap_cpp(MOC_SOURCE_FILES ${MOC_HEADER_FILES})
endif()
add_library(
${PROJECT_NAME}
cafDisplayCoordTransform.cpp
cafDisplayCoordTransform.h
cafBoxManipulatorPartManager.cpp
cafBoxManipulatorPartManager.h
cafBoxManipulatorGeometryGenerator.cpp
cafBoxManipulatorGeometryGenerator.h
cafTitledOverlayFrame.cpp
cafTitledOverlayFrame.h
cafCategoryLegend.cpp
cafCategoryLegend.h
cafOverlayScalarMapperLegend.h
cafOverlayScalarMapperLegend.cpp
cafOverlayScaleLegend.h
cafOverlayScaleLegend.cpp
cafInternalLegendRenderTools.h
cafInternalLegendRenderTools.cpp
cafCategoryMapper.cpp
cafCategoryMapper.h
cafFixedAtlasFont.h
cafFixedAtlasFont.cpp
cafTransparentWBRenderConfiguration.h
cafTransparentWBRenderConfiguration.cpp
cafLine.h
cafLine.inl
TranspWB_CombinationFrag.glsl
TranspWB_PartlyTranspPartsFrag.glsl
TranspWB_TransparentPartsFrag.glsl
cafHexGridIntersectionTools/cafHexGridIntersectionTools.h
cafHexGridIntersectionTools/cafHexGridIntersectionTools.cpp
)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(
${PROJECT_NAME}
LibCore
LibGeometry
LibViewing
LibRender
LibGuiQt
CommonCode
${QT_LIBRARIES}
)
source_group("" FILES ${PROJECT_FILES})