~swisschili/toolchain-6502

ref: 6a923012793c195cbc1bdbd5e4d6f6c3b680f37b toolchain-6502/as/CMakeLists.txt -rw-r--r-- 337 bytes
6a923012swissChili Build .deb package, try to fix endianness issues 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.0)

project(6502 VERSION 0.1.0 LANGUAGES C)

include(TestBigEndian)
test_big_endian(BIG_ENDIAN)


if (${BIG_ENDIAN})
	add_compile_definitions(BIG_ENDIAN)
else()
	add_compile_definitions(LITTLE_ENDIAN)
endif()


add_executable(6502-as main.c as.h as.c map.h map.c hash.c hash.c)

install(TARGETS 6502-as)