am-kernels/kernels/hello/CMakeLists.txt
xinyangli 8630fe7667
All checks were successful
Build nix packages / build-matrix (am-kernels) (push) Successful in 2m26s
Build nix packages / build-matrix (rv32Cross.am-kernels-nemu) (push) Successful in 2m23s
Build nix packages / build-matrix (rv32Cross.am-kernels-npc) (push) Successful in 2m21s
refactor: use cmake macros to do objcopy, install and tests
2024-08-15 17:52:04 +08:00

8 lines
224 B
CMake

add_executable(hello
hello.c
)
target_include_directories(hello PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include)
target_link_libraries(hello PRIVATE am-${ARCH} klib)
create_binary(hello)
install_target_and_binary(hello)