use cmake to build roms, too; it just calls existing makefile

This commit is contained in:
Christopher A. Mosher 2022-11-04 11:11:42 -04:00
parent 348f85e391
commit 18f1eb56bd
3 changed files with 7 additions and 3 deletions

View File

@ -21,11 +21,13 @@ jobs:
- uses: "actions/checkout@v3"
- name: "Build artifacts"
- name: "Build"
run: |
set -x
cd rom
make
mkdir build
cd build
cmake ..
cmake --build . --target roms
- uses: "actions/upload-artifact@v3"
with:

View File

@ -8,3 +8,4 @@ include(GNUInstallDirs)
add_subdirectory(src)
add_subdirectory(conf)
add_subdirectory(rom)

1
rom/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@
add_custom_target(roms COMMAND make WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})