mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 09:38:06 +08:00
18 lines
869 B
CMake
18 lines
869 B
CMake
|
|
||
|
FUNCTION(SET_LIBRARY_TARGET NAMESPACE LIB_NAME DEBUG_LIB_FILE_NAME RELEASE_LIB_FILE_NAME INCLUDE_DIR)
|
||
|
ADD_LIBRARY(${NAMESPACE}::${LIB_NAME} STATIC IMPORTED)
|
||
|
SET_TARGET_PROPERTIES(${NAMESPACE}::${LIB_NAME} PROPERTIES
|
||
|
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
|
||
|
IMPORTED_LOCATION_RELEASE "${RELEASE_LIB_FILE_NAME}"
|
||
|
IMPORTED_LOCATION_DEBUG "${DEBUG_LIB_FILE_NAME}"
|
||
|
INTERFACE_INCLUDE_DIRECTORIES "${INCLUDE_DIR}"
|
||
|
)
|
||
|
SET(${NAMESPACE}_${LIB_NAME}_FOUND 1)
|
||
|
ENDFUNCTION()
|
||
|
|
||
|
GET_FILENAME_COMPONENT(ROOT "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||
|
GET_FILENAME_COMPONENT(ROOT "${ROOT}" PATH)
|
||
|
GET_FILENAME_COMPONENT(ROOT "${ROOT}" PATH)
|
||
|
|
||
|
SET_LIBRARY_TARGET("HDFS" "hdfs3" "${ROOT}/debug/lib/libhdfs3.a" "${ROOT}/lib/libhdfs3.a" "${ROOT}/include/hdfs")
|