-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f85a87a
commit 3ca27bc
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#------------------------------------------------------------------------------ | ||
# The MB-system: CMakeLists.txt 27 June 2023 | ||
# | ||
# Copyright (c) 2023-2024 by | ||
# David W. Caress ([email protected]) | ||
# Monterey Bay Aquarium Research Institute | ||
# Moss Landing, California, USA | ||
# Dale N. Chayes | ||
# Center for Coastal and Ocean Mapping | ||
# University of New Hampshire | ||
# Durham, New Hampshire, USA | ||
# Christian dos Santos Ferreira | ||
# MARUM | ||
# University of Bremen | ||
# Bremen Germany | ||
# | ||
# MB-System was created by Caress and Chayes in 1992 at the | ||
# Lamont-Doherty Earth Observatory | ||
# Columbia University | ||
# Palisades, NY 10964 | ||
# | ||
# See README.md file for copying and redistribution conditions. | ||
#------------------------------------------------------------------------------ | ||
|
||
find_package( | ||
Qt6 | ||
COMPONENTS Gui Widgets Quick | ||
REQUIRED) | ||
|
||
find_package(VTK 9.3 REQUIRED COMPONENTS GUISupportQtQuick) | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
|
||
add_executable(qt-mbeditviz Backend.cpp main.cpp qml.qrc) | ||
|
||
message("CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR}") | ||
|
||
target_include_directories(qt-mbeditviz | ||
PUBLIC ${CMAKE_SOURCE_DIR}/src/mbaux) | ||
|
||
target_compile_options(qt-mbeditviz PUBLIC "-Wunused-variable") | ||
|
||
target_link_libraries(qt-mbeditviz PRIVATE MBGui Qt6::Core Qt6::Quick | ||
VTK::GUISupportQtQuick mbaux) | ||
|
||
install(TARGETS qt-mbeditviz DESTINATION ${CMAKE_INSTALL_BINDIR}) |