Skip to content
Snippets Groups Projects
Commit 1946b93b authored by David Maul's avatar David Maul :crab:
Browse files

Merge branch 'highfive-dep' into 'main'

add HighFive as a dependency

See merge request !3
parents e1b2f892 2e297d56
No related branches found
No related tags found
1 merge request!3add HighFive as a dependency
......@@ -7,6 +7,20 @@ project(ADVANCED_WARS
LANGUAGES CXX
)
include(FetchContent)
FetchContent_Declare(
highfive
GIT_REPOSITORY https://github.com/highfive-devs/highfive.git
GIT_TAG v2.10.1
)
set(HIGHFIVE_EXAMPLES OFF)
set(HIGHFIVE_UNIT_TESTS OFF)
FetchContent_MakeAvailable(highfive)
# Quellen sammeln
file(GLOB_RECURSE ADVANCED_WARS_SOURCES
"${PROJECT_SOURCE_DIR}/src/*.cpp"
......@@ -34,6 +48,11 @@ file(GLOB FONT_FILES ${ASSETS_DIR}/*.ttf)
# Executable erstellen
add_executable(advanced_wars ${ADVANCED_WARS_SOURCES})
target_include_directories(advanced_wars
PRIVATE
${highfive_SOURCE_DIR}/include
)
foreach(FONT ${FONT_FILES})
add_custom_command(
TARGET advanced_wars PRE_BUILD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment