Skip to content

Commit

Permalink
ECS: Fix include cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Oct 31, 2023
1 parent befb3b1 commit 4e6f516
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
6 changes: 6 additions & 0 deletions libs/B-luga-graphics/deps/bluga-physics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ FetchContent_Declare(
FetchContent_MakeAvailable(b-luga-physics)

target_link_libraries(${PROJECT_NAME} PRIVATE b-luga-physics)

target_link_libraries(
${PROJECT_NAME}
INTERFACE
b-luga-physics
)
8 changes: 1 addition & 7 deletions 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} STATIC)
add_library(${PROJECT_NAME} INTERFACE)
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

include(GNUInstallDirs)
Expand All @@ -26,12 +26,6 @@ target_include_directories(
$<INSTALL_INTERFACE:include>
)

target_sources(
${PROJECT_NAME}
PRIVATE
src/test.cpp
)

target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_20)

include(CMakePackageConfigHelpers)
Expand Down
1 change: 0 additions & 1 deletion libs/B-luga-physics/scripts/create-tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ mv ./CMakeLists.txt ./b-luga-physics
mv ./README.md ./b-luga-physics
mv ./deps/ ./b-luga-physics
mv ./include/ ./b-luga-physics
mv ./src/ ./b-luga-physics

tar -cvf b-luga-physics.tar b-luga-physics
5 changes: 0 additions & 5 deletions libs/B-luga-physics/src/test.cpp

This file was deleted.

0 comments on commit 4e6f516

Please sign in to comment.