Skip to content

Commit 1a7cab4

Browse files
Clean up project structure
1 parent f00f158 commit 1a7cab4

File tree

11 files changed

+10
-43
lines changed

11 files changed

+10
-43
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ install(FILES ${root_hdrs} DESTINATION include)
2323
install(FILES ${dspatch_hdrs} DESTINATION include/dspatch)
2424
install(FILES ${fast_any_hdrs} DESTINATION include/fast_any)
2525

26+
include_directories(include)
27+
2628
add_subdirectory(docs)
2729
add_subdirectory(tests)
2830
add_subdirectory(tutorial)

docs/Doxyfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,7 @@ RECURSIVE = YES
703703
# Note that relative paths are relative to the directory from which doxygen is
704704
# run.
705705

706-
EXCLUDE = ../include/DSPatchVersion.h \
707-
../include/fast_any \
708-
../subprojects \
706+
EXCLUDE = ../include/fast_any \
709707
../tests \
710708
../tutorial
711709

meson.build

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ opencppcoverage = find_program('opencppcoverage', required: false)
1212

1313
opencppcoverage_args = [
1414
'--sources', meson.project_name(),
15-
'--excluded_sources', 'subprojects',
1615
'--excluded_sources', 'tests',
1716
'--excluded_sources', 'tutorial'
1817
]
@@ -69,12 +68,7 @@ if find_program('cppcheck', required: false).found()
6968
'--suppress=*:' + meson.current_source_dir() + '/include/fast_any/any.h',
7069

7170
'-i', meson.current_source_dir() + '/build',
72-
'-i', meson.current_source_dir() + '/builddir',
73-
'-i', meson.current_source_dir() + '/subprojects',
74-
7571
'-I', meson.current_source_dir() + '/include',
76-
'-I', meson.current_source_dir() + '/tests',
77-
'-I', meson.current_source_dir() + '/tutorial',
7872

7973
extra_cppcheck_args,
8074

@@ -86,12 +80,8 @@ endif
8680

8781
# Configure DSPatch
8882

89-
dspatch_inc = include_directories(
90-
'include'
91-
)
92-
9383
dspatch_dep = declare_dependency(
94-
include_directories: dspatch_inc,
84+
include_directories: include_directories('include'),
9585
dependencies: dependency('threads')
9686
)
9787

scripts/clang-format.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ for %%f in ("*.cpp", "*.h") do (
1212

1313
for /D %%d in (*) do (
1414
cd %%d
15-
if not %%d==build if not %%d==builddir if not %%d==subprojects call :processDir
15+
if not %%d==build if not %%d==builddir call :processDir
1616
cd ..
1717
)
1818

scripts/clang-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
44
cd "$DIR/.."
55

6-
find . -iname *.h -o -iname *.cpp | grep -v build | grep -v builddir | grep -v subprojects | xargs clang-format --style=file --verbose -i
6+
find . -iname *.h -o -iname *.cpp | grep -v build | grep -v builddir | xargs clang-format --style=file --verbose -i

subprojects/catch/meson.build

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
project(DSPatchTests)
22

3-
include_directories(
4-
${CMAKE_CURRENT_SOURCE_DIR}/../include
5-
${CMAKE_CURRENT_SOURCE_DIR}/../subprojects/catch
6-
${CMAKE_CURRENT_SOURCE_DIR}
7-
)
3+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
84

95
file(GLOB srcs *.cpp)
106

File renamed without changes.

tests/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030

3131
#include <DSPatch.h>
3232

33-
#include <catch.hpp>
33+
#include <catch/catch.hpp>
3434

3535
#include "components/Adder.h"
3636
#include "components/BranchSyncProbe.h"

tests/meson.build

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Configure catch
2-
3-
catch = subproject('catch')
4-
catch_dep = catch.get_variable('catch_dep')
5-
61
# Configure tests
72

83
dspatch_tests_src = [
@@ -16,7 +11,7 @@ dspatch_tests = executable(
1611
format_first,
1712
dspatch_tests_src,
1813
include_directories: dspatch_tests_inc,
19-
dependencies: [dspatch_dep, catch_dep]
14+
dependencies: dspatch_dep
2015
)
2116

2217
# Add code coverage

tutorial/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
project(DSPatchTutorial)
22

3-
include_directories(
4-
${CMAKE_CURRENT_SOURCE_DIR}/../include
5-
${CMAKE_CURRENT_SOURCE_DIR}
6-
)
3+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
74

85
file(GLOB srcs *.cpp)
96

0 commit comments

Comments
 (0)