Replace call QT5_WRAP_UI with CMAKE_AUTOUIC (#7200)

This commit is contained in:
Rossmaxx
2024-04-27 20:51:09 +05:30
committed by GitHub
parent a53e5ba2f6
commit 6c846684cd
5 changed files with 9 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
if(LMMS_HAVE_GIG)
INCLUDE(BuildPlugin)
INCLUDE_DIRECTORIES(${GIG_INCLUDE_DIRS})
SET(CMAKE_AUTOUIC ON)
# Required for not crashing loading files with libgig
SET(GCC_COVERAGE_COMPILE_FLAGS "-fexceptions")
@@ -17,7 +18,6 @@ if(LMMS_HAVE_GIG)
build_plugin(gigplayer
GigPlayer.cpp GigPlayer.h PatchesDialog.cpp PatchesDialog.h PatchesDialog.ui
MOCFILES GigPlayer.h PatchesDialog.h
UICFILES PatchesDialog.ui
EMBEDDED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.png"
)
target_link_libraries(gigplayer SampleRate::samplerate)

View File

@@ -1,9 +1,9 @@
if(LMMS_HAVE_FLUIDSYNTH)
SET(CMAKE_AUTOUIC ON)
include(BuildPlugin)
build_plugin(sf2player
Sf2Player.cpp Sf2Player.h PatchesDialog.cpp PatchesDialog.h PatchesDialog.ui
MOCFILES Sf2Player.h PatchesDialog.h
UICFILES PatchesDialog.ui
EMBEDDED_RESOURCES *.png
)
target_link_libraries(sf2player fluidsynth SampleRate::samplerate)