From 0b860bb5dd6d2007db605291d239a6a9d41f57d1 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 23 Sep 2024 07:36:16 -0500 Subject: Installable library. --- cmake/FudConfig.cmake.in | 8 ++++++++ cmake/fud-config.cmake | 1 + cmake/fud.pc.in | 10 ++++++++++ cmake/warnings.cmake | 1 - 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 cmake/FudConfig.cmake.in create mode 100644 cmake/fud-config.cmake create mode 100644 cmake/fud.pc.in (limited to 'cmake') diff --git a/cmake/FudConfig.cmake.in b/cmake/FudConfig.cmake.in new file mode 100644 index 0000000..9d08140 --- /dev/null +++ b/cmake/FudConfig.cmake.in @@ -0,0 +1,8 @@ +set(FOO_VERSION x.y.z) +# ... +@PACKAGE_INIT@ +# ... +set_and_check(FUD_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@") +set_and_check(FUD_SYSCONFIG_DIR "@PACKAGE_SYSCONFIG_INSTALL_DIR@") + +check_required_components(Fud) diff --git a/cmake/fud-config.cmake b/cmake/fud-config.cmake new file mode 100644 index 0000000..35b1014 --- /dev/null +++ b/cmake/fud-config.cmake @@ -0,0 +1 @@ +include(${CMAKE_CURRENT_LIST_DIR}/fudTargets.cmake) diff --git a/cmake/fud.pc.in b/cmake/fud.pc.in new file mode 100644 index 0000000..d7359bc --- /dev/null +++ b/cmake/fud.pc.in @@ -0,0 +1,10 @@ +prefix=${pcfiledir}/../.. +exec_prefix=${prefix} +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ +libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ + +Name: @PROJECT_NAME@ +Description: Fear Unknown Doubt +Version: @PROJECT_VERSION@ +Libs: -L${libdir} -lhouse +Cflags: -I${includedir} diff --git a/cmake/warnings.cmake b/cmake/warnings.cmake index 1bddeb8..03d7a32 100644 --- a/cmake/warnings.cmake +++ b/cmake/warnings.cmake @@ -26,7 +26,6 @@ set(FUD_WARNINGS -Wmissing-field-initializers -Wimport -Winit-self - -Winline -Wchar-subscripts -Wcomment -Wconversion -- cgit v1.2.3