mirror of
https://github.com/redstrate/Novus.git
synced 2025-06-08 06:07:46 +00:00
armoury: Fix up CMakeLists.txt, prefix executable with novus-
This commit is contained in:
parent
7c098413cd
commit
f4262dc3e9
1 changed files with 25 additions and 16 deletions
|
@ -1,26 +1,36 @@
|
||||||
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
add_executable(armoury
|
add_executable(novus-armoury)
|
||||||
src/main.cpp
|
target_sources(novus-armoury PRIVATE
|
||||||
src/mainwindow.cpp
|
include/boneeditor.h
|
||||||
src/vec3edit.cpp
|
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
|
include/vec3edit.h
|
||||||
src/gearview.cpp
|
|
||||||
src/singlegearview.cpp
|
|
||||||
src/fullmodelviewer.cpp
|
|
||||||
src/quaternionedit.cpp
|
|
||||||
src/boneeditor.cpp
|
src/boneeditor.cpp
|
||||||
src/cmpeditor.cpp
|
src/cmpeditor.cpp
|
||||||
|
src/fullmodelviewer.cpp
|
||||||
|
src/gearlistmodel.cpp
|
||||||
src/gearlistwidget.cpp
|
src/gearlistwidget.cpp
|
||||||
src/gearlistmodel.cpp)
|
src/gearview.cpp
|
||||||
target_include_directories(armoury
|
src/main.cpp
|
||||||
|
src/mainwindow.cpp
|
||||||
|
src/quaternionedit.cpp
|
||||||
|
src/singlegearview.cpp
|
||||||
|
src/vec3edit.cpp)
|
||||||
|
target_include_directories(novus-armoury
|
||||||
PUBLIC
|
PUBLIC
|
||||||
include
|
include
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${CMAKE_BINARY_DIR})
|
${CMAKE_BINARY_DIR})
|
||||||
target_link_libraries(armoury PUBLIC
|
target_link_libraries(novus-armoury PUBLIC
|
||||||
${LIBRARIES}
|
|
||||||
Qt6::Core
|
Qt6::Core
|
||||||
Qt6::Widgets
|
Qt6::Widgets
|
||||||
Qt6::Concurrent
|
Qt6::Concurrent
|
||||||
|
@ -32,8 +42,7 @@ target_link_libraries(armoury PUBLIC
|
||||||
imgui
|
imgui
|
||||||
NovusCommon)
|
NovusCommon)
|
||||||
|
|
||||||
install(TARGETS armoury
|
install(TARGETS novus-armoury ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||||
DESTINATION "${INSTALL_BIN_PATH}")
|
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
get_target_property(QMAKE_EXE Qt5::qmake IMPORTED_LOCATION)
|
get_target_property(QMAKE_EXE Qt5::qmake IMPORTED_LOCATION)
|
||||||
|
@ -43,8 +52,8 @@ if(WIN32)
|
||||||
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${QT_BIN_DIR}")
|
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${QT_BIN_DIR}")
|
||||||
|
|
||||||
# Run windeployqt immediately after build
|
# Run windeployqt immediately after build
|
||||||
add_custom_command(TARGET armoury
|
add_custom_command(TARGET novus-armoury
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:armoury>\"
|
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:novus-armoury>\"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
Loading…
Add table
Reference in a new issue