File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ target_include_directories(cpptoml INTERFACE
4343 $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /include >
4444 $<INSTALL_INTERFACE:include >)
4545
46+ configure_file (
47+ "${PROJECT_SOURCE_DIR} /cpptoml.pc.in"
48+ "${PROJECT_SOURCE_DIR} /cpptoml.pc"
49+ @ONLY)
50+
4651if (LIBDL_LIBRARY)
4752 target_link_libraries (cpptoml INTERFACE ${LIBDL_LIBRARY} )
4853endif ()
@@ -87,6 +92,8 @@ install(FILES
8792 ${CMAKE_CURRENT_BINARY_DIR} /cpptoml/cpptomlConfig.cmake
8893 DESTINATION
8994 lib/cmake/cpptoml)
95+ install (FILES "${PROJECT_SOURCE_DIR} /cpptoml.pc"
96+ DESTINATION "${CMAKE_INSTALL_LIBDIR} /pkgconfig" )
9097
9198export (EXPORT cpptoml-exports
9299 FILE ${CMAKE_CURRENT_BINARY_DIR} /cpptoml/cpptomlTargets.cmake)
Original file line number Diff line number Diff line change 1+ prefix=@CMAKE_INSTALL_PREFIX@
2+ includedir=${prefix}/include
3+
4+ Name: cpptoml
5+ Description: A head-only library for parsing TOML
6+ Version: @cpptoml_VERSION@
7+ Cflags: -I${includedir}
You can’t perform that action at this time.
0 commit comments