diff --git a/src/musredit_qt5/CMakeLists.txt b/src/musredit_qt5/CMakeLists.txt index fbd93886..68acc1a6 100644 --- a/src/musredit_qt5/CMakeLists.txt +++ b/src/musredit_qt5/CMakeLists.txt @@ -1,4 +1,4 @@ -#--- musredit for Qt > 5.0 ---------------------------------------------------- +#--- musredit_qt5 for Qt > 5.0 ------------------------------------------------ message("debug> will eventually deal with Qt > 5.0 musredit, musrStep, musrWiz, ...") @@ -8,6 +8,12 @@ configure_file( ${CMAKE_CURRENT_BINARY_DIR}/musrfit-info.h ) -#add_subdirectory(musredit) +#--- set Qt specific cmake variables ------------------------------------------ +#--- instruct cmake to run moc automatically when needed +set(CMAKE_AUTOMOC ON) +#--- create code from a list of Qt designer ui files +set(CMAKE_AUTOUIC ON) + +add_subdirectory(musredit) #add_subdirectory(musrStep) #add_subdirectory(musrWiz) diff --git a/src/musredit_qt5/musredit/CMakeLists.txt b/src/musredit_qt5/musredit/CMakeLists.txt new file mode 100644 index 00000000..80aa3e74 --- /dev/null +++ b/src/musredit_qt5/musredit/CMakeLists.txt @@ -0,0 +1,15 @@ +#--- musredit for Qt > 5.0 ---------------------------------------------------- + +message("debug> will deal with the build of musredit (Qt 5)") + +#--- check if Qt5WebEngine or Qt5WebKit is present ---------------------------- +find_package(Qt5WebEngine QUIET) +find_package(Qt5WebKit QUIET) + +if (Qt5WebEngine_FOUND) + message("debug> Qt5WebEngine is present.") +elseif (Qt5WebKit_FOUND) + message("debug> Qt5WebKit is present.") +else (Qt5WebEngine_FOUND) + message("debug> Neither Qt5WebEngine nor Qt5WebKit found.") +endif (Qt5WebEngine_FOUND)