Also add Unix files to wxQt CMake build

Similar to the last commit for configure-based build system.

Co-Authored-By: Maarten Bent <MaartenBent@users.noreply.github.com>
This commit is contained in:
Vadim Zeitlin 2022-10-23 14:52:57 +02:00
parent fba8a119a1
commit ed510012ba
2 changed files with 14 additions and 1 deletions

View file

@ -167,6 +167,17 @@ set(BASE_OSX_NOTWXMAC_HDR
${BASE_COREFOUNDATION_HDR}
)
set(QT_UNIX_SRC
src/unix/dialup.cpp
src/unix/joystick.cpp
src/unix/sound.cpp
)
set(QT_UNIX_HDR
wx/unix/joystick.h
wx/unix/sound.h
)
set(QT_WIN32_SRC
src/msw/ole/automtn.cpp
src/msw/ole/safearray.cpp

View file

@ -50,7 +50,9 @@ elseif(WXOSX_IPHONE)
wx_append_sources(CORE_SRC OSX_IPHONE)
elseif(WXQT)
wx_append_sources(CORE_SRC QT)
if(WIN32)
if(UNIX)
wx_append_sources(CORE_SRC QT_UNIX)
elseif(WIN32)
wx_append_sources(CORE_SRC QT_WIN32)
endif()
endif()