cmake: Use FetchContent for dependencies, add argparse dep

This commit is contained in:
Lily Tsuru 2022-09-21 03:18:13 -05:00
parent 4b7a0ea612
commit 87b02d8659
3 changed files with 18 additions and 5 deletions

3
.gitmodules vendored
View File

@ -1,6 +1,3 @@
[submodule "third_party/libpixel"] [submodule "third_party/libpixel"]
path = third_party/libpixel path = third_party/libpixel
url = https://github.com/modeco80/libpixel.git url = https://github.com/modeco80/libpixel.git
[submodule "third_party/indicators"]
path = third_party/indicators
url = https://github.com/p-ranav/indicators

View File

@ -21,8 +21,25 @@ project(EuropaTools
DESCRIPTION "Tools for working with LEC Europa based games (Star Wars: Starfighter & Star Wars: Jedi Starfighter)" DESCRIPTION "Tools for working with LEC Europa based games (Star Wars: Starfighter & Star Wars: Jedi Starfighter)"
) )
include(FetchContent)
# declare dependencies
FetchContent_Declare(indicators
GIT_REPOSITORY https://github.com/p-ranav/indicators.git
)
FetchContent_Declare(argparse
GIT_REPOSITORY https://github.com/p-ranav/argparse.git
)
# Future (maybe when libpixel has provisioning for installs :v)
#FetchContent_Declare(libpixel
# GIT_REPOSITORY https://github.com/modeco80/libpixel.git
# )
FetchContent_MakeAvailable(indicators argparse)
add_subdirectory(third_party/libpixel) add_subdirectory(third_party/libpixel)
add_subdirectory(third_party/indicators)
add_subdirectory(src/libeuropa) add_subdirectory(src/libeuropa)
add_subdirectory(src/tools) add_subdirectory(src/tools)

@ -1 +0,0 @@
Subproject commit 6432875ef4c866d25e324c19a787b5bb90b0ab12