1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-02 00:07:44 +00:00
novus/CMakeLists.txt
Joshua Goins 47d612eb8f Add file cache and concurrent item loading to speed up mdlviewer
Instead of extracting item sheets one at a time, it's now done on
multiple threads. Loading gear is now faster since reused files are
cached, switching between races is still wasteful, but it's a good
enough improvement for now.
2023-07-09 10:54:27 -04:00

46 lines
No EOL
902 B
CMake

cmake_minimum_required(VERSION 3.25)
project(Novus)
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD 17)
find_package(Qt5 COMPONENTS Core Widgets Concurrent CONFIG REQUIRED)
include(FetchContent)
add_subdirectory(extern)
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()
# macos
if(APPLE)
set(USE_STANDALONE_WINDOW TRUE)
endif()
add_subdirectory(renderer)
add_subdirectory(exdviewer)
add_subdirectory(mdlviewer)
add_subdirectory(argcracker)
add_subdirectory(explorer)
add_subdirectory(bonedecomp)
add_subdirectory(parts)
add_subdirectory(common)