mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:28:59 +08:00
6234487442
* [raylib] rm vcpkg-cmake-wrapper.cmake, add hidpi raylib is a CMake-built project which already exports its targets using a custom raylib-config.cmake file, so use that instead. Add a feature to enable support for HiDPI displays. * [raylib] Update vcpkg-cmake-wrapper.cmake * Update ports/raylib/vcpkg-cmake-wrapper.cmake * raylib/CONTROL: Bump Port-Version to 3 Co-authored-by: wangli28 <wangli28@beyondsoft.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
12 lines
566 B
CMake
12 lines
566 B
CMake
include(SelectLibraryConfigurations)
|
|
|
|
find_path(RAYLIB_INCLUDE_DIR raylib.h)
|
|
|
|
find_library(RAYLIB_LIBRARY_DEBUG NAMES raylib libraylib NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED)
|
|
find_library(RAYLIB_LIBRARY_RELEASE NAMES raylib libraylib NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)
|
|
|
|
select_library_configurations(RAYLIB)
|
|
|
|
set(RAYLIB_INCLUDE_DIRS ${RAYLIB_INCLUDE_DIR})
|
|
set(RAYLIB_LIBRARIES ${RAYLIB_LIBRARY})
|