strawberry-audio-player-win.../ext/libstrawberry-common/CMakeLists.txt

44 lines
983 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.7)
2018-02-27 18:06:05 +01:00
set(SOURCES
core/logging.cpp
core/messagehandler.cpp
core/messagereply.cpp
core/workerpool.cpp
)
set(HEADERS
2021-06-20 19:04:08 +02:00
core/logging.h
2018-02-27 18:06:05 +01:00
core/messagehandler.h
core/messagereply.h
core/workerpool.h
)
2021-07-30 21:17:50 +02:00
qt_wrap_cpp(MOC ${HEADERS})
2018-02-27 18:06:05 +01:00
2021-07-21 17:45:22 +02:00
link_directories(${GLIB_LIBRARY_DIRS})
2020-06-17 22:56:20 +02:00
2020-04-23 20:59:09 +02:00
add_library(libstrawberry-common STATIC ${SOURCES} ${MOC})
2018-02-27 18:06:05 +01:00
2021-07-21 17:45:22 +02:00
target_include_directories(libstrawberry-common SYSTEM PRIVATE ${GLIB_INCLUDE_DIRS})
2020-06-17 22:56:20 +02:00
target_include_directories(libstrawberry-common PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}/src
)
2021-07-21 17:45:22 +02:00
if(Backtrace_FOUND)
target_include_directories(libstrawberry-common SYSTEM PRIVATE ${Backtrace_INCLUDE_DIRS})
2021-08-07 03:02:27 +02:00
endif()
2021-07-21 17:45:22 +02:00
2020-06-17 22:56:20 +02:00
target_link_libraries(libstrawberry-common PRIVATE
${CMAKE_THREAD_LIBS_INIT}
${GLIB_LIBRARIES}
2023-09-16 14:06:09 +02:00
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Network
2020-06-17 22:56:20 +02:00
)
2020-04-23 20:59:09 +02:00
if(Backtrace_FOUND)
2020-06-17 22:56:20 +02:00
target_link_libraries(libstrawberry-common PRIVATE ${Backtrace_LIBRARIES})
2021-08-07 03:02:27 +02:00
endif()