mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
COMP: Reorganize cmake files
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
#add_custom_target(shaders ALL DEPENDS shader_output)
|
||||
#add_custom_command(
|
||||
# OUTPUT shader_output
|
||||
# COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/shaders ${CMAKE_CURRENT_BINARY_DIR}/shaders
|
||||
# COMMENT "copied shaders"
|
||||
#)
|
||||
|
||||
add_subdirectory(shaders)
|
||||
|
||||
add_custom_target(presets ALL DEPENDS preset_output)
|
||||
@@ -14,22 +7,13 @@ add_custom_command(
|
||||
COMMENT "copied preses"
|
||||
)
|
||||
|
||||
add_library(vis-util INTERFACE)
|
||||
target_include_directories(vis-util INTERFACE include)
|
||||
|
||||
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::fmt
|
||||
EnTT::EnTT
|
||||
tc shaders
|
||||
glad eigen glfw yaml-cpp fmt EnTT
|
||||
)
|
||||
add_dependencies(vis presets)
|
||||
|
||||
Reference in New Issue
Block a user