mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
32 lines
754 B
CMake
32 lines
754 B
CMake
project(kmixer)
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
find_package(KDELibs4 4.24.0 REQUIRED)
|
|
include(FeatureSummary)
|
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
endif()
|
|
|
|
find_package(ALSA REQUIRED)
|
|
set_package_properties(ALSA PROPERTIES
|
|
DESCRIPTION "Advanced Linux Sound Architecture"
|
|
URL "https://alsa-project.org/wiki/Main_Page"
|
|
PURPOSE "KMixer ALSA backend"
|
|
)
|
|
|
|
include_directories(${ALSA_INCLUDE_DIR})
|
|
|
|
set(kmixer_sources
|
|
kmixer.cpp
|
|
kmixerwidgets.cpp
|
|
)
|
|
|
|
add_executable(kmixer ${kmixer_sources})
|
|
target_link_libraries(kmixer
|
|
KDE4::kdeui
|
|
KDE4::kfile
|
|
${ALSA_LIBRARIES}
|
|
)
|
|
|
|
install(TARGETS kmixer DESTINATION ${KDE4_BIN_INSTALL_DIR})
|