2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-07 20:45:51 +00:00

CMakeLists: Migrate Qt package finding to using components

Same thing but shortens up the find_package() calls and allows linking
in a target directly instead of a variable name.
This commit is contained in:
Lioncash 2019-08-25 19:59:36 -04:00
parent 1558d3d355
commit 2c8ee49238

View File

@ -4,9 +4,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
find_package(Qt5Widgets) find_package(Qt5 COMPONENTS Network Widgets Xml REQUIRED)
find_package(Qt5Network)
find_package(Qt5Xml)
if(APPLE) if(APPLE)
set(PLAT_SRCS MacOSSystemVersion.hpp MacOSSystemVersion.mm) set(PLAT_SRCS MacOSSystemVersion.hpp MacOSSystemVersion.mm)
@ -93,9 +91,9 @@ target_compile_definitions(hecl-gui PRIVATE QUAZIP_STATIC=1)
target_link_libraries(hecl-gui target_link_libraries(hecl-gui
${PLAT_LIBS} ${PLAT_LIBS}
${Qt5Network_LIBRARIES} Qt5::Network
${Qt5Widgets_LIBRARIES} Qt5::Widgets
${Qt5Xml_LIBRARIES} Qt5::Xml
athena-core athena-core
hecl-light hecl-light