2022-06-23 21:36:00 -04:00
|
|
|
find_package(Qt5)
|
|
|
|
|
2022-07-11 04:48:50 -04:00
|
|
|
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets Multimedia)
|
|
|
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Multimedia)
|
2022-06-23 21:36:00 -04:00
|
|
|
|
2022-07-18 23:22:52 -04:00
|
|
|
find_package(FFMPEG 3.0 REQUIRED
|
|
|
|
COMPONENTS
|
|
|
|
avutil
|
|
|
|
avcodec
|
|
|
|
avformat
|
|
|
|
avfilter
|
|
|
|
swscale
|
|
|
|
swresample
|
|
|
|
)
|
|
|
|
|
2022-06-23 21:36:00 -04:00
|
|
|
set(PROJECT_SOURCES
|
2022-07-18 03:27:00 -04:00
|
|
|
siview/chunkmodel.cpp
|
|
|
|
siview/chunkmodel.h
|
|
|
|
siview/infopanel.cpp
|
|
|
|
siview/infopanel.h
|
|
|
|
siview/siview.cpp
|
|
|
|
siview/siview.h
|
2022-06-24 13:46:25 -04:00
|
|
|
|
2022-07-18 23:22:52 -04:00
|
|
|
viewer/mediapanel.cpp
|
|
|
|
viewer/mediapanel.h
|
2022-07-11 04:48:50 -04:00
|
|
|
|
2022-06-23 21:36:00 -04:00
|
|
|
main.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
mainwindow.h
|
2022-07-11 04:48:50 -04:00
|
|
|
model.cpp
|
|
|
|
model.h
|
|
|
|
objectmodel.cpp
|
|
|
|
objectmodel.h
|
2022-07-10 23:51:49 -04:00
|
|
|
panel.cpp
|
|
|
|
panel.h
|
2022-07-04 02:33:38 -04:00
|
|
|
vector3edit.cpp
|
|
|
|
vector3edit.h
|
2022-07-10 23:37:11 -04:00
|
|
|
|
|
|
|
res/res.rc
|
2022-06-23 21:36:00 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
|
|
|
|
qt_add_executable(si-edit
|
|
|
|
MANUAL_FINALIZATION
|
|
|
|
${PROJECT_SOURCES}
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
add_executable(si-edit
|
|
|
|
${PROJECT_SOURCES}
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-07-18 23:22:52 -04:00
|
|
|
target_link_libraries(si-edit PRIVATE
|
|
|
|
Qt${QT_VERSION_MAJOR}::Widgets
|
|
|
|
Qt${QT_VERSION_MAJOR}::Multimedia
|
|
|
|
FFMPEG::avutil
|
|
|
|
FFMPEG::avcodec
|
|
|
|
FFMPEG::avformat
|
|
|
|
FFMPEG::avfilter
|
|
|
|
FFMPEG::swscale
|
|
|
|
FFMPEG::swresample
|
|
|
|
libweaver)
|
|
|
|
target_include_directories(si-edit PRIVATE "${CMAKE_SOURCE_DIR}/lib" ${FFMPEG_INCLUDE_DIRS})
|
2022-07-17 21:51:16 -04:00
|
|
|
if (NOT MSVC)
|
|
|
|
target_compile_options(si-edit PRIVATE -Werror)
|
|
|
|
endif()
|
2022-06-23 21:36:00 -04:00
|
|
|
|
|
|
|
set_target_properties(si-edit PROPERTIES
|
|
|
|
MACOSX_BUNDLE_GUI_IDENTIFIER com.mattkc.SIEdit
|
|
|
|
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
|
|
|
|
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
|
|
|
|
MACOSX_BUNDLE TRUE
|
|
|
|
WIN32_EXECUTABLE TRUE
|
|
|
|
CXX_STANDARD 17
|
|
|
|
CXX_STANDARD_REQUIRED ON
|
|
|
|
AUTOUIC ON
|
|
|
|
AUTOMOC ON
|
|
|
|
AUTORCC ON
|
|
|
|
)
|
|
|
|
|
|
|
|
if(QT_VERSION_MAJOR EQUAL 6)
|
|
|
|
qt_finalize_executable(si-edit)
|
|
|
|
endif()
|