add boot.bin cmake target
This commit is contained in:
parent
055cffc95d
commit
58a486334c
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
build/
|
build/
|
||||||
.vscode/
|
.vscode/
|
||||||
program.bin
|
|
||||||
|
|||||||
@ -9,6 +9,13 @@ find_package(SDL3 REQUIRED CONFIG REQUIRED COMPONENTS SDL3-shared)
|
|||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
add_subdirectory(boot)
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
run
|
||||||
|
DEPENDS emu boot/boot.bin
|
||||||
|
COMMAND emu boot/boot.bin
|
||||||
|
VERBATIM
|
||||||
|
USES_TERMINAL
|
||||||
|
)
|
||||||
|
|
||||||
|
|||||||
15
boot/CMakeLists.txt
Normal file
15
boot/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT boot.bin
|
||||||
|
DEPENDS asm ${PROJECT_SOURCE_DIR}/boot/boot.vc6asm
|
||||||
|
COMMAND asm ${PROJECT_SOURCE_DIR}/boot/boot.vc6asm -o boot.bin
|
||||||
|
VERBATIM
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
boot.bin
|
||||||
|
ALL
|
||||||
|
DEPENDS boot.bin
|
||||||
|
)
|
||||||
|
|
||||||
@ -15,9 +15,6 @@ target_include_directories(isa PUBLIC .)
|
|||||||
add_executable(emu WIN32 emu.c)
|
add_executable(emu WIN32 emu.c)
|
||||||
target_link_libraries(emu PRIVATE project_options isa SDL3::SDL3)
|
target_link_libraries(emu PRIVATE project_options isa SDL3::SDL3)
|
||||||
|
|
||||||
add_executable(asm WIN32 asm.c)
|
add_executable(asm asm.c)
|
||||||
target_link_libraries(asm PRIVATE project_options isa)
|
target_link_libraries(asm PRIVATE project_options isa)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user