-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibmysmartgridConfig.cmake.in
43 lines (34 loc) · 1.76 KB
/
libmysmartgridConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- mode: cmake; -*-
# libmysmartgridConfig.cmake is generated by CMake from libmysmartgrid/libmysmartgridConfig.cmake.in
# set the libmysmartgrid version number
set(@UPPER_PROJECT_NAME@_VERSION_MAJOR @V_MAJOR@)
set(@UPPER_PROJECT_NAME@_VERSION_MINOR @V_MINOR@)
set(@UPPER_PROJECT_NAME@_VERSION_PATCH @V_PATCH@)
set(@UPPER_PROJECT_NAME@_VERSION "${@UPPER_PROJECT_NAME@_VERSION_MAJOR}.${@UPPER_PROJECT_NAME@_VERSION_MINOR}.${@UPPER_PROJECT_NAME@_VERSION_PATCH}")
# set the directories
if(NOT @UPPER_PROJECT_NAME@_INSTALL_DIR)
set(@UPPER_PROJECT_NAME@_INSTALL_DIR "@CMAKE_INSTALL_PREFIX@")
endif(NOT @UPPER_PROJECT_NAME@_INSTALL_DIR)
get_filename_component(_currentDir "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_libmysmartgrid_base_dir "${_currentDir}" PATH)
get_filename_component(_libmysmartgrid_base_dir "${_libmysmartgrid_base_dir}" PATH)
set(@UPPER_PROJECT_NAME@_INCLUDE_DIR "${_libmysmartgrid_base_dir}/include")
set(@UPPER_PROJECT_NAME@_INCLUDE_DIRS "${LIBMYSMARTGRID_INCLUDE_DIR}" "@CMAKE_DIR@"
"@CURL_INCLUDE_DIR@" "@JSONCPP_INCLUDE_DIR@" "@OPENSSL_INCLUDE_DIR@")
set(@UPPER_PROJECT_NAME@_LIB_DIR "@CMAKE_LIB_DIR@")
set(@UPPER_PROJECT_NAME@_LIBRARIES "@CURL_LIBRARIES@"
"@JSONCPP_LIBRARY@"
"@OPENSSL_CRYPTO_LIBRARY@"
dl
)
set(@UPPER_PROJECT_NAME@_CONFIG_DIR "@CMAKE_CONFIG_DIR@")
# the exports file exports
set(@UPPER_PROJECT_NAME@_TARGET_PREFIX @LIBLIBKLIO_TARGET_PREFIX@)
# configuration settings
# Make sure to load the exported targets only once
# For the rest of this script it doesn't matter that much
if(NOT TARGET Libmysmartgrid__kresources)
get_filename_component(_currentDir "${CMAKE_CURRENT_LIST_FILE}" PATH)
include("${_currentDir}/@PROJECT_NAME@Targets.cmake")
endif(NOT TARGET Libmysmartgrid__kresources)
# EOF