cmake build app conf

This commit is contained in:
Christopher A. Mosher 2022-11-01 21:22:54 -04:00
parent 45156fadc4
commit f74095c81f
3 changed files with 27 additions and 9 deletions

View File

@ -14,6 +14,10 @@ jobs:
sudo apt-get update -qqqq
sudo apt-get upgrade -qqqq
sudo apt-get install -qqqq xa65
m4 --version
xa --version
ldo65 --version
reloc65 --version
- uses: "actions/checkout@v3"
@ -28,3 +32,26 @@ jobs:
with:
name: "epple2-roms"
path: "./rom/*.a65"
"build-epple2-ubuntu":
runs-on: "ubuntu-latest"
steps:
- name: "Prepare runner"
run: |
set -x
sudo apt-get update -qqqq
sudo apt-get upgrade -qqqq
sudo apt-get install -qqqq libsdl2-dev
- uses: "actions/checkout@v3"
- name: "Build"
run: |
set -x
mkdir build
cd build
cmake ..
cmake --build .
ls -l src conf

View File

@ -1,11 +1,6 @@
cmake_minimum_required(VERSION 3.22.1)
set(CMAKE_VERBOSE_MAKEFILE ON)
project(epple2)
include(GNUInstallDirs)
add_subdirectory(src)
add_subdirectory(conf)
#add_subdirectory(rom)

View File

@ -72,10 +72,6 @@ wozfile.cpp
)
add_executable(epple2 ${sources})
target_compile_features(epple2 PUBLIC cxx_std_17)
include(GNUInstallDirs)
target_compile_definitions(epple2 PUBLIC ETCDIR="${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SYSCONFDIR}")
target_link_libraries(epple2 ${SDL2_LIBRARIES})