DolphinWX/CMakeLists: Remove usages of the LIBS and SRCS variables

Instead, operated on the target itself.
This commit is contained in:
Lioncash 2018-04-02 12:21:59 -04:00
parent 4331f80489
commit 516b46845d
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
1 changed files with 5 additions and 7 deletions

View File

@ -2,7 +2,7 @@ if(NOT wxWidgets_FOUND)
return()
endif()
set(SRCS
add_executable(dolphin-emu
AboutDolphin.cpp
ControllerConfigDiag.cpp
Cheats/ActionReplayCodesPanel.cpp
@ -83,7 +83,8 @@ set(SRCS
WxUtils.cpp
)
set(LIBS
target_link_libraries(dolphin-emu
PRIVATE
core
uicommon
cpp-optparse
@ -93,21 +94,18 @@ set(LIBS
if(APPLE)
# Add resource files to application bundle.
set(RESOURCES "${CMAKE_SOURCE_DIR}/Data/Dolphin.icns")
list(APPEND SRCS ${RESOURCES})
target_sources(dolphin-emu PRIVATE ${RESOURCES})
set_source_files_properties(${RESOURCES} PROPERTIES
MACOSX_PACKAGE_LOCATION Resources)
endif()
if(WIN32)
list(APPEND SRCS
target_sources(dolphin-emu PRIVATE
DolphinWX.manifest
DolphinWX.rc
)
endif()
add_executable(dolphin-emu ${SRCS})
target_link_libraries(dolphin-emu PRIVATE ${LIBS})
if(USE_X11)
find_package(GTK2 REQUIRED)
target_link_libraries(dolphin-emu PRIVATE ${GTK2_LIBRARIES})