From: Zack Hovatter Date: Sun, 19 Jan 2014 23:40:58 +0000 (-0600) Subject: Add pkg-config source file X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=799f95e382ae59275d24ed3724e03ad1d7d668f5;p=clyne%2Fentityx.git Add pkg-config source file --- 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@