-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (29 loc) · 755 Bytes
/
CMakeLists.txt
File metadata and controls
35 lines (29 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.18)
add_subdirectory(tools)
set(LLVM_MOS_PLATFORM rp6502)
find_package(llvm-mos-sdk REQUIRED)
project(MY-RP6502-PROJECT C CXX ASM)
# Define the option (Default is ON/Native)
option(USE_NATIVE_OPL2 "Use the RIA native OPL2 support" ON)
if(USE_NATIVE_OPL2)
add_definitions(-DUSE_NATIVE_OPL2)
message(STATUS "Targeting: Native RIA OPL2")
else()
message(STATUS "Targeting: FPGA TinyFPGA Sound Card")
endif()
add_executable(RPTracker)
rp6502_executable(RPTracker
DATA file
RESET file
${CMAKE_CURRENT_SOURCE_DIR}/src/main.hlp
)
target_sources(RPTracker PRIVATE
src/main.c
src/input.c
src/instruments.c
src/opl.c
src/player.c
src/screen.c
src/song.c
src/effects.c
)