Permalink
Browse files

added support for building and installing stage.pc

  • Loading branch information...
1 parent 89a88fb commit ba19828933a3d55b5a17ea3b464d5b6ac5c8c613 gerkey committed Jul 7, 2008
Showing with 5 additions and 2 deletions.
  1. +3 −0 CMakeLists.txt
  2. +1 −1 libstage/CMakeLists.txt
  3. +1 −1 stage.pc.in
View
@@ -24,6 +24,9 @@ ADD_DEFINITIONS( -DPROJECT=\\\"${PROJECT_NAME}\\\"
-DINSTALL_PREFIX=\\\"${CMAKE_INSTALL_PREFIX}\\\"
-DVERSION=\\\"${VERSION}\\\" )
+# Create the pkgconfig file
+CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/stage.pc.in ${CMAKE_CURRENT_BINARY_DIR}/stage.pc @ONLY)
+INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/stage.pc DESTINATION lib/pkgconfig/)
# find the easy modules
include(FindPkgConfig)
View
@@ -73,5 +73,5 @@ INSTALL(TARGETS stagebinary stage
LIBRARY DESTINATION lib
)
-INSTALL(FILES stage.hh option.hh
+INSTALL(FILES stage.hh option.hh worldfile.hh
DESTINATION include/${PROJECT_NAME}-${V_MAJOR}.${V_MINOR})
View
@@ -1,4 +1,4 @@
-prefix=@prefix@
+prefix=@CMAKE_INSTALL_PREFIX@
Name: stage
Description: Stage robot simulation C library and Player plugin - part of the Player/Stage Project

0 comments on commit ba19828

Please sign in to comment.