]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
Add pkg-config source file
authorZack Hovatter <zackhovatter@gmail.com>
Sun, 19 Jan 2014 23:40:58 +0000 (17:40 -0600)
committerZack Hovatter <zackhovatter@gmail.com>
Sun, 19 Jan 2014 23:40:58 +0000 (17:40 -0600)
CMakeLists.txt
entityx.pc.in [new file with mode: 0644]

index af6d17ca6c7febee6a2023acd72a88c4e61ac6dd..fc89cd377a78d391bf69d33fd2ba819fd1b41528 100644 (file)
@@ -136,6 +136,21 @@ configure_file(
     ${CMAKE_CURRENT_SOURCE_DIR}/entityx/config.h
 )
 
+
+if (NOT WINDOWS OR CYGWIN)
+    set(entityx_libs -lentityx)
+
+    configure_file(
+        ${CMAKE_CURRENT_SOURCE_DIR}/entityx.pc.in
+        ${CMAKE_CURRENT_BINARY_DIR}/entityx.pc
+        )
+
+    install(
+        FILES ${CMAKE_CURRENT_BINARY_DIR}/entityx.pc
+        DESTINATION "lib/pkgconfig"
+        )
+endif()
+
 install(
     DIRECTORY "entityx"
     DESTINATION "include"
diff --git a/entityx.pc.in b/entityx.pc.in
new file mode 100644 (file)
index 0000000..ebbf32a
--- /dev/null
@@ -0,0 +1,6 @@
+# entityx pkg-config source file
+
+Name: entityx
+Description: EntityX is an EC system that uses C++11 features to provide type-safe component management, event delivery, etc.
+Version: @ENTITYX_VERSION@
+Libs: @entityx_libs@