COMP: Add entt

This commit is contained in:
David Allemang
2023-02-04 21:11:30 -05:00
parent 7ecaad653b
commit 65e4960f09
3 changed files with 25 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ project(toddcox-faster)
set(CMAKE_CXX_STANDARD 20)
include(vendor/eigen.cmake)
include(vendor/entt.cmake)
include(vendor/fmt.cmake)
include(vendor/glad.cmake)
include(vendor/glfw.cmake)

10
vendor/entt.cmake vendored Normal file
View File

@@ -0,0 +1,10 @@
include(FetchContent)
FetchContent_Declare(
entt
GIT_REPOSITORY https://github.com/skypjack/entt.git
GIT_TAG v3.11.1
GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(entt)

View File

@@ -17,7 +17,19 @@ add_custom_command(
add_library(vis-util INTERFACE)
target_include_directories(vis-util INTERFACE include)
add_executable(vis src/main.cpp)
add_executable(vis
src/main.cpp
src/comps.hpp
)
target_include_directories(vis PRIVATE include)
target_link_libraries(vis PRIVATE tc glad eigen glfw yaml-cpp shaders fmt)
target_link_libraries(vis PRIVATE
tc
glad
eigen
glfw
yaml-cpp
shaders
fmt::fmt
EnTT::EnTT
)
add_dependencies(vis presets)