-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#4499) raylib: use external glfw + fix CMake imported target
* use external glfw * explicitly set several CMake options * explicit cpp_info.libs * explicit pkg_config * fix CMake imported target * use C test_package * define USE_LIBTYPE_SHARED if msvc and shared * remove transitive system dependencies removed system libs were coming from glfw and are not direct dependencies of raylib * remove CUSTOMIZE_BUILD CMake option not available in raylib 3.5.0 * fix windows and external glfw
- Loading branch information
Showing
3 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package CXX) | ||
project(test_package C) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
|
||
find_package(raylib REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME} raylib::raylib) | ||
add_executable(${PROJECT_NAME} test_package.c) | ||
target_link_libraries(${PROJECT_NAME} raylib) |
6 changes: 3 additions & 3 deletions
6
.../raylib/all/test_package/test_package.cpp → ...es/raylib/all/test_package/test_package.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#include <iostream> | ||
|
||
#include "raylib.h" | ||
|
||
#include <stdio.h> | ||
|
||
int main(void) { | ||
Vector3 center = {0, 0, 0}; | ||
float r = 1.0; | ||
if (CheckCollisionSpheres(center, r, center, r)) { | ||
std::cout << "unit sphere collides with itself!" << std::endl; | ||
printf("unit sphere collides with itself!\n"); | ||
} | ||
return 0; | ||
} |