diff options
author | Alec Thomas <alec@swapoff.org> | 2016-10-24 10:55:22 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 10:55:22 +1100 |
commit | b2c5bc6f89263ae0ba40dc75cd9121e277f71253 (patch) | |
tree | 12b21ca620958a5e5f4da6fcee68ec324c45a25b | |
parent | 018d922f8b21efc430587ec20ed339e547347267 (diff) | |
parent | f58f553e9804fa9422de79f5e1607d8e366de7be (diff) |
Merge pull request #156 from asmw/cmake_includes
Set build_interface directories for integrated builds
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fee538..07728dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,11 +143,15 @@ if (ENTITYX_BUILD_SHARED) VERSION ${ENTITYX_VERSION} SOVERSION ${ENTITYX_MAJOR_VERSION} FOLDER entityx) - set(install_libs entityx_shared) + set(install_libs entityx_shared) + set_property(TARGET entityx_shared APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) else() add_library(entityx STATIC ${sources}) set_target_properties(entityx PROPERTIES DEBUG_POSTFIX -d FOLDER entityx) set(install_libs entityx) + set_property(TARGET entityx APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) endif (ENTITYX_BUILD_SHARED) if (ENTITYX_BUILD_TESTING) |