diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..3063baf --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "common"] + path = common + url = git@github.com:G-Epitech/MAYBDF-ArcadeShared.git diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a1bd1c..0aad562 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index 3016170..d7479f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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/) diff --git a/Makefile b/Makefile index 7f61fd8..7e22848 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ all: clean: @rm -rf $(BUILD_PATH) -fclean: +fclean: clean @rm -f $(NAME) re: fclean all diff --git a/common b/common new file mode 160000 index 0000000..740723c --- /dev/null +++ b/common @@ -0,0 +1 @@ +Subproject commit 740723c681c0c106ffdba313aea8fd3b153f40ea