Switch from QMake to CMake with buildcore

This commit is contained in:
2021-07-28 01:13:20 -05:00
parent 1ab03975f7
commit 91683b4dd7
23 changed files with 898 additions and 30 deletions

31
src/CMakeLists.txt Normal file
View File

@@ -0,0 +1,31 @@
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Network Widgets REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Network Widgets REQUIRED)
add_executable(
SlideController MACOSX_BUNDLE
main.cpp
mainwindow.cpp
obsclient.cpp
openlpclient.cpp
slideview.cpp
)
target_link_libraries(
SlideController
Qt${QT_VERSION_MAJOR}::Network
Qt${QT_VERSION_MAJOR}::Widgets
)
install(
TARGETS
SlideController
DESTINATION
bin
BUNDLE DESTINATION .
)