-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
48 lines (46 loc) · 1.73 KB
/
CMakeLists.txt
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
36
37
38
39
40
41
42
43
44
45
46
47
48
########################################################################################################################
# CMake build script for Motorola P2K ELFs: 02-Oct-2023
#
cmake_minimum_required(VERSION 3.16)
if(NOT ELFPACK)
set(ELFPACK "EP1")
endif()
if(NOT ARM_MODE)
set(ARM_MODE "Thumb")
endif()
if(ELFPACK STREQUAL "EP1") # Motorola P2K, ARM/Thumb, ElfPack v1.x, ADS1.2 [Build 848] on Windows and Linux.
if (WIN32)
set(CMAKE_TOOLCHAIN_FILE "C:/ARM/cmake/P2K_EP1_Toolchain.cmake")
else()
set(CMAKE_TOOLCHAIN_FILE "/opt/arm/cmake/P2K_EP1_Toolchain.cmake")
endif()
elseif(ELFPACK STREQUAL "EP2") # ElfPack v2.x, ARM/Thumb, devkitARM release 26 (GCC 4.4.0) on Windows.
set(CMAKE_TOOLCHAIN_FILE "C:/devkitARM/cmake/P2K_EP2_Toolchain.cmake")
elseif(ELFPACK STREQUAL "EM1") # ElfPack v1.x, M*CORE, mcore-elf-gcc (GCC) 3.4.6 on Windows.
set(CMAKE_TOOLCHAIN_FILE "C:/MCORE_EM1/cmake/P2K_EM1_Toolchain.cmake")
elseif(ELFPACK STREQUAL "EM2") # ElfPack v2.x, M*CORE, mcore-elf-gcc (GCC) 3.4.6 on Windows.
set(CMAKE_TOOLCHAIN_FILE "C:/MCORE_EM2/cmake/P2K_EM2_Toolchain.cmake")
endif()
########################################################################################################################
# Project section: General
#
project(P2kElfs)
add_subdirectory(Ambilight)
add_subdirectory(BadApple)
add_subdirectory(BattDump)
add_subdirectory(Benchmark)
add_subdirectory(Dumper)
add_subdirectory(ElfBox)
add_subdirectory(FireEffect)
add_subdirectory(Neko)
add_subdirectory(Overclock)
add_subdirectory(Perlin)
add_subdirectory(PowerAlert)
add_subdirectory(Screenshot)
add_subdirectory(Spout)
add_subdirectory(VibroHaptic)
add_subdirectory(Yeti3D-Old)
add_subdirectory(Yeti3D)
add_subdirectory(FlipDetector)
add_subdirectory(vNesC)
add_subdirectory(Snow)