set(ONCILLAHEADERS nodes/Trunk.h nodes/L0.h nodes/L1L2.h nodes/L3.h Oncilla.h OncillaSynchronizer.h utils/BackendLoader.h utils/OncillaBackend.h common.h exceptions/LoadingError.h exceptions/NotImplementedError.h) set(ONCILLASOURCES nodes/Trunk.cpp nodes/L0.cpp nodes/L1L2.cpp nodes/L3.cpp Oncilla.cpp OncillaSynchronizer.cpp utils/OncillaBackend.cpp exceptions/LoadingError.cpp exceptions/NotImplementedError.cpp utils/BackendLoader.cpp) add_library(oncilla SHARED ${ONCILLASOURCES} ${ONCILLAHEADERS}) target_link_libraries(oncilla ${RCI_LIBRARIES} ${BIOROB_CPP_LIBRARIES}) set_target_properties(oncilla PROPERTIES VERSION ${VERSION_STRING} SOVERSION ${VERSION_ABI}) install(TARGETS oncilla DESTINATION lib) set(DEST_INCLUDE_DIR include/liboncilla-${VERSION_API}) install(DIRECTORY ${PROJECT_SOURCE_DIR}/src/liboncilla ${PROJECT_BINARY_DIR}/src/liboncilla DESTINATION ${DEST_INCLUDE_DIR} FILES_MATCHING PATTERN "*.h" PATTERN "CMakeFiles" EXCLUDE )