2022-07-07 07:11:51 -04:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(discord-screenaudio)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
2022-07-09 16:07:14 -04:00
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
|
2022-07-07 07:11:51 -04:00
|
|
|
# set(CMAKE_AUTOUIC ON)
|
|
|
|
|
|
|
|
find_package(Qt5 CONFIG REQUIRED COMPONENTS
|
|
|
|
Widgets
|
|
|
|
WebEngineWidgets
|
|
|
|
)
|
|
|
|
|
|
|
|
set(discord-screenaudio_SRC
|
|
|
|
src/main.cpp
|
|
|
|
src/mainwindow.cpp
|
|
|
|
src/virtmic.cpp
|
2022-07-09 16:07:14 -04:00
|
|
|
src/discordpage.cpp
|
|
|
|
src/streamdialog.cpp
|
2022-07-07 07:11:51 -04:00
|
|
|
resources.qrc
|
|
|
|
)
|
|
|
|
|
|
|
|
include(FetchContent)
|
|
|
|
|
2022-07-20 13:06:02 -04:00
|
|
|
FetchContent_Declare(
|
|
|
|
rohrkabel
|
|
|
|
GIT_REPOSITORY "https://github.com/Soundux/rohrkabel"
|
|
|
|
GIT_TAG "d87403f48d3a95aa4bcf4cd60112d9e4bb090d5d"
|
|
|
|
)
|
2022-07-07 07:11:51 -04:00
|
|
|
FetchContent_MakeAvailable(rohrkabel)
|
|
|
|
|
|
|
|
add_executable(discord-screenaudio ${discord-screenaudio_SRC})
|
|
|
|
|
|
|
|
target_link_libraries(discord-screenaudio Qt5::Widgets Qt5::WebEngineWidgets rohrkabel)
|
|
|
|
|
|
|
|
install(TARGETS discord-screenaudio DESTINATION bin)
|
|
|
|
install(PROGRAMS assets/discord-screenaudio.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
|