Skip to content

Commit

Permalink
Explicitly include the build/res directory so windres will find it when
Browse files Browse the repository at this point in the history
using the CMake Makefile generator
  • Loading branch information
nadiaholmquist committed Nov 9, 2022
1 parent 9587d35 commit 726fde4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion res/melon.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ FILETYPE VFT_APP
}
}

1 24 "res/xp.manifest"
1 24 "xp.manifest"
6 changes: 1 addition & 5 deletions src/frontend/qt_sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ else()
option(USE_QT6 "Build using Qt 6 instead of 5" OFF)
endif()


if (WIN32)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -i <SOURCE> -o <OBJECT>")
endif()

if (USE_QT6)
find_package(Qt6 COMPONENTS Core Gui Widgets Network Multimedia OpenGL OpenGLWidgets REQUIRED)
set(QT_LINK_LIBS Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Network Qt6::Multimedia Qt6::OpenGL Qt6::OpenGLWidgets)
Expand Down Expand Up @@ -159,6 +154,7 @@ elseif (WIN32)

configure_file("${CMAKE_SOURCE_DIR}/res/melon.rc.in" "${CMAKE_BINARY_DIR}/res/melon.rc")
target_sources(melonDS PUBLIC "${CMAKE_BINARY_DIR}/res/melon.rc")
target_include_directories(melonDS PRIVATE "${CMAKE_BINARY_DIR}/res")

if (${ARCHITECTURE} STREQUAL x86_64)
set(WIN32_ARCHITECTURE amd64)
Expand Down

0 comments on commit 726fde4

Please sign in to comment.