-
Notifications
You must be signed in to change notification settings - Fork 94
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
Showing
1 changed file
with
15 additions
and
19 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 |
---|---|---|
@@ -1,30 +1,26 @@ | ||
cmake_minimum_required(VERSION 3.24) | ||
cmake_minimum_required(VERSION 3.0 ) | ||
|
||
project(dicom2meshgui) | ||
|
||
# Enable necessary CMake features | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
|
||
# Find Qt6 libraries | ||
find_package(Qt6Widgets REQUIRED) | ||
SET(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
SET(CMAKE_AUTOMOC ON) | ||
SET(CMAKE_AUTORCC ON) | ||
|
||
find_package(Qt5Widgets REQUIRED) | ||
find_package(VTK REQUIRED) | ||
|
||
IF("${VTK_MAJOR_VERSION}" LESS 9) | ||
include(${VTK_USE_FILE}) | ||
include( ${VTK_USE_FILE} ) | ||
ENDIF("${VTK_MAJOR_VERSION}" LESS 9) | ||
|
||
# Specify sources and UI files | ||
set(APP_SOURCES main.cpp d2mWidget.cpp dicomConverter.cpp rsc/dicom2meshgui.qrc) | ||
set(APP_UIS d2mWidget.ui) | ||
set(APP_INCLUDE_DIRS .) | ||
|
||
include_directories(${APP_INCLUDE_DIRS}) | ||
SET( APP_SOURCES main.cpp d2mWidget.cpp dicomConverter.cpp rsc/dicom2meshgui.qrc) | ||
SET( APP_UIS d2mWidget.ui ) | ||
SET( APP_INCLUDE_DIRS . ) | ||
|
||
qt_wrap_ui(APP_FORMS_HEADERS ${APP_UIS}) | ||
include_directories( ${APP_INCLUDE_DIRS} ) | ||
|
||
add_executable(dicom2meshgui ${APP_SOURCES} ${APP_FORMS_HEADERS}) | ||
target_link_libraries(dicom2meshgui dicom2meshlib Qt6::Widgets) | ||
QT5_WRAP_UI(APP_FORMS_HEADERS ${APP_UIS} ) | ||
|
||
target_compile_features(dicom2meshgui PRIVATE cxx_std_17) | ||
add_executable(dicom2meshgui ${APP_SOURCES} ${APP_FORMS_HEADERS} ) | ||
target_link_libraries(dicom2meshgui dicom2meshlib Qt5::Widgets) | ||
target_compile_features(dicom2meshgui PRIVATE cxx_std_17 ) |