You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
VideoClient98/src/CMakeLists.txt

39 lines
748 B
CMake

qt_add_executable(VideoClient
WIN32 MACOSX_BUNDLE
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
global.h global.cpp
)
set(3RDPARTY_DIR ${CMAKE_CURRENT_LIST_DIR}/3rdparty)
set(FFMPEG_DIR ${3RDPARTY_DIR}/ffmpeg)
add_subdirectory(video)
target_link_libraries(VideoClient
PRIVATE
Qt::Core
Qt::Widgets
Qt6::OpenGLWidgets
Qt6::Network
video
)
include(GNUInstallDirs)
install(TARGETS VideoClient
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
qt_generate_deploy_app_script(
TARGET VideoClient
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})