VocaSTI/CMakeLists.txt

42 lines
891 B
CMake
Raw Normal View History

2024-08-06 22:25:48 -07:00
cmake_minimum_required(VERSION 3.15)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
project(VocaSTI VERSION 0.1.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
add_executable(VocaSTI
main.cpp
main.h
config.h
)
find_package(Qt6 COMPONENTS Core Network Xml REQUIRED)
find_package(QXmppQt6 CONFIG REQUIRED)
find_package(GStreamer REQUIRED)
find_package(GLIB2 REQUIRED)
find_package(GObject REQUIRED)
target_link_libraries(VocaSTI
PRIVATE
Qt6::Core
Qt6::Network
Qt6::Xml
QXmpp::QXmpp
${GSTREAMER_LIBRARY}
${GLIB2_LIBRARIES}
${GOBJECT_LIBRARIES}
)
target_include_directories(VocaSTI
PRIVATE
${GSTREAMER_INCLUDE_DIRS}
${GLIB2_INCLUDE_DIR}
${GOBJECT_INCLUDE_DIR}
/usr/local/include/QXmppQt6
)