mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-05-10 19:11:36 +00:00
Make building elf a target
This commit is contained in:
parent
72cdf12bf8
commit
0e561e3c0c
1 changed files with 2 additions and 1 deletions
|
|
@ -74,9 +74,10 @@ target_sources(PatchesLib PRIVATE
|
||||||
set_source_files_properties(${CMAKE_SOURCE_DIR}/RecompiledPatches/patches.c PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
|
set_source_files_properties(${CMAKE_SOURCE_DIR}/RecompiledPatches/patches.c PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
|
||||||
|
|
||||||
# Build patches elf
|
# Build patches elf
|
||||||
add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/patches/patches.bin
|
add_custom_target(PatchesBin
|
||||||
COMMAND make
|
COMMAND make
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/patches
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/patches
|
||||||
|
BYPRODUCTS ${CMAKE_SOURCE_DIR}/patches/patches.bin
|
||||||
)
|
)
|
||||||
|
|
||||||
# Generate patches_bin.c from patches.bin
|
# Generate patches_bin.c from patches.bin
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue