mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 18:49:00 +08:00
d112d7cc06
* activated libraries generic_128 and ryu_printf * updated version for ryu * Fixed port version * updated port version info for ryu * removed generic_128 again, because it doesn't build under Windows * updated version info * - replaced CONTROL file with manifest file - corrected version string and port version * updated versions with "vcpkg x-add-version ryu" * corrected formatting of ryu manifest file * ran vcpkg --x-add-version again
22 lines
1.2 KiB
CMake
22 lines
1.2 KiB
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)
|
|
|
|
if (CMAKE_HOST_WIN32)
|
|
set_library_target("RYU" "ryu" "${ROOT}/debug/lib/ryu.lib" "${ROOT}/lib/ryu.lib" "${ROOT}/include/")
|
|
set_library_target("RYU" "ryu_printf" "${ROOT}/debug/lib/ryu_printf.lib" "${ROOT}/lib/ryu_printf.lib" "${ROOT}/include/")
|
|
else()
|
|
set_library_target("RYU" "ryu" "${ROOT}/debug/lib/libryu.a" "${ROOT}/lib/libryu.a" "${ROOT}/include/")
|
|
set_library_target("RYU" "ryu_printf" "${ROOT}/debug/lib/libryu_printf.a" "${ROOT}/lib/libryu_printf.a" "${ROOT}/include/")
|
|
endif() |