2022-09-21 03:55:57 -04:00
|
|
|
#
|
|
|
|
# EuropaTools
|
|
|
|
#
|
|
|
|
# (C) 2021-2022 modeco80 <lily.modeco80@protonmail.ch>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#
|
|
|
|
|
2022-09-04 17:11:14 -04:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
|
|
|
# Prohibit in-source tree builds.
|
|
|
|
if(" ${CMAKE_SOURCE_DIR}" STREQUAL " ${CMAKE_BINARY_DIR}")
|
|
|
|
message(FATAL_ERROR "In-source builds are strictly prohibited.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include(cmake/Policies.cmake)
|
|
|
|
|
2022-09-21 03:55:57 -04:00
|
|
|
project(EuropaTools
|
2022-09-22 06:43:35 -04:00
|
|
|
VERSION 1.0.0
|
2022-09-21 03:55:57 -04:00
|
|
|
LANGUAGES C CXX
|
|
|
|
DESCRIPTION "Tools for working with LEC Europa based games (Star Wars: Starfighter & Star Wars: Jedi Starfighter)"
|
|
|
|
)
|
2022-09-04 17:11:14 -04:00
|
|
|
|
2022-09-21 04:18:13 -04:00
|
|
|
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)
|
|
|
|
|
2022-09-05 04:24:50 -04:00
|
|
|
add_subdirectory(third_party/libpixel)
|
|
|
|
|
2022-09-04 17:11:14 -04:00
|
|
|
add_subdirectory(src/libeuropa)
|
|
|
|
add_subdirectory(src/tools)
|