hlrc / client / cpp / hlrc_clientConfig.cmake.in @ 84534fbf
History | View | Annotate | Download (889 Bytes)
1 | 0c286af0 | Simon Schulz | # ### HLRC CLIENT cpp ### |
---|---|---|---|
2 | # =============================== |
||
3 | # |
||
4 | # Sets required variables for finding the hlrc client library: |
||
5 | # |
||
6 | # HLRC_CLIENT_FOUND |
||
7 | # HLRC_CLIENT_INCLUDE_DIRS |
||
8 | # HLRC_CLIENT_LIBRARY_DIRS |
||
9 | # HLRC_CLIENT_LIBRARIES |
||
10 | # HLRC_CLIENT_VERSION |
||
11 | # |
||
12 | # Example: |
||
13 | # find_package(hlrc_client 0.1) |
||
14 | # |
||
15 | # ############################################################################### |
||
16 | |||
17 | INCLUDE(FindPkgConfig) |
||
18 | |||
19 | GET_FILENAME_COMPONENT(CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) |
||
20 | |||
21 | SET(HLRC_CLIENT_FOUND TRUE) |
||
22 | SET(HLRC_CLIENT_INCLUDE_DIRS "${CONFIG_DIR}/../../include") |
||
23 | SET(HLRC_CLIENT_LIBRARY_DIRS "${CONFIG_DIR}/../../lib") |
||
24 | SET(HLRC_CLIENT_VERSION "@HLRC_CLIENT_VERSION@") |
||
25 | SET(HLRC_CLIENT_LIBRARIES "${CONFIG_DIR}/../../lib/@CMAKE_SHARED_LIBRARY_PREFIX@@HLRC_CLIENT_LIBNAME@@CMAKE_SHARED_LIBRARY_SUFFIX@") |
||
26 | |||
27 | # TODO: find dependencies here and append their include dirs to HLRC_CLIENT_INCLUDE_DIRS |