Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cpp-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Maul
cpp-project
Commits
2e297d56
Commit
2e297d56
authored
5 months ago
by
David Maul
Browse files
Options
Downloads
Patches
Plain Diff
add HighFive as a dependency
parent
88e1fa0f
No related branches found
No related tags found
1 merge request
!3
add HighFive as a dependency
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+19
-0
19 additions, 0 deletions
CMakeLists.txt
with
19 additions
and
0 deletions
CMakeLists.txt
+
19
−
0
View file @
2e297d56
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment