CMakeLists.txt
changeset 1338 aae614cdd005
parent 1318 5488d36ff8b5
child 1391 06aa5aca8518
--- a/CMakeLists.txt	Fri Aug 23 23:41:35 2013 -0400
+++ b/CMakeLists.txt	Wed Nov 13 00:38:35 2013 -0500
@@ -358,6 +358,18 @@
     )
 endif()
 
+if(UNIX AND NOT APPLE)
+    configure_file(
+        "extras/physfs.pc.in"
+        "extras/physfs.pc"
+        @ONLY
+    )
+    install(
+        FILES "${CMAKE_CURRENT_BINARY_DIR}/extras/physfs.pc"
+        DESTINATION "lib/pkgconfig"
+    )
+endif()
+
 macro(message_bool_option _NAME _VALUE)
     if(${_VALUE})
         message(STATUS "  ${_NAME}: enabled")