Skip to content

Commit

Permalink
Added CMakeLists.txt to dist targets
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperrealm committed Nov 23, 2022
1 parent 92b5bba commit 3ec7c2c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.1)

# Extract version from configure.ac.
set(VERSION_REGEX "^AC_INIT\\(libconfig,[ \t]+([0-9.]+),.*")
set(VERSION_REGEX "^AC_INIT\\(\[libconfig\],[ \t]*\[([0-9.]+)\],.*")
file(STRINGS "configure.ac"
VERSION_STRING REGEX ${VERSION_REGEX})
string(REGEX REPLACE ${VERSION_REGEX} "\\1" VERSION_STRING "${VERSION_STRING}")
Expand Down
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ EXTRA_DIST = \
debian/shlibs \
debian/watch \
libconfig.spec \
contrib
contrib \
CMakeLists.txt

dist-hook:
rm -rf `find $(distdir)/contrib -name .svn`
Expand Down
2 changes: 2 additions & 0 deletions examples/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ SUBDIRS = c
if BUILDCXX
SUBDIRS += c++
endif

EXTRA_DIST = CMakeLists.txt
3 changes: 2 additions & 1 deletion examples/c++/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ LDADD = $(top_builddir)/lib/libconfig++.la
EXTRA_DIST = \
example.cfg invalid.cfg \
*.vcproj \
*.vcxproj
*.vcxproj \
CMakeLists.txt
3 changes: 2 additions & 1 deletion examples/c/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ EXTRA_DIST = \
cfg_includes/*.cfg \
cfg_includes/cfg_subincludes/*.cfg \
*.vcproj \
*.vcxproj
*.vcxproj \
CMakeLists.txt
3 changes: 2 additions & 1 deletion lib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ EXTRA_DIST = \
$(BUILT_SOURCES) \
libconfigcpp.cc libconfig.hh \
*.vcproj \
*.vcxproj
*.vcxproj \
CMakeLists.txt

pkgconfigdir = $(libdir)/pkgconfig

Expand Down
3 changes: 2 additions & 1 deletion tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ EXTRA_DIST = \
tests.vcproj \
tests.vcxproj \
testdata/*.cfg \
testdata/*.txt
testdata/*.txt \
CMakeLists.txt
2 changes: 1 addition & 1 deletion tinytest/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ noinst_LIBRARIES = libtinytest.a

libtinytest_a_SOURCES = tinytest.c tinytest.h

EXTRA_DIST = tinytest.vcproj tinytest.vcxproj
EXTRA_DIST = tinytest.vcproj tinytest.vcxproj CMakeLists.txt

0 comments on commit 3ec7c2c

Please sign in to comment.