1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-07 13:51:45 +01:00
strawberry-audio-player-win.../3rdparty/kdsingleapplication/CMakeLists.txt

12 lines
747 B
CMake
Raw Normal View History

2024-08-27 19:39:53 +02:00
cmake_minimum_required(VERSION 3.13)
2023-10-21 05:43:48 +02:00
set(SOURCES KDSingleApplication/src/kdsingleapplication.cpp KDSingleApplication/src/kdsingleapplication_localsocket.cpp)
set(HEADERS KDSingleApplication/src/kdsingleapplication.h KDSingleApplication/src/kdsingleapplication_localsocket_p.h)
qt_wrap_cpp(MOC ${HEADERS})
add_library(kdsingleapplication STATIC ${SOURCES} ${MOC})
if(NOT MSVC)
target_compile_options(kdsingleapplication PRIVATE -Wno-missing-declarations)
endif()
target_compile_definitions(kdsingleapplication PRIVATE -DKDSINGLEAPPLICATION_STATIC_BUILD)
target_include_directories(kdsingleapplication PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
2023-09-16 14:06:09 +02:00
target_link_libraries(kdsingleapplication PUBLIC Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Network)