-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_pkgconfig_file_vars.cmake
30 lines (30 loc) · 1.79 KB
/
setup_pkgconfig_file_vars.cmake
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
macro(setup_pkgconfig_file_vars)
set(PKGCONFIG_FILE_PREFIX ${CMAKE_INSTALL_PREFIX})
set(PKGCONFIG_FILE_EXEC_PREFIX ${PKGCONFIG_FILE_PREFIX})
set(PKGCONFIG_FILE_BIN_DIR ${PKGCONFIG_FILE_EXEC_PREFIX}/bin)
set(PKGCONFIG_FILE_LIB_DIR ${PKGCONFIG_FILE_EXEC_PREFIX}/lib)
if (WIN32)
set(PKGCONFIG_FILE_SHARED_LIB_DIR ${PKGCONFIG_FILE_EXEC_PREFIX}/bin)
else()
set(PKGCONFIG_FILE_SHARED_LIB_DIR ${PKGCONFIG_FILE_EXEC_PREFIX}/lib)
endif()
set(PKGCONFIG_FILE_INCLUDE_DIR ${PKGCONFIG_FILE_PREFIX}/include)
set(PKGCONFIG_FILE_DATA_ROOT_DIR ${PKGCONFIG_FILE_PREFIX}/share)
set(PKGCONFIG_FILE_DATA_DIR ${PKGCONFIG_FILE_DATA_ROOT_DIR})
set(PKGCONFIG_FILE_MAN_DIR ${PKGCONFIG_FILE_DATA_ROOT_DIR}/man)
set(PKGCONFIG_FILE_INFO_DIR ${PKGCONFIG_FILE_DATA_ROOT_DIR}/info)
set(PKGCONFIG_FILE_PKG_CONFIG_DIR ${PKGCONFIG_FILE_DATA_ROOT_DIR}/pkgconfig)
if(CMAKE_VERBOSE_MAKEFILE)
message(STATUS "PKGCONFIG PREFIX : ${PKGCONFIG_FILE_PREFIX}")
message(STATUS "PKGCONFIG EXEC_PREFIX : ${PKGCONFIG_FILE_EXEC_PREFIX}")
message(STATUS "PKGCONFIG BIN_DIR : ${PKGCONFIG_FILE_BIN_DIR}")
message(STATUS "PKGCONFIG LIB_DIR : ${PKGCONFIG_FILE_LIB_DIR}")
message(STATUS "PKGCONFIG SHARED_LIB_DIR: ${PKGCONFIG_FILE_SHARED_LIB_DIR}")
message(STATUS "PKGCONFIG INCLUDE_DIR : ${PKGCONFIG_FILE_INCLUDE_DIR}")
message(STATUS "PKGCONFIG DATA_ROOT_DIR : ${PKGCONFIG_FILE_DATA_ROOT_DIR}")
message(STATUS "PKGCONFIG DATA_DIR : ${PKGCONFIG_FILE_DATA_DIR}")
message(STATUS "PKGCONFIG MAN_DIR : ${PKGCONFIG_FILE_MAN_DIR}")
message(STATUS "PKGCONFIG INFO_DIR : ${PKGCONFIG_FILE_INFO_DIR}")
message(STATUS "PKGCONFIG PKG_CONFIG_DIR: ${PKGCONFIG_FILE_PKG_CONFIG_DIR}")
endif()
endmacro()