Skip to content

Commit

Permalink
ECS: Fix interface cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Oct 31, 2023
1 parent 41b11b0 commit 6591ba0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libs/B-luga-graphics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project(
DESCRIPTION "Plugin for B-luga ECS | implement some graphics systems"
)

add_library(${PROJECT_NAME} PUBLIC)
add_library(${PROJECT_NAME} INTERFACE)
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

include(GNUInstallDirs)
Expand Down
2 changes: 1 addition & 1 deletion libs/B-luga-graphics/deps/bluga/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ FetchContent_MakeAvailable(b-luga)

target_link_libraries(
${PROJECT_NAME}
PRIVATE
INTERFACE
b-luga
)
2 changes: 1 addition & 1 deletion libs/B-luga-graphics/deps/raylib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ FetchContent_MakeAvailable(raylib)

target_link_libraries(
${PROJECT_NAME}
PRIVATE
INTERFACE
raylib
)
2 changes: 1 addition & 1 deletion libs/B-luga-physics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project(
DESCRIPTION "Plugin for B-luga ECS | implement some graphics systems"
)

add_library(${PROJECT_NAME} PUBLIC)
add_library(${PROJECT_NAME} INTERFACE)
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

include(GNUInstallDirs)
Expand Down
2 changes: 1 addition & 1 deletion libs/B-luga-physics/deps/bluga-graphics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ FetchContent_MakeAvailable(b-luga)

target_link_libraries(
${PROJECT_NAME}
PRIVATE
INTERFACE
b-luga-graphics
)
2 changes: 1 addition & 1 deletion libs/B-luga-physics/deps/bluga/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ FetchContent_MakeAvailable(b-luga)

target_link_libraries(
${PROJECT_NAME}
PRIVATE
INTERFACE
b-luga
)
2 changes: 1 addition & 1 deletion libs/B-luga/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project(
DESCRIPTION "ECS made for R-Type epitech project"
)

add_library(${PROJECT_NAME} PUBLIC)
add_library(${PROJECT_NAME} INTERFACE)
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

include(GNUInstallDirs)
Expand Down

0 comments on commit 6591ba0

Please sign in to comment.