[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
pull/1/head
aramis_acg 2010-08-23 11:43:15 +00:00
parent dbcc1902ed
commit fa0029ca2b
2 changed files with 14 additions and 0 deletions

View File

@ -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 )

10
assimp.pc.in 100644
View File

@ -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}