discord-awesomeaudio/CMakeLists.txt

39 lines
1.1 KiB
CMake
Raw Normal View History

2022-07-13 16:00:30 -04:00
cmake_minimum_required(VERSION 3.11)
2022-07-07 07:11:51 -04:00
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
)
2022-07-13 16:00:30 -04:00
set(${CMAKE_PROJECT_NAME}_SRC
2022-07-07 07:11:51 -04:00
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)
FetchContent_Declare(rohrkabel GIT_REPOSITORY "https://github.com/Soundux/rohrkabel")
FetchContent_MakeAvailable(rohrkabel)
2022-07-13 16:00:30 -04:00
add_executable(${CMAKE_PROJECT_NAME} ${${CMAKE_PROJECT_NAME}_SRC})
2022-07-07 07:11:51 -04:00
2022-07-13 16:00:30 -04:00
target_link_libraries(${CMAKE_PROJECT_NAME} Qt5::Widgets Qt5::WebEngineWidgets rohrkabel)
2022-07-07 07:11:51 -04:00
2022-07-13 16:00:30 -04:00
install(TARGETS ${CMAKE_PROJECT_NAME} DESTINATION bin)
install(PROGRAMS assets/${CMAKE_PROJECT_NAME}.desktop DESTINATION share/applications)
2022-07-16 13:09:11 -04:00
install(FILES assets/discord.png DESTINATION share/pixmaps)
2022-07-13 16:00:30 -04:00
add_custom_target(appimage ${CMAKE_SOURCE_DIR}/scripts/build-appimage.sh WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})