2012-01-06 00:22:51 +01:00
|
|
|
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
|
|
|
|
2012-11-19 19:38:29 +01:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++0x")
|
2012-11-13 17:03:53 +01:00
|
|
|
|
2012-01-06 00:22:51 +01:00
|
|
|
set(SOURCES
|
|
|
|
core/closure.cpp
|
2016-06-28 16:06:46 +02:00
|
|
|
core/latch.cpp
|
2012-01-06 00:22:51 +01:00
|
|
|
core/logging.cpp
|
|
|
|
core/messagehandler.cpp
|
2012-01-22 19:41:26 +01:00
|
|
|
core/messagereply.cpp
|
2012-01-06 22:27:02 +01:00
|
|
|
core/waitforsignal.cpp
|
2012-01-06 00:22:51 +01:00
|
|
|
core/workerpool.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(HEADERS
|
|
|
|
core/closure.h
|
2016-06-28 16:06:46 +02:00
|
|
|
core/latch.h
|
2012-01-06 00:22:51 +01:00
|
|
|
core/messagehandler.h
|
2012-01-22 19:41:26 +01:00
|
|
|
core/messagereply.h
|
2012-01-06 00:22:51 +01:00
|
|
|
core/workerpool.h
|
|
|
|
)
|
|
|
|
|
2015-03-02 17:50:23 +01:00
|
|
|
if(APPLE)
|
|
|
|
list(APPEND SOURCES core/scoped_nsautorelease_pool.mm)
|
|
|
|
endif(APPLE)
|
|
|
|
|
2015-04-11 22:51:40 +02:00
|
|
|
qt5_wrap_cpp(MOC ${HEADERS})
|
2012-01-06 00:22:51 +01:00
|
|
|
|
|
|
|
add_library(libclementine-common STATIC
|
|
|
|
${SOURCES}
|
|
|
|
${MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(libclementine-common
|
2018-12-05 18:16:34 +01:00
|
|
|
Qt5::Core
|
|
|
|
Qt5::Network
|
2012-01-08 00:26:27 +01:00
|
|
|
${TAGLIB_LIBRARIES}
|
2012-01-06 00:22:51 +01:00
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
)
|