Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
eidelen committed Oct 11, 2024
2 parents 52826c0 + 30989cc commit de5a696
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions gui/CMakeLists.txt
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 )

0 comments on commit de5a696

Please sign in to comment.