From: Stefan Huber Date: Wed, 26 Nov 2014 23:25:13 +0000 (+0100) Subject: pkg: remove version from include/libstick-0.1/ X-Git-Tag: v0.1^0 X-Git-Url: https://git.sthu.org/?p=libstick.git;a=commitdiff_plain;h=44f4198b0d8076203f7247d3183037d5179b11d0 pkg: remove version from include/libstick-0.1/ Having the version number explicitly in the source tree in include/libstick-0.1 is bad: We do not want to change include directives when we change the version, but we only want to change PACKAGE_VERSION. Also, we want to avoid name clashes for header filenames. Hence, we put the headers in a subdir libstick/ in include/ and install libstick/ to include/libstick-${PACKAGE_VERSION}/, which is returned by pkg-config for cflags. --- diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index caf6524..abe8362 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -1 +1 @@ -install (DIRECTORY ./ DESTINATION include FILES_MATCHING PATTERN "*.h") +install (DIRECTORY ./ DESTINATION include/libstick-${PACKAGE_VERSION} FILES_MATCHING PATTERN "*.h") diff --git a/include/libstick-0.1/booleanmatrix.h b/include/libstick/booleanmatrix.h similarity index 100% rename from include/libstick-0.1/booleanmatrix.h rename to include/libstick/booleanmatrix.h diff --git a/include/libstick-0.1/booleanvector.h b/include/libstick/booleanvector.h similarity index 100% rename from include/libstick-0.1/booleanvector.h rename to include/libstick/booleanvector.h diff --git a/include/libstick-0.1/image.h b/include/libstick/image.h similarity index 100% rename from include/libstick-0.1/image.h rename to include/libstick/image.h diff --git a/include/libstick-0.1/persistence.h b/include/libstick/persistence.h similarity index 100% rename from include/libstick-0.1/persistence.h rename to include/libstick/persistence.h diff --git a/include/libstick-0.1/simplicialcomplex.h b/include/libstick/simplicialcomplex.h similarity index 100% rename from include/libstick-0.1/simplicialcomplex.h rename to include/libstick/simplicialcomplex.h diff --git a/tests/booleanmatrix.h b/tests/booleanmatrix.h index 9e33ee0..8ab7127 100644 --- a/tests/booleanmatrix.h +++ b/tests/booleanmatrix.h @@ -4,7 +4,7 @@ #include #include -#include +#include using namespace libstick; diff --git a/tests/booleanvector.h b/tests/booleanvector.h index ebf6b9f..c1ba829 100644 --- a/tests/booleanvector.h +++ b/tests/booleanvector.h @@ -4,7 +4,7 @@ #include #include -#include +#include using namespace libstick; diff --git a/tests/image.h b/tests/image.h index 8633a56..a4d7149 100644 --- a/tests/image.h +++ b/tests/image.h @@ -4,7 +4,7 @@ #include #include -#include +#include #include #include diff --git a/tests/persistence.h b/tests/persistence.h index 4412d33..1028810 100644 --- a/tests/persistence.h +++ b/tests/persistence.h @@ -4,7 +4,7 @@ #include #include -#include +#include using namespace libstick; diff --git a/tests/simplicialcomplex.h b/tests/simplicialcomplex.h index 6cab051..da0dfb5 100644 --- a/tests/simplicialcomplex.h +++ b/tests/simplicialcomplex.h @@ -4,7 +4,7 @@ #include #include -#include +#include using namespace libstick;