Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s4u.hpp: add a missing include file
[simgrid.git] / tools / cmake / Distrib.cmake
index 5a0fc10..1938883 100644 (file)
@@ -64,10 +64,15 @@ if(enable_java)
       RENAME simgrid.jar)
 endif()
 
+# pkg-config files
+configure_file("${CMAKE_HOME_DIRECTORY}/tools/pkg-config/simgrid.pc.in"
+  "${PROJECT_BINARY_DIR}/simgrid.pc" @ONLY)
+install(FILES "${PROJECT_BINARY_DIR}/simgrid.pc" DESTINATION lib/pkgconfig/)
+
 # include files
 foreach(file ${headers_to_install}  ${generated_headers_to_install})
   get_filename_component(location ${file} PATH)
-  string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}" "" location "${location}")
+  string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" location "${location}")
   install(FILES ${file} DESTINATION ${location})
 endforeach()