1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-28 16:20:26 +01:00

48 lines
1.2 KiB
CMake
Raw Normal View History

2020-04-23 20:59:09 +02:00
cmake_minimum_required(VERSION 3.0)
2018-02-27 18:06:05 +01:00
2020-03-08 18:40:39 +01:00
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
2020-04-23 20:59:09 +02:00
include_directories(${CMAKE_CURRENT_BINARY_DIR})
2020-03-08 18:40:39 +01:00
include_directories(${CMAKE_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/src)
include_directories(${CMAKE_BINARY_DIR}/src)
if (Backtrace_FOUND)
include_directories(${Backtrace_INCLUDE_DIRS})
endif(Backtrace_FOUND)
2020-04-23 20:59:09 +02:00
include_directories(${GLIB_INCLUDE_DIRS})
include_directories(${GLIBCONFIG_INCLUDE_DIRS})
2020-03-08 18:40:39 +01:00
include_directories(${PROTOBUF_INCLUDE_DIRS})
2018-02-27 18:06:05 +01:00
set(SOURCES
core/closure.cpp
core/logging.cpp
core/messagehandler.cpp
core/messagereply.cpp
core/waitforsignal.cpp
core/workerpool.cpp
)
set(HEADERS
core/closure.h
core/messagehandler.h
core/messagereply.h
core/workerpool.h
)
if(APPLE)
list(APPEND SOURCES core/scoped_nsautorelease_pool.mm)
endif(APPLE)
qt5_wrap_cpp(MOC ${HEADERS})
2020-04-23 20:59:09 +02:00
add_library(libstrawberry-common STATIC ${SOURCES} ${MOC})
2018-02-27 18:06:05 +01:00
2020-04-23 20:59:09 +02:00
if(Backtrace_FOUND)
target_link_libraries(libstrawberry-common ${Backtrace_LIBRARIES})
2020-04-23 20:59:09 +02:00
endif(Backtrace_FOUND)
2018-02-27 18:06:05 +01:00
2020-04-23 20:59:09 +02:00
target_link_libraries(libstrawberry-common ${TAGLIB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(libstrawberry-common Qt5::Core Qt5::Network)