mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-21 03:57:44 +00:00
mdlviewer: Prefix with novus-
This commit is contained in:
parent
e6609b8f12
commit
bc201bc1d2
1 changed files with 6 additions and 7 deletions
|
@ -1,16 +1,15 @@
|
||||||
# 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(mdlviewer
|
add_executable(novus-mdlviewer
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
src/mainwindow.cpp)
|
src/mainwindow.cpp)
|
||||||
target_include_directories(mdlviewer
|
target_include_directories(novus-mdlviewer
|
||||||
PUBLIC
|
PUBLIC
|
||||||
include)
|
include)
|
||||||
target_link_libraries(mdlviewer PUBLIC physis z ${LIBRARIES} Qt6::Core Qt6::Widgets KF6::XmlGui mdlpart novus-common)
|
target_link_libraries(novus-mdlviewer PUBLIC physis z ${LIBRARIES} Qt6::Core Qt6::Widgets KF6::XmlGui mdlpart novus-common)
|
||||||
|
|
||||||
install(TARGETS mdlviewer
|
install(TARGETS novus-mdlviewer ${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)
|
||||||
|
@ -20,8 +19,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 mdlviewer
|
add_custom_command(TARGET novus-mdlviewer
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:mdlviewer>\"
|
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:novus-mdlviewer>\"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Reference in a new issue