322d9624a1
Enables parallel build mode. Accepted without CLA after discussion with Eclipse Foundation legal about very small patches that can only be implemented in one way. See bug report for acceptance of Certificate of Origin. Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=463884 Also-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
19 lines
572 B
CMake
19 lines
572 B
CMake
include_directories(${mosquitto_SOURCE_DIR}/lib ${mosquitto_SOURCE_DIR}/lib/cpp
|
|
${STDBOOL_H_PATH} ${STDINT_H_PATH})
|
|
link_directories(${mosquitto_BINARY_DIR}/lib)
|
|
|
|
add_library(mosquittopp SHARED
|
|
mosquittopp.cpp mosquittopp.h)
|
|
|
|
target_link_libraries(mosquittopp libmosquitto)
|
|
set_target_properties(mosquittopp PROPERTIES
|
|
VERSION ${VERSION}
|
|
SOVERSION 1
|
|
)
|
|
install(TARGETS mosquittopp RUNTIME DESTINATION ${BINDIR} LIBRARY DESTINATION ${LIBDIR})
|
|
install(FILES mosquittopp.h DESTINATION ${INCLUDEDIR})
|
|
|
|
if (UNIX)
|
|
install(CODE "EXEC_PROGRAM(/sbin/ldconfig)")
|
|
endif (UNIX)
|