1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-20 19:57:44 +00:00

mdlviewer: Prefix with novus-

This commit is contained in:
Joshua Goins 2023-10-10 17:58:33 -04:00
parent e6609b8f12
commit bc201bc1d2

View file

@ -1,16 +1,15 @@
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
add_executable(mdlviewer
add_executable(novus-mdlviewer
src/main.cpp
src/mainwindow.cpp)
target_include_directories(mdlviewer
target_include_directories(novus-mdlviewer
PUBLIC
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
DESTINATION "${INSTALL_BIN_PATH}")
install(TARGETS novus-mdlviewer ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
if(WIN32)
get_target_property(QMAKE_EXE Qt5::qmake IMPORTED_LOCATION)
@ -20,8 +19,8 @@ if(WIN32)
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${QT_BIN_DIR}")
# Run windeployqt immediately after build
add_custom_command(TARGET mdlviewer
add_custom_command(TARGET novus-mdlviewer
POST_BUILD
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:mdlviewer>\"
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:novus-mdlviewer>\"
)
endif()