moved the utils for the parser to a global utils
folder for the tests (that utils is includable only by the tests and not the src code, I added a compiler flag only for the tests in the makefile, but the compiler_flags.txt is global for the lsp, gotta be careful with that)
This commit is contained in:
3
Makefile
3
Makefile
@@ -3,6 +3,7 @@
|
||||
# -------------------------------------------------------------------
|
||||
CXX := g++
|
||||
CXXFLAGS := -std=c++17 -Wall -Wextra -Iinclude -Isrc -MMD -MP
|
||||
CXXFLAGS_TESTS := -Itest/utils
|
||||
LDFLAGS :=
|
||||
SRC_DIR := src
|
||||
TEST_DIR := test
|
||||
@@ -70,7 +71,7 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
|
||||
|
||||
$(OBJ_DIR)/test/%.o: $(TEST_DIR)/%.cpp
|
||||
@mkdir -p $(@D)
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
$(CXX) $(CXXFLAGS) $(CXXFLAGS_TESTS) -c $< -o $@
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# Auto‐include dependencies
|
||||
|
Reference in New Issue
Block a user