2023-08-06 08:48:11 -04:00
|
|
|
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2023-10-10 16:52:46 -04:00
|
|
|
add_executable(novus-armoury)
|
|
|
|
target_sources(novus-armoury PRIVATE
|
|
|
|
include/boneeditor.h
|
|
|
|
include/cmpeditor.h
|
|
|
|
include/fullmodelviewer.h
|
|
|
|
include/gearlistmodel.h
|
|
|
|
include/gearlistwidget.h
|
|
|
|
include/gearview.h
|
|
|
|
include/mainwindow.h
|
|
|
|
include/quaternionedit.h
|
|
|
|
include/singlegearview.h
|
2023-04-09 15:31:19 -04:00
|
|
|
include/vec3edit.h
|
2023-10-10 16:52:46 -04:00
|
|
|
|
2023-07-06 17:37:31 -04:00
|
|
|
src/boneeditor.cpp
|
2023-07-08 09:13:02 -04:00
|
|
|
src/cmpeditor.cpp
|
2023-10-10 16:52:46 -04:00
|
|
|
src/fullmodelviewer.cpp
|
|
|
|
src/gearlistmodel.cpp
|
2023-07-08 09:13:02 -04:00
|
|
|
src/gearlistwidget.cpp
|
2023-10-10 16:52:46 -04:00
|
|
|
src/gearview.cpp
|
|
|
|
src/main.cpp
|
|
|
|
src/mainwindow.cpp
|
|
|
|
src/quaternionedit.cpp
|
|
|
|
src/singlegearview.cpp
|
|
|
|
src/vec3edit.cpp)
|
2023-10-10 17:16:11 -04:00
|
|
|
|
|
|
|
# note, this is temporary until we get dynamic skeleton generation. i really don't want to embed these
|
|
|
|
qt_add_resources(novus-armoury "skeletons"
|
|
|
|
PREFIX "/"
|
|
|
|
FILES
|
|
|
|
skeletons/c0101_deform.json
|
|
|
|
skeletons/c0101b0001.skel
|
|
|
|
skeletons/c0201_deform.json
|
|
|
|
skeletons/c0201b0001.skel
|
|
|
|
skeletons/c0301_deform.json
|
|
|
|
skeletons/c0301b0001.skel
|
|
|
|
skeletons/c0401_deform.json
|
|
|
|
skeletons/c0401b0001.skel
|
|
|
|
skeletons/c0501_deform.json
|
|
|
|
skeletons/c0501b0001.skel
|
|
|
|
skeletons/c0601_deform.json
|
|
|
|
skeletons/c0601b0001.skel
|
|
|
|
skeletons/c0701_deform.json
|
|
|
|
skeletons/c0701b0001.skel
|
|
|
|
skeletons/c0701_deform.json
|
|
|
|
skeletons/c0801_deform.json
|
|
|
|
skeletons/c0801b0001.skel
|
|
|
|
skeletons/c0901_deform.json
|
|
|
|
skeletons/c0901b0001.skel
|
|
|
|
skeletons/c1001_deform.json
|
|
|
|
skeletons/c1001b0001.skel
|
|
|
|
skeletons/c1101_deform.json
|
|
|
|
skeletons/c1101b0001.skel
|
|
|
|
skeletons/c1201_deform.json
|
|
|
|
skeletons/c1201b0001.skel
|
|
|
|
skeletons/c1301_deform.json
|
|
|
|
skeletons/c1301b0001.skel
|
|
|
|
skeletons/c1401_deform.json
|
|
|
|
skeletons/c1401b0001.skel
|
|
|
|
skeletons/c1501_deform.json
|
|
|
|
skeletons/c1501b0001.skel
|
|
|
|
skeletons/c1701_deform.json
|
|
|
|
skeletons/c1701b0001.skel
|
|
|
|
skeletons/c1801_deform.json
|
|
|
|
skeletons/c1801b0001.skel)
|
|
|
|
|
2023-10-10 16:52:46 -04:00
|
|
|
target_include_directories(novus-armoury
|
2022-04-11 21:59:37 -04:00
|
|
|
PUBLIC
|
2023-07-08 10:12:35 -04:00
|
|
|
include
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_BINARY_DIR})
|
2023-10-10 16:52:46 -04:00
|
|
|
target_link_libraries(novus-armoury PUBLIC
|
2023-09-26 00:37:55 -04:00
|
|
|
Qt6::Core
|
|
|
|
Qt6::Widgets
|
|
|
|
Qt6::Concurrent
|
2022-08-10 14:52:28 -04:00
|
|
|
magic_enum
|
2023-10-10 16:45:17 -04:00
|
|
|
physis
|
|
|
|
z
|
|
|
|
physis-logger
|
2023-07-08 10:33:12 -04:00
|
|
|
mdlpart
|
2023-09-26 17:09:12 -04:00
|
|
|
imgui
|
2023-07-08 10:33:12 -04:00
|
|
|
NovusCommon)
|
2022-04-11 21:59:37 -04:00
|
|
|
|
2023-10-10 16:52:46 -04:00
|
|
|
install(TARGETS novus-armoury ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
|
2022-04-11 21:59:37 -04:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
get_target_property(QMAKE_EXE Qt5::qmake IMPORTED_LOCATION)
|
|
|
|
get_filename_component(QT_BIN_DIR "${QMAKE_EXE}" DIRECTORY)
|
|
|
|
|
|
|
|
find_program(WINDEPLOYQT_ENV_SETUP qtenv2.bat HINTS "${QT_BIN_DIR}")
|
|
|
|
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${QT_BIN_DIR}")
|
|
|
|
|
|
|
|
# Run windeployqt immediately after build
|
2023-10-10 16:52:46 -04:00
|
|
|
add_custom_command(TARGET novus-armoury
|
2022-04-11 21:59:37 -04:00
|
|
|
POST_BUILD
|
2023-10-10 16:52:46 -04:00
|
|
|
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:novus-armoury>\"
|
2022-04-11 21:59:37 -04:00
|
|
|
)
|
2023-07-08 10:33:12 -04:00
|
|
|
endif()
|