1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-28 06:37:44 +00:00
novus/sagasu/CMakeLists.txt

31 lines
1 KiB
Text
Raw Normal View History

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
set(CMAKE_INCLUDE_CURRENT_DIR ON)
2023-10-10 17:55:49 -04:00
add_executable(novus-sagasu
src/main.cpp
src/mainwindow.cpp
src/filetreewindow.cpp
src/filepropertieswindow.cpp)
2023-10-10 17:55:49 -04:00
target_include_directories(novus-sagasu
PUBLIC
include)
2023-10-10 17:55:49 -04:00
target_link_libraries(novus-sagasu PUBLIC physis z ${LIBRARIES} Qt6::Core Qt6::Widgets novus-common)
2023-10-10 17:55:49 -04:00
install(TARGETS novus-sagasu ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
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-10-10 17:55:49 -04:00
add_custom_command(TARGET novus-sagasu
POST_BUILD
2023-10-10 17:55:49 -04:00
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:novus-sagasu>\"
)
endif()