From fa0029ca2bb34e49aface87e16073e17db856745 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Mon, 23 Aug 2010 11:43:15 +0000 Subject: [PATCH] [3051124] cmake pkg-config assimp.pc file gen; Thanks to Filipe Vieira for the patch. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@794 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- CMakeLists.txt | 4 ++++ assimp.pc.in | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 assimp.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f3cf19ba..95816bbf1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ cmake_minimum_required( VERSION 2.6 ) PROJECT( Assimp ) +SET ( PROJECT_VERSION "1.1" ) INCLUDE_DIRECTORIES( include ) @@ -20,6 +21,9 @@ SET( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH SET( BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Path the tool executables are installed to." ) +CONFIGURE_FILE (assimp.pc.in assimp.pc @ONLY ) +INSTALL( FILES assimp.pc.in DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/assimp.pc ) + # Libs ADD_SUBDIRECTORY( code/ ) IF ( WIN32 ) diff --git a/assimp.pc.in b/assimp.pc.in new file mode 100644 index 000000000..c9d2828c4 --- /dev/null +++ b/assimp.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@BIN_INSTALL_DIR@ +libdir=@LIB_INSTALL_DIR@ +includedir=@INCLUDE_INSTALL_DIR@/assimp + +Name: @CMAKE_PROJECT_NAME@ +Description: Import various well-known 3D model formats in an uniform manner. +Version: @PROJECT_VERSION@ +Libs: -L${libdir} -lassimp +Cflags: -I${includedir}