mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[host] windows: fix resource compilation dependencies
It used to be the case that when updating app.manifest, the resource file it not automatically rebuilt. This made it a headache to update the manifest. We set OBJECT_DEPENDS so that cmake knows to make the res file depend on app.manifest and icon.ico. This commit is based on PR #579 and should be rebased on it after it's merged.
This commit is contained in:
parent
28a67cad0d
commit
2fc1d3cae6
@ -71,6 +71,9 @@ add_subdirectory("${PROJECT_TOP}/repos/LGMP/lgmp" "${CMAKE_BINARY_DIR}/lgmp" )
|
||||
add_subdirectory(platform)
|
||||
|
||||
if(WIN32)
|
||||
set_source_files_properties(platform/Windows/resource.rc PROPERTIES
|
||||
OBJECT_DEPENDS "${PROJECT_SOURCE_DIR}/platform/Windows/app.manifest;${PROJECT_TOP}/resources/icon.ico"
|
||||
)
|
||||
add_executable(looking-glass-host WIN32
|
||||
platform/Windows/resource.rc
|
||||
${SOURCES}
|
||||
|
Loading…
Reference in New Issue
Block a user