forked from Kistler-Group/sdbus-cpp
This improves usability of sdbus-c++ in downstream CMake projects. CMake options now have `SDBUSCPP_` prefix so potential conflicts with downstream options/variables are minimized. Also, all configurable options and variables are placed in a single place in the root CMake file.
13 lines
532 B
CMake
13 lines
532 B
CMake
# Building examples
|
|
|
|
add_executable(obj-manager-server org.freedesktop.DBus.ObjectManager/obj-manager-server.cpp)
|
|
target_link_libraries(obj-manager-server sdbus-c++)
|
|
|
|
add_executable(obj-manager-client org.freedesktop.DBus.ObjectManager/obj-manager-client.cpp)
|
|
target_link_libraries(obj-manager-client sdbus-c++)
|
|
|
|
if(SDBUSCPP_INSTALL)
|
|
install(TARGETS obj-manager-server DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT examples)
|
|
install(TARGETS obj-manager-client DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT examples)
|
|
endif()
|