cmake: Use FetchContent for dependencies, add argparse dep
This commit is contained in:
parent
4b7a0ea612
commit
87b02d8659
|
@ -1,6 +1,3 @@
|
|||
[submodule "third_party/libpixel"]
|
||||
path = third_party/libpixel
|
||||
url = https://github.com/modeco80/libpixel.git
|
||||
[submodule "third_party/indicators"]
|
||||
path = third_party/indicators
|
||||
url = https://github.com/p-ranav/indicators
|
||||
|
|
|
@ -21,8 +21,25 @@ project(EuropaTools
|
|||
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/indicators)
|
||||
|
||||
add_subdirectory(src/libeuropa)
|
||||
add_subdirectory(src/tools)
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 6432875ef4c866d25e324c19a787b5bb90b0ab12
|
Loading…
Reference in New Issue