2013-01-03 21:40:47 +01:00
|
|
|
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
|
|
|
|
2019-01-15 18:54:08 +01:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++0x")
|
|
|
|
|
2013-01-03 21:40:47 +01:00
|
|
|
set(MESSAGES
|
|
|
|
remotecontrolmessages.proto
|
|
|
|
)
|
|
|
|
|
2023-07-10 23:58:20 +02:00
|
|
|
add_library(libclementine-remote STATIC)
|
2013-01-03 21:40:47 +01:00
|
|
|
|
2023-07-10 23:58:20 +02:00
|
|
|
protobuf_generate(
|
|
|
|
LANGUAGE cpp
|
|
|
|
TARGET libclementine-remote
|
|
|
|
PROTOS ${MESSAGES}
|
2013-01-03 21:40:47 +01:00
|
|
|
)
|
|
|
|
|
2023-07-10 23:58:20 +02:00
|
|
|
set_property(
|
|
|
|
TARGET libclementine-remote
|
|
|
|
PROPERTY CXX_STANDARD 17
|
|
|
|
)
|
|
|
|
|
|
|
|
get_cmake_property(_variableNames VARIABLES)
|
|
|
|
list (SORT _variableNames)
|
|
|
|
foreach (_variableName ${_variableNames})
|
|
|
|
message(STATUS "${_variableName}=${${_variableName}}")
|
|
|
|
endforeach()
|
|
|
|
|
2013-01-03 21:40:47 +01:00
|
|
|
target_link_libraries(libclementine-remote
|
2023-07-10 23:58:20 +02:00
|
|
|
protobuf::libprotobuf
|
2013-01-03 21:40:47 +01:00
|
|
|
libclementine-common
|
|
|
|
)
|
|
|
|
|