2021-11-25 10:20:56 +01:00
|
|
|
# Find includes in corresponding build directories
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
|
2021-11-28 20:54:32 +01:00
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
|
2021-11-30 16:26:49 +06:00
|
|
|
set(UI_EXTRA_FILES)
|
|
|
|
|
if (APPLE)
|
|
|
|
|
set(UI_EXTRA_FILES "macos_event_filter.mm")
|
|
|
|
|
endif()
|
|
|
|
|
|
2021-11-25 10:20:56 +01:00
|
|
|
add_library(plat STATIC qt.c qt_main.cpp qt_platform.cpp qt_midi.cpp cpp11_thread.cpp)
|
|
|
|
|
add_library(ui STATIC
|
|
|
|
|
qt_ui.cpp
|
|
|
|
|
qt_cdrom.c
|
|
|
|
|
qt_sdl.c
|
|
|
|
|
|
|
|
|
|
qt_mainwindow.cpp
|
|
|
|
|
qt_mainwindow.hpp
|
|
|
|
|
qt_mainwindow.ui
|
2021-11-28 20:49:05 +01:00
|
|
|
qt_machinestatus.cpp
|
|
|
|
|
qt_machinestatus.hpp
|
|
|
|
|
qt_machinestatus.ui
|
2021-11-30 16:26:49 +06:00
|
|
|
qt_gleswidget.cpp
|
|
|
|
|
qt_gleswidget.hpp
|
|
|
|
|
|
|
|
|
|
${UI_EXTRA_FILES}
|
2021-11-25 10:20:56 +01:00
|
|
|
|
|
|
|
|
qt_settings.cpp
|
|
|
|
|
qt_settings.hpp
|
|
|
|
|
qt_settings.ui
|
|
|
|
|
|
|
|
|
|
qt_settingsmachine.cpp
|
|
|
|
|
qt_settingsmachine.hpp
|
|
|
|
|
qt_settingsmachine.ui
|
|
|
|
|
qt_settingsdisplay.cpp
|
|
|
|
|
qt_settingsdisplay.hpp
|
|
|
|
|
qt_settingsdisplay.ui
|
|
|
|
|
qt_settingsinput.cpp
|
|
|
|
|
qt_settingsinput.hpp
|
|
|
|
|
qt_settingsinput.ui
|
|
|
|
|
qt_settingssound.cpp
|
|
|
|
|
qt_settingssound.hpp
|
|
|
|
|
qt_settingssound.ui
|
|
|
|
|
qt_settingsnetwork.cpp
|
|
|
|
|
qt_settingsnetwork.hpp
|
|
|
|
|
qt_settingsnetwork.ui
|
|
|
|
|
qt_settingsports.cpp
|
|
|
|
|
qt_settingsports.hpp
|
|
|
|
|
qt_settingsports.ui
|
|
|
|
|
qt_settingsstoragecontrollers.cpp
|
|
|
|
|
qt_settingsstoragecontrollers.hpp
|
|
|
|
|
qt_settingsstoragecontrollers.ui
|
|
|
|
|
qt_settingsharddisks.cpp
|
|
|
|
|
qt_settingsharddisks.hpp
|
|
|
|
|
qt_settingsharddisks.ui
|
|
|
|
|
qt_settingsfloppycdrom.cpp
|
|
|
|
|
qt_settingsfloppycdrom.hpp
|
|
|
|
|
qt_settingsfloppycdrom.ui
|
|
|
|
|
qt_settingsotherremovable.cpp
|
|
|
|
|
qt_settingsotherremovable.hpp
|
|
|
|
|
qt_settingsotherremovable.ui
|
|
|
|
|
qt_settingsotherperipherals.cpp
|
|
|
|
|
qt_settingsotherperipherals.hpp
|
|
|
|
|
qt_settingsotherperipherals.ui
|
|
|
|
|
|
|
|
|
|
qt_deviceconfig.cpp
|
|
|
|
|
qt_deviceconfig.hpp
|
|
|
|
|
qt_deviceconfig.ui
|
|
|
|
|
|
|
|
|
|
qt_filefield.cpp
|
|
|
|
|
qt_filefield.hpp
|
|
|
|
|
qt_filefield.ui
|
|
|
|
|
qt_harddiskdialog.cpp
|
|
|
|
|
qt_harddiskdialog.hpp
|
|
|
|
|
qt_harddiskdialog.ui
|
|
|
|
|
|
|
|
|
|
qt_harddrive_common.cpp
|
|
|
|
|
qt_harddrive_common.hpp
|
|
|
|
|
qt_models_common.cpp
|
|
|
|
|
qt_models_common.hpp
|
|
|
|
|
|
|
|
|
|
../qt_resources.qrc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(
|
|
|
|
|
plat
|
|
|
|
|
PRIVATE
|
|
|
|
|
Qt5::Widgets
|
2021-11-28 20:54:32 +01:00
|
|
|
Threads::Threads
|
2021-11-25 10:20:56 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(
|
|
|
|
|
ui
|
|
|
|
|
PRIVATE
|
|
|
|
|
Qt5::Widgets
|
2021-11-28 20:54:32 +01:00
|
|
|
Threads::Threads
|
2021-11-25 10:20:56 +01:00
|
|
|
)
|
2021-11-30 16:26:49 +06:00
|
|
|
|
|
|
|
|
if (NOT APPLE)
|
|
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
|
target_link_libraries(ui PRIVATE X11::X11)
|
|
|
|
|
endif()
|