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)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
core/closure.cpp
|
|
|
|
core/encoding.cpp
|
|
|
|
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
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
qt4_wrap_cpp(MOC ${HEADERS})
|
|
|
|
|
|
|
|
add_library(libclementine-common STATIC
|
|
|
|
${SOURCES}
|
|
|
|
${MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
# Use protobuf-lite if it's available
|
|
|
|
if(PROTOBUF_LITE_LIBRARY AND USE_PROTOBUF_LITE)
|
|
|
|
set(protobuf ${PROTOBUF_LITE_LIBRARY})
|
|
|
|
else(PROTOBUF_LITE_LIBRARY AND USE_PROTOBUF_LITE)
|
|
|
|
set(protobuf ${PROTOBUF_LIBRARY})
|
|
|
|
endif(PROTOBUF_LITE_LIBRARY AND USE_PROTOBUF_LITE)
|
|
|
|
|
|
|
|
target_link_libraries(libclementine-common
|
|
|
|
${protobuf}
|
2012-01-08 00:26:27 +01:00
|
|
|
${TAGLIB_LIBRARIES}
|
2012-01-06 00:22:51 +01:00
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
chardet
|
|
|
|
)
|
|
|
|
|