Revision: 7462
http://playerstage.svn.sourceforge.net/playerstage/?rev=7462&view=rev
Author: natepak
Date: 2009-03-11 20:22:49 +0000 (Wed, 11 Mar 2009)
Log Message:
-----------
Added simple pkgconfig
Modified Paths:
--------------
code/websim/CMakeLists.txt
Added Paths:
-----------
code/websim/pkgconfig.cmake
Modified: code/websim/CMakeLists.txt
===================================================================
--- code/websim/CMakeLists.txt 2009-03-11 16:19:22 UTC (rev 7461)
+++ code/websim/CMakeLists.txt 2009-03-11 20:22:49 UTC (rev 7462)
@@ -1,5 +1,27 @@
project(WebSim)
+###############################################################################
+# WEBSIM_MAKE_PKGCONFIG
+# Make a pkg-config file for a library
+MACRO (WEBSIM_MAKE_PKGCONFIG _name _desc _extDeps _intDeps _cFlags _libFlags)
+ SET (PKG_NAME ${_name})
+ SET (PKG_DESC ${_desc})
+ SET (PKG_CFLAGS ${_cFlags})
+ SET (PKG_LIBFLAGS ${_libFlags})
+ SET (PKG_EXTERNAL_DEPS ${_extDeps})
+ SET (PKG_INTERNAL_DEPS "")
+ IF (${_intDeps})
+ FOREACH (A ${_intDeps})
+ SET (PKG_INTERNAL_DEPS "${PKG_INTERNAL_DEPS} -l${A}")
+ ENDFOREACH (A ${_intDeps})
+ ENDIF (${_intDeps})
+
+ CONFIGURE_FILE (pkgconfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/${_name}.pc
@ONLY)
+ INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/${_name}.pc DESTINATION
lib/pkgconfig/ COMPONENT pkgconfig)
+ENDMACRO (WEBSIM_MAKE_PKGCONFIG)
+
+WEBSIM_MAKE_PKGCONFIG("websim" "Websim library" "glib-2.0" "" "" "")
+
add_definitions(-g -Wall)
cmake_minimum_required( VERSION 2.4 FATAL_ERROR )
if(COMMAND cmake_policy)
@@ -102,3 +124,5 @@
"./configure --prefix=${PROJECT_BINARY_DIR}/gtest"
"make"
"make install")
+
+
Added: code/websim/pkgconfig.cmake
===================================================================
--- code/websim/pkgconfig.cmake (rev 0)
+++ code/websim/pkgconfig.cmake 2009-03-11 20:22:49 UTC (rev 7462)
@@ -0,0 +1,12 @@
+# This file was generated by CMake for @PROJECT_NAME@ library @PKG_NAME@
+pref...@cmake_install_prefix@
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: @PKG_NAME@
+Description: @PKG_DESC@
+Version: @WEBSIM_VERSION@
+Requires: @PKG_EXTERNAL_DEPS@
+Libs: -L${libdir} -...@pkg_name@ @PKG_LIBFLAGS@ @PKG_INTERNAL_DEPS@
+Cflags: -I${includedir}/websim @PKG_CFLAGS@
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit