From 516b46845d74654827c0b34ae6b4eaa6ef298c4f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 2 Apr 2018 12:21:59 -0400 Subject: [PATCH] DolphinWX/CMakeLists: Remove usages of the LIBS and SRCS variables Instead, operated on the target itself. --- Source/Core/DolphinWX/CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Source/Core/DolphinWX/CMakeLists.txt b/Source/Core/DolphinWX/CMakeLists.txt index 8c101c0395..517f5ee6dc 100644 --- a/Source/Core/DolphinWX/CMakeLists.txt +++ b/Source/Core/DolphinWX/CMakeLists.txt @@ -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})