mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-03 12:50:52 -06:00
When using modern CMake and Qt6 we can remove obsolete source_group() and QT_MOC_HEADERS
53 lines
1.0 KiB
CMake
53 lines
1.0 KiB
CMake
project(cafViewer)
|
|
|
|
# Unity Build
|
|
if(CAF_ENABLE_UNITY_BUILD)
|
|
message("Cmake Unity build is enabled on : ${PROJECT_NAME}")
|
|
set(CMAKE_UNITY_BUILD true)
|
|
endif()
|
|
|
|
find_package(
|
|
Qt6
|
|
COMPONENTS
|
|
REQUIRED Core Gui Widgets OpenGL
|
|
)
|
|
set(QT_LIBRARIES Qt6::Core Qt6::Gui Qt6::Widgets Qt6::OpenGL)
|
|
qt_standard_project_setup()
|
|
|
|
add_library(
|
|
${PROJECT_NAME}
|
|
cafCadNavigation.cpp
|
|
cafCadNavigation.h
|
|
cafCeetronNavigation.cpp
|
|
cafCeetronNavigation.h
|
|
cafCeetronPlusNavigation.cpp
|
|
cafCeetronPlusNavigation.h
|
|
cafTrackBallBasedNavigation.cpp
|
|
cafTrackBallBasedNavigation.h
|
|
cafNavigationPolicy.cpp
|
|
cafNavigationPolicy.h
|
|
cafPointOfInterestVisualizer.h
|
|
cafViewer.cpp
|
|
cafViewer.h
|
|
${MOC_SOURCE_FILES}
|
|
)
|
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
target_link_libraries(
|
|
${PROJECT_NAME}
|
|
LibCore
|
|
LibGeometry
|
|
LibViewing
|
|
LibRender
|
|
LibGuiQt
|
|
cafAnimControl
|
|
${QT_LIBRARIES}
|
|
)
|
|
|
|
if(MSVC)
|
|
set_target_properties(
|
|
${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/W4 /wd4100 /wd4127"
|
|
)
|
|
endif()
|