2023-04-09 15:32:09 -04:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
2022-04-14 08:24:06 -04:00
|
|
|
add_executable(explorer
|
|
|
|
src/main.cpp
|
2023-04-09 15:32:09 -04:00
|
|
|
src/mainwindow.cpp
|
|
|
|
src/filetreewindow.cpp
|
|
|
|
src/filepropertieswindow.cpp)
|
2022-04-14 08:24:06 -04:00
|
|
|
target_include_directories(explorer
|
|
|
|
PUBLIC
|
|
|
|
include)
|
2023-07-08 10:33:12 -04:00
|
|
|
target_link_libraries(explorer PUBLIC physis z ${LIBRARIES} Qt5::Core Qt5::Widgets NovusCommon)
|
2022-04-14 08:24:06 -04:00
|
|
|
|
|
|
|
install(TARGETS explorer
|
|
|
|
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
|
|
|
|
add_custom_command(TARGET explorer
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND "${WINDEPLOYQT_ENV_SETUP}" && "${WINDEPLOYQT_EXECUTABLE}" \"$<TARGET_FILE:explorer>\"
|
|
|
|
)
|
|
|
|
endif()
|