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
|
|
|
|
core/logging.cpp
|
|
|
|
core/messagehandler.cpp
|
2012-01-22 19:41:26 +01:00
|
|
|
core/messagereply.cpp
|
2015-10-01 17:42:25 +02:00
|
|
|
core/recordingnetworkaccessmanager.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
|
2015-10-01 17:42:25 +02:00
|
|
|
core/recordingnetworkaccessmanager.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)
|
|
|
|
|
2012-01-06 00:22:51 +01:00
|
|
|
qt4_wrap_cpp(MOC ${HEADERS})
|
|
|
|
|
|
|
|
add_library(libclementine-common STATIC
|
|
|
|
${SOURCES}
|
|
|
|
${MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(libclementine-common
|
2012-11-11 08:55:16 +01:00
|
|
|
${PROTOBUF_LIBRARY}
|
2012-01-08 00:26:27 +01:00
|
|
|
${TAGLIB_LIBRARIES}
|
2012-01-06 00:22:51 +01:00
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
)
|