cmake: some more work on qt/musredit.

This commit is contained in:
2018-05-22 15:46:20 +02:00
parent 0bc2ef7612
commit d95193141d
2 changed files with 23 additions and 2 deletions

View File

@ -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)

View File

@ -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)