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)
|
|
|
|
|
|
|
|
find_package(Qt5 COMPONENTS Core Widgets CONFIG REQUIRED)
|
|
|
|
|
2022-03-15 15:34:38 -04:00
|
|
|
add_subdirectory(libxiv)
|
|
|
|
|
2022-03-27 21:49:54 -04:00
|
|
|
include(FetchContent)
|
|
|
|
|
|
|
|
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-11 21:59:37 -04:00
|
|
|
add_subdirectory(exdviewer)
|
|
|
|
add_subdirectory(mdlviewer)
|