vcpkg/ports/raylib/vcpkg-cmake-wrapper.cmake
NancyLi1013 d4ba955db2
[raylib] Fix usage (#15935)
* [raylib] Fix usage

* Update ports/raylib/CONTROL

* Update versions

* Update versions/r-/raylib.json
2021-02-01 19:26:35 -08:00

12 lines
594 B
CMake

include(SelectLibraryConfigurations)
find_path(RAYLIB_INCLUDE_DIR raylib.h)
find_library(RAYLIB_LIBRARY_DEBUG NAMES raylib libraylib raylib_static 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 raylib_static 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})