diff options
author | Alec Thomas <alec@swapoff.org> | 2014-01-22 21:33:41 -0800 |
---|---|---|
committer | Alec Thomas <alec@swapoff.org> | 2014-01-22 21:33:41 -0800 |
commit | 851b198c999a0b11996b02a5e2192e517e161276 (patch) | |
tree | d4e4e661c0fb650794234b06466e41938f1d35c1 | |
parent | 5bd2040e92c7632018cc8bbe111e1afbdbe255ef (diff) | |
parent | 799f95e382ae59275d24ed3724e03ad1d7d668f5 (diff) |
Merge pull request #26 from hovatterz/pkg-config
Add pkg-config source file
-rw-r--r-- | CMakeLists.txt | 15 | ||||
-rw-r--r-- | entityx.pc.in | 6 |
2 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index af6d17c..fc89cd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 index 0000000..ebbf32a --- /dev/null +++ b/entityx.pc.in @@ -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@ |