1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-27 06:07:45 +00:00
novus/armoury/CMakeLists.txt

100 lines
3.1 KiB
Text
Raw Normal View History

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
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
include/vec3edit.h
src/boneeditor.cpp
src/cmpeditor.cpp
src/fullmodelviewer.cpp
src/gearlistmodel.cpp
src/gearlistwidget.cpp
src/gearview.cpp
src/main.cpp
src/mainwindow.cpp
src/quaternionedit.cpp
src/singlegearview.cpp
src/vec3edit.cpp)
# 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)
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})
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
mdlpart
2023-09-26 17:09:12 -04:00
imgui
NovusCommon)
2022-04-11 21:59:37 -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
add_custom_command(TARGET novus-armoury
2022-04-11 21:59:37 -04:00
POST_BUILD
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:novus-armoury>\"
2022-04-11 21:59:37 -04:00
)
endif()