Skip to content

Commit

Permalink
Refacto & CmakeList issues
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrno committed May 1, 2024
1 parent 308fa08 commit 71d7b58
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1,477 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ file(GLOB_RECURSE VORTEX_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/main/src/*.cpp")




# Add editor
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tools/editor editor_build)
target_link_libraries(vortex_shared PUBLIC editor)
Expand All @@ -46,6 +47,12 @@ add_executable(vortex ${VORTEX_SOURCES} main.cpp)
# Liaison avec la bibliothèque partagée
target_link_libraries(vortex PRIVATE vortex_shared)

if (NOT TARGET launcher AND NOT TARGET editor)
option(SPDLOG_INSTALL "Enable installation of spdlog" ON)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/spdlog spdlog_build)
target_link_libraries(vortex_shared PUBLIC spdlog)
endif()

# Ajouter d'autres dépendances ou configurations pour l'exécutable principal

# Installation de l'exécutable dans /bin
Expand Down
Binary file modified build/bin/vortex
Binary file not shown.
Loading

0 comments on commit 71d7b58

Please sign in to comment.