2020-08-11 00:33:50 +08:00
|
|
|
include(SelectLibraryConfigurations)
|
2019-05-20 08:43:29 +08:00
|
|
|
|
2020-08-11 00:33:50 +08:00
|
|
|
find_path(RAYLIB_INCLUDE_DIR raylib.h)
|
2019-05-20 08:43:29 +08:00
|
|
|
|
2021-02-02 11:26:35 +08:00
|
|
|
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)
|
2019-05-20 08:43:29 +08:00
|
|
|
|
2020-08-11 00:33:50 +08:00
|
|
|
select_library_configurations(RAYLIB)
|
2019-05-20 08:43:29 +08:00
|
|
|
|
2020-08-11 00:33:50 +08:00
|
|
|
set(RAYLIB_INCLUDE_DIRS ${RAYLIB_INCLUDE_DIR})
|
|
|
|
set(RAYLIB_LIBRARIES ${RAYLIB_LIBRARY})
|