[opengtl-commits] [531] add a GTLCore.pc file to find the GTLCore library |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 531
Author: cyrille
Date: 2008-12-09 19:58:02 +0100 (Tue, 09 Dec 2008)
Log Message:
-----------
add a GTLCore.pc file to find the GTLCore library
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/CMakeLists.txt
Added Paths:
-----------
trunk/OpenGTL/OpenGTL/GTLCore/GTLCore.pc.cmake
Modified: trunk/OpenGTL/OpenGTL/GTLCore/CMakeLists.txt
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/CMakeLists.txt 2008-12-07 22:19:39 UTC (rev 530)
+++ trunk/OpenGTL/OpenGTL/GTLCore/CMakeLists.txt 2008-12-09 18:58:02 UTC (rev 531)
@@ -85,3 +85,8 @@
install(TARGETS GTLCore DESTINATION ${LIB_INSTALL_DIR} )
install( FILES Parameter.h Function.h Array.h Buffer.h ErrorMessage.h PixelDescription.h Region.h RegionF.h ScopedName.h String.h Type.h Value.h Version.h Macros.h AbstractImage.h BufferImage.h Image.h DESTINATION ${INCLUDE_INSTALL_DIR}/GTLCore )
install( FILES Metadata/ParameterEntry.h Metadata/Entry.h Metadata/Group.h Metadata/TextEntry.h DESTINATION ${INCLUDE_INSTALL_DIR}/GTLCore/Metadata )
+
+# Create and install pc file
+configure_file("GTLCore.pc.cmake" "${CMAKE_CURRENT_BINARY_DIR}/GTLCore.pc" @ONLY)
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/GTLCore.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
Added: trunk/OpenGTL/OpenGTL/GTLCore/GTLCore.pc.cmake
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/GTLCore.pc.cmake (rev 0)
+++ trunk/OpenGTL/OpenGTL/GTLCore/GTLCore.pc.cmake 2008-12-09 18:58:02 UTC (rev 531)
@@ -0,0 +1,11 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=@CMAKE_INSTALL_PREFIX@
+libdir=@LIB_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@
+
+Name: GTLCore
+Description: Graphics Transformation Languages Core Library
+Version: @OPENGTL_VERSION@
+Requires:
+Libs: -L${libdir} -lGTLCore
+Cflags: -I${includedir}