head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.04.14.12.46.17; author kikadf; state Exp; branches; next ; commitid 5UxBQW1T705FsVBG; desc @@ 1.1 log @ chrono-date: new package A date and time library based on the C++11/14/17 header. @ text @$NetBSD$ * Install date.pc for pkg-config from Arch Linux --- CMakeLists.txt.orig 2025-05-28 17:53:02.000000000 +0000 +++ CMakeLists.txt @@@@ -186,6 +186,15 @@@@ if( BUILD_TZ_LIB ) endif( ) endif( ) +if ( BUILD_TZ_LIB ) + # Cflags: -I${includedir} @@TZ_COMPILE_DEFINITIONS@@ + set( TZ_COMPILE_DEFINITIONS "$,-D$, -D>,>" ) + configure_file(date.pc.in date.pc.cf @@ONLY) + file( GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/date.pc" + INPUT "${CMAKE_CURRENT_BINARY_DIR}/date.pc.cf" ) + +endif( ) + #[===================================================================[ installation #]===================================================================] @@@@ -231,6 +240,12 @@@@ if( ENABLE_DATE_INSTALL ) DESTINATION ${CONFIG_LOC}) endif( ) +if ( BUILD_TZ_LIB ) + install( + FILES ${CMAKE_BINARY_DIR}/date.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +endif( ) + #[===================================================================[ testing #]===================================================================] @