1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-24 21:07:46 +00:00
novus/CMakeLists.txt
Joshua Goins 275c1a9976 Overhaul race and lod combos in mdlviewer
The number of lods are now properly loaded from the model data, and race
is checked by checking for the existence of race-specific models (I
think this is the current best way?).

Also, magic_enum is added as a dependency for some enum magic involving
enumerating Race.
2022-04-17 20:02:06 -04:00

44 lines
No EOL
813 B
CMake

project(Novus)
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD 17)
find_package(Qt5 COMPONENTS Core Widgets CONFIG REQUIRED)
add_subdirectory(libxiv)
include(FetchContent)
add_subdirectory(extern/magic_enum)
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)