Skip to content

Commit

Permalink
feat: Arrange directory includes for header files
Browse files Browse the repository at this point in the history
- Target:
  This repo need add a folder into the directory `includes` to contain
  all header files.

- Changed:
  Arrange directory `includes` for header files.
  • Loading branch information
burstknight committed Apr 9, 2024
1 parent f1b82db commit 9f83719
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ endif(${Enable_Generate_Document})

aux_source_directory(./src SOURCES)
add_library(ArgsParserCpp ${SOURCES})
target_include_directories(ArgsParserCpp
PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/includes>
)

###########################################################
# Add the build config to enable or disable in order to
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/myArgsParser.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../includes/myArgsParser.h"
#include "ArgsParserCpp/myArgsParser.h"
#include <cctype>
#include <cstdio>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion tests/test_myArgsParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <gtest/gtest.h>
#include <memory>
#include <stdexcept>
#include "../includes/myArgsParser.h"
#include "ArgsParserCpp/myArgsParser.h"

using namespace std;
using namespace ArgsParserCpp;
Expand Down

0 comments on commit 9f83719

Please sign in to comment.