From 01395cc7bf7b80ac05e875dad038f719094e0af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Mon, 17 May 2021 11:52:13 +0200 Subject: [PATCH] rm unwanted cmake instruction (sadly the find package instruction doesn't seems to work with raylib) --- CMakeLists.txt | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a4b4c7cf..16e7c617 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,24 +1,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.11) project(Bomberman) - -FIND_PACKAGE(raylib REQUIRED) -TARGET_LINK_LIBRARIES(target_name raylib) - -if (NOT raylib_FOUND) - INCLUDE(FetchContent) - FetchContent_Declare(raylib URL https://github.com/raysan5/raylib/archive/master.tar.gz) - FetchContent_GetProperties(raylib) - if (NOT raylib_POPULATED) - SET(FETCHCONTENT_QUIET NO) - FetchContent_Populate(raylib) - SET(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) - ADD_SUBDIRECTORY(${raylib_SOURCE_DIR} ${raylib_BINARY_DIR}) - SET(raylib_FOUND TRUE) - endif() -endif() - set(CMAKE_CXX_STANDARD 20) add_executable(bomberman sources/main.cpp ) + +target_link_libraries(bomberman raylib) \ No newline at end of file