forked from hyperrealm/libconfig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Locating libconfig from CMake-based projects
Configuration files for CMake are provided to simplify locating libconfig from within project that use CMake as their build system. Separate configuration files are provided for C and C++ builds. In a CMakeLists.txt file, use the following commands to locate libconfig: - To locate the library, use either find_package(libconfig) or find_package(libconfig++) - The include directories are available as variables LIBCONFIG_INCLUDE_DIRS and LIBCONFIG++_INCLUDE_DIRS respectively, and can be used like this: include_directories(${LIBCONFIG++_INCLUDE_DIRS}) - Link to libconfig using variables LIBCONFIG_LIBRARIES and LIBCONFIG++_LIBRARIES respectively, by writing: target_link_libraries(${PROJECT_NAME} ${LIBCONFIG++_LIBRARIES} )
- Loading branch information
Showing
10 changed files
with
116 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
2015-10-14 Thomas Fischer <[email protected]> | ||
|
||
* configure, configure.ac, debian/libconfig++9-dev.install, | ||
debian/libconfig9-dev.install, lib/Makefile.am, lib/Makefile.in, | ||
lib/libconfig++Config.cmake.in, lib/libconfigConfig.cmake.in, | ||
libconfig.spec.in - locating libconfig in CMake-based projects | ||
|
||
2015-08-14 Mark Lindner <markl@neuromancer> | ||
|
||
* lib/wincompat.h - Fixed Windows portability issue | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(LIBCONFIG++_FOUND 1) | ||
set(LIBCONFIG++_VERSION "1.5") | ||
set(LIBCONFIG++_LIBRARIES "config++") | ||
set(LIBCONFIG++_LIBRARY_DIRS "@libdir@") | ||
set(LIBCONFIG++_LDFLAGS "") | ||
set(LIBCONFIG++_INCLUDE_DIRS "@includedir@") | ||
set(LIBCONFIG++_CFLAGS "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(LIBCONFIG_FOUND 1) | ||
set(LIBCONFIG_VERSION "1.5") | ||
set(LIBCONFIG_LIBRARIES "config") | ||
set(LIBCONFIG_LIBRARY_DIRS "@libdir@") | ||
set(LIBCONFIG_LDFLAGS "") | ||
set(LIBCONFIG_INCLUDE_DIRS "@includedir@") | ||
set(LIBCONFIG_CFLAGS "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,12 +65,16 @@ ldconfig | |
%{_infodir} | ||
%{_includedir} | ||
%{_libdir}/pkgconfig | ||
%{_libdir}/cmake/libconfig | ||
%{_libdir}/cmake/libconfig++ | ||
%{_libdir}/%{name}.a | ||
%{_libdir}/%{name}.la | ||
%{_libdir}/%{name}++.a | ||
%{_libdir}/%{name}++.la | ||
|
||
%changelog | ||
* Wed Oct 14 2015 Thomas Fischer <[email protected]> 1.5 | ||
- added library directory cmake/libconfig and cmake/libconfig++ | ||
* Wed Aug 19 2007 Deneys S. Maartens <[email protected]> 1.1.3-1 | ||
- create spec file | ||
|
||
|