2023-07-09 11:31:18 -04:00
|
|
|
add_executable(armoury
|
2022-04-11 21:59:37 -04:00
|
|
|
src/main.cpp
|
2022-04-28 17:50:05 -04:00
|
|
|
src/mainwindow.cpp
|
|
|
|
src/vec3edit.cpp
|
2023-04-09 15:31:19 -04:00
|
|
|
include/vec3edit.h
|
|
|
|
src/gearview.cpp
|
|
|
|
src/singlegearview.cpp
|
2023-07-06 17:37:31 -04:00
|
|
|
src/fullmodelviewer.cpp
|
|
|
|
src/quaternionedit.cpp
|
|
|
|
src/boneeditor.cpp
|
2023-07-08 09:13:02 -04:00
|
|
|
src/cmpeditor.cpp
|
|
|
|
src/gearlistwidget.cpp
|
2023-07-08 10:33:12 -04:00
|
|
|
src/gearlistmodel.cpp)
|
2023-07-09 11:31:18 -04:00
|
|
|
target_include_directories(armoury
|
2022-04-11 21:59:37 -04:00
|
|
|
PUBLIC
|
2023-07-08 10:12:35 -04:00
|
|
|
include
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_BINARY_DIR})
|
2023-07-09 11:31:18 -04:00
|
|
|
target_link_libraries(armoury PUBLIC
|
2022-04-12 20:02:50 -04:00
|
|
|
${LIBRARIES}
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Widgets
|
2023-07-09 10:54:27 -04:00
|
|
|
Qt5::Concurrent
|
2022-04-12 20:02:50 -04:00
|
|
|
renderer
|
2022-08-10 14:52:28 -04:00
|
|
|
magic_enum
|
2023-04-09 15:31:19 -04:00
|
|
|
physis z
|
2023-07-08 10:33:12 -04:00
|
|
|
mdlpart
|
|
|
|
NovusCommon)
|
2022-04-11 21:59:37 -04:00
|
|
|
|
2023-07-09 11:31:18 -04:00
|
|
|
install(TARGETS armoury
|
2022-04-11 21:59:37 -04:00
|
|
|
DESTINATION "${INSTALL_BIN_PATH}")
|
|
|
|
|
|
|
|
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-07-09 11:31:18 -04:00
|
|
|
add_custom_command(TARGET armoury
|
2022-04-11 21:59:37 -04:00
|
|
|
POST_BUILD
|
2023-07-09 11:31:18 -04:00
|
|
|
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:armoury>\"
|
2022-04-11 21:59:37 -04:00
|
|
|
)
|
2023-07-08 10:33:12 -04:00
|
|
|
endif()
|