Skip to content

Commit 9397eb6

Browse files
committed
Add dummy CMakeLists.txt (just for IDEs)
The CMakeLists.txt file is just for providing IDE support for those requiring it (Clion for instance), the toolchain itself does not build with it - use the Makefile for that (see the readme).
1 parent 2124396 commit 9397eb6

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# Backups
1+
# Backups and IDE stuff
22
*~
3+
.idea/
34

4-
# Doxygen specific
5+
6+
# Generated documentation
57
doxygen/
68

79
# Object files
@@ -11,6 +13,7 @@ doxygen/
1113
*.elf
1214
obj/
1315
release/
16+
cmake-build-debug/
1417

1518
# Precompiled Headers
1619
*.gch
@@ -36,9 +39,6 @@ relocation_table
3639
*.8xp
3740
!*var_gfx.8xv
3841

39-
# Generated documentation
40-
doxygen/
41-
4242
# Debug files
4343
*.dSYM/
4444
*.map

CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This CMakeLists.txt file is just for providing IDE support for those requiring it (Clion for instance)
2+
# The toolchain itself does not build with it - use the Makefile for that (see the readme).
3+
4+
cmake_minimum_required(VERSION 3.2)
5+
6+
project(toolchain)
7+
8+
list(APPEND CMAKE_C_FLAGS "-std=c99 -W -Wall -Wno-incompatible-library-redeclaration -Wno-parentheses -Wno-pointer-sign -Wno-incompatible-pointer-types")
9+
10+
include_directories(${CMAKE_SOURCE_DIR}/src/ce
11+
${CMAKE_SOURCE_DIR}/src/fileioc
12+
${CMAKE_SOURCE_DIR}/src/graphx
13+
${CMAKE_SOURCE_DIR}/src/keypadc
14+
${CMAKE_SOURCE_DIR}/src/std
15+
${CMAKE_SOURCE_DIR}/src/sub/compat)
16+
17+
file(GLOB_RECURSE SOURCE_FILES src false *.h *.c)
18+
file(GLOB_RECURSE EXAMPLES_FILES examples false *.h *.c)
19+
20+
add_executable(toolchain ${SRC_FILES} ${EXAMPLES_FILES})

0 commit comments

Comments
 (0)