63 lines
1.8 KiB
CMake
63 lines
1.8 KiB
CMake
# 模块:app(入口)、main_window(主窗口与时间轴等)、editor(画布)、dialogs(裁剪/关于)
|
||
set(GUI_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
|
||
|
||
set(GUI_SOURCES
|
||
${GUI_ROOT}/app/main.cpp
|
||
${GUI_ROOT}/main_window/MainWindow.cpp
|
||
${GUI_ROOT}/main_window/RecentProjectHistory.cpp
|
||
${GUI_ROOT}/dialogs/AboutWindow.cpp
|
||
${GUI_ROOT}/dialogs/ImageCropDialog.cpp
|
||
${GUI_ROOT}/dialogs/FrameAnimationDialog.cpp
|
||
${GUI_ROOT}/dialogs/CancelableTaskDialog.cpp
|
||
${GUI_ROOT}/editor/EditorCanvas.cpp
|
||
${GUI_ROOT}/params/ParamControls.cpp
|
||
${GUI_ROOT}/props/BackgroundPropertySection.cpp
|
||
${GUI_ROOT}/props/EntityPropertySection.cpp
|
||
${GUI_ROOT}/timeline/TimelineWidget.cpp
|
||
)
|
||
|
||
set(GUI_HEADERS
|
||
${GUI_ROOT}/main_window/MainWindow.h
|
||
${GUI_ROOT}/main_window/RecentProjectHistory.h
|
||
${GUI_ROOT}/dialogs/AboutWindow.h
|
||
${GUI_ROOT}/dialogs/ImageCropDialog.h
|
||
${GUI_ROOT}/dialogs/FrameAnimationDialog.h
|
||
${GUI_ROOT}/dialogs/CancelableTaskDialog.h
|
||
${GUI_ROOT}/editor/EditorCanvas.h
|
||
${GUI_ROOT}/params/ParamControls.h
|
||
${GUI_ROOT}/props/BackgroundPropertySection.h
|
||
${GUI_ROOT}/props/EntityPropertySection.h
|
||
${GUI_ROOT}/props/PropertySectionWidget.h
|
||
${GUI_ROOT}/timeline/TimelineWidget.h
|
||
)
|
||
|
||
if(QT_PACKAGE STREQUAL "Qt6")
|
||
qt_add_executable(LandscapeInteractiveToolApp
|
||
${GUI_SOURCES}
|
||
${GUI_HEADERS}
|
||
)
|
||
else()
|
||
add_executable(LandscapeInteractiveToolApp
|
||
${GUI_SOURCES}
|
||
${GUI_HEADERS}
|
||
)
|
||
endif()
|
||
|
||
target_include_directories(LandscapeInteractiveToolApp
|
||
PRIVATE
|
||
${SRC_ROOT}
|
||
${GUI_ROOT}
|
||
)
|
||
|
||
target_link_libraries(LandscapeInteractiveToolApp
|
||
PRIVATE
|
||
${QT_PACKAGE}::Core
|
||
${QT_PACKAGE}::Gui
|
||
${QT_PACKAGE}::Widgets
|
||
core
|
||
)
|
||
|
||
set_target_properties(LandscapeInteractiveToolApp PROPERTIES
|
||
OUTPUT_NAME "landscape_tool"
|
||
)
|