mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 05:53:40 +00:00
Revert "Revert "[host] avoid manual windres command""
This reverts commit cd10e02862
.
This commit is contained in:
parent
b8effaf42c
commit
aa41e4d2ce
@ -11,6 +11,7 @@ add_library(platform_Windows STATIC
|
||||
src/mousehook.c
|
||||
src/force_compose.c
|
||||
src/delay.c
|
||||
resource.rc
|
||||
)
|
||||
|
||||
# allow use of functions for Windows Vista or later
|
||||
@ -18,15 +19,7 @@ add_definitions(-D _WIN32_WINNT=0x6000)
|
||||
|
||||
add_subdirectory("capture")
|
||||
|
||||
FIND_PROGRAM(WINDRES_EXECUTABLE NAMES "x86_64-w64-mingw32-windres" "windres.exe" DOC "windres executable")
|
||||
ADD_CUSTOM_COMMAND(TARGET platform_Windows POST_BUILD
|
||||
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
|
||||
COMMAND ${WINDRES_EXECUTABLE} -i resource.rc -o "${PROJECT_BINARY_DIR}/resource.o"
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
target_link_libraries(platform_Windows
|
||||
"${PROJECT_BINARY_DIR}/resource.o"
|
||||
lg_common
|
||||
capture
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user