tsMuxer/tsMuxerGUI/CMakeLists.txt
Daniel Kamil Kozar a4cc39fb10
Non-functional GUI improvements
* Don't include <QtGui>, which is a leftover from Qt4 and causes literally
  everything to be pulled into the TU.
* Use forward declarations instead of includes where possible.
* Replace aggregated Ui* classes with aggregation via pointer, which allows
  these classes to be forward-declared and thus further reduce the number of
  included headers. Aggregation via pointer has been the default in Qt Creator
  for some time now.
* Fix minor warnings reported by Clang.
* Move QnCheckBoxedHeaderView to a separate file.
* Move QtvCodecInfo to a separate file, change initializer list to inline member initialization.
* Create an actual QMake .pro file instead of stuffing it in MXE build scripts.
* Fix 32-bit integers being used as pointers to QtvCodecInfo objects in 64-bit Windows builds.
* Update information in the "About" tab.
2020-01-11 23:46:04 +01:00

36 lines
873 B
CMake

cmake_minimum_required (VERSION 3.1)
project(tsMuxerGUI)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
if(CMAKE_VERSION VERSION_LESS "3.7.0")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
endif()
find_package(Qt5 COMPONENTS Widgets Multimedia REQUIRED)
set(tsmuxer_gui_sources
main.cpp
tsmuxerwindow.cpp
muxForm.cpp
tsmuxerwindow.ui
muxForm.ui
checkboxedheaderview.cpp
images.qrc
)
add_executable(tsMuxerGUI ${tsmuxer_gui_sources})
target_link_libraries(tsMuxerGUI Qt5::Widgets Qt5::Multimedia)
if (WIN32)
target_sources(tsMuxerGUI PRIVATE icon.rc)
elseif (APPLE)
set(MACOSX_BUNDLE_ICON_FILE tsMuxerGUI.icns)
set_source_files_properties(tsMuxerGUI.icns PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources")
set_target_properties(tsMuxerGUI PROPERTIES MACOSX_BUNDLE TRUE)
target_sources(tsMuxerGUI PRIVATE tsMuxerGUI.icns)
endif()