Skip to content

Commit

Permalink
ECS: Change cmake raylib
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Oct 31, 2023
1 parent 33aaa16 commit db2e061
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions libs/B-luga-graphics/deps/raylib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,14 @@ FetchContent_Declare(

FetchContent_MakeAvailable(raylib)

target_link_libraries(
${PROJECT_NAME}
INTERFACE
raylib
)

add_library(raylib_static_diff STATIC IMPORTED)
set_property(TARGET raylib_static_diff PROPERTY IMPORTED_LOCATION $<TARGET_FILE:raylib>)
set_property(TARGET ${PROJECT_NAME} PROPERTY INTERFACE_LINK_LIBRARIES raylib_static_diff)

target_include_directories(
${PROJECT_NAME}
PUBLIC
$<BUILD_INTERFACE:${raylib_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:${BLUGA_INCLUDE_INSTALL_DIR}/raylib>
PRIVATE
${raylib_SOURCE_DIR}/src
)

# install(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <string>
extern "C"
{
#include "raylib/raylib.h"
#include "raylib.h"
}

namespace Raylib {
Expand Down

0 comments on commit db2e061

Please sign in to comment.