Skip to content

Commit

Permalink
Merge pull request #4 from G-Epitech/shared-lib
Browse files Browse the repository at this point in the history
feat: add shared lib
  • Loading branch information
TekMath authored Mar 11, 2024
2 parents df6262e + b7ffa27 commit dfafcaa
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "common"]
path = common
url = git@github.com:G-Epitech/MAYBDF-ArcadeShared.git
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ repos:
entry: bash -c 'make tests_run'
language: system
pass_filenames: false
- id: compilation
name: Project compilation
entry: bash -c 'make && make fclean'
language: system
pass_filenames: false
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")

add_subdirectory(src)
target_include_directories (arcade PUBLIC ${CMAKE_CURRENT_LIST_DIR}/common/)
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ all:
clean:
@rm -rf $(BUILD_PATH)

fclean:
fclean: clean
@rm -f $(NAME)

re: fclean all
Expand Down
1 change: 1 addition & 0 deletions common
Submodule common added at 740723

0 comments on commit dfafcaa

Please sign in to comment.