Skip to content

Commit

Permalink
git: fetch Unity using git submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
mrunix00 committed Sep 18, 2024
1 parent 023ccf4 commit 052b1b0
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 4,586 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/cmake-build-debug/
/.idea
/libs/unity
/.idea
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "libs/Unity"]
path = libs/Unity
url = https://github.com/ThrowTheSwitch/Unity

4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ set(LEXER_OUT "${LEXER_DIR}/lexer.c")

include_directories(include)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(libs)
include_directories(libs/Unity/src/)

find_package(FLEX REQUIRED)

flex_target(lexer src/lexer.l "${LEXER_OUT}" DEFINES_FILE ${LEXER_DIR}/lexer.h)

file(GLOB_RECURSE SOURCE "src/*.c")
file(GLOB UNITY_SOURCE "libs/unity/unity.c")
file(GLOB UNITY_SOURCE "libs/Unity/src/unity.c")

add_executable(HAL64 main.c ${SOURCE} ${LEXER_OUT})
add_executable(TESTS_LEXER test/lexer.c ${UNITY_SOURCE} ${SOURCE} ${LEXER_OUT})
1 change: 1 addition & 0 deletions libs/Unity
Submodule Unity added at 860062
Loading

0 comments on commit 052b1b0

Please sign in to comment.