2023-08-06 08:48:11 -04:00
|
|
|
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2023-04-09 15:32:47 -04:00
|
|
|
cmake_minimum_required(VERSION 3.25)
|
2022-03-15 15:34:38 -04:00
|
|
|
project(Novus)
|
|
|
|
|
2022-03-16 00:31:24 -04:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
2023-07-09 10:54:27 -04:00
|
|
|
find_package(Qt5 COMPONENTS Core Widgets Concurrent CONFIG REQUIRED)
|
2022-03-16 00:31:24 -04:00
|
|
|
|
2022-03-27 21:49:54 -04:00
|
|
|
include(FetchContent)
|
|
|
|
|
2022-08-04 11:32:12 -04:00
|
|
|
add_subdirectory(extern)
|
2022-04-17 20:02:06 -04:00
|
|
|
|
2022-03-27 21:49:54 -04:00
|
|
|
find_package(fmt QUIET)
|
|
|
|
|
|
|
|
if(TARGET fmt::fmt)
|
|
|
|
message("Using system library for fmt")
|
|
|
|
|
|
|
|
set(LIBRARIES fmt::fmt ${LIBRARIES})
|
|
|
|
else()
|
|
|
|
message("Using built-in fmt")
|
|
|
|
|
|
|
|
FetchContent_Declare(
|
|
|
|
fmt
|
|
|
|
GIT_REPOSITORY https://github.com/fmtlib/fmt
|
|
|
|
GIT_TAG master
|
|
|
|
)
|
|
|
|
|
|
|
|
FetchContent_MakeAvailable(fmt)
|
|
|
|
|
|
|
|
set(LIBRARIES fmt::fmt ${LIBRARIES})
|
|
|
|
endif()
|
2022-03-15 15:34:38 -04:00
|
|
|
|
2022-04-12 16:19:06 -04:00
|
|
|
# macos
|
2022-04-12 20:02:50 -04:00
|
|
|
if(APPLE)
|
2022-04-12 16:19:06 -04:00
|
|
|
set(USE_STANDALONE_WINDOW TRUE)
|
|
|
|
endif()
|
|
|
|
|
2022-04-11 23:11:33 -04:00
|
|
|
add_subdirectory(renderer)
|
2022-04-11 21:59:37 -04:00
|
|
|
add_subdirectory(exdviewer)
|
2023-07-09 11:31:18 -04:00
|
|
|
add_subdirectory(armoury)
|
2022-04-14 19:00:42 -04:00
|
|
|
add_subdirectory(argcracker)
|
2022-05-04 15:54:49 -04:00
|
|
|
add_subdirectory(explorer)
|
2023-04-09 15:28:00 -04:00
|
|
|
add_subdirectory(bonedecomp)
|
2023-07-08 10:33:12 -04:00
|
|
|
add_subdirectory(parts)
|
2023-07-09 11:52:59 -04:00
|
|
|
add_subdirectory(common)
|
2023-08-31 14:18:50 +02:00
|
|
|
add_subdirectory(mdlviewer)
|
|
|
|
add_subdirectory(sdklauncher)
|