cmake_minimum_required(VERSION 3.15) project (motionproxyhelper) option(BUILD_SHARED_LIBS "Build using shared libraries" ON) find_package(cpptango CONFIG REQUIRED) find_package(yat CONFIG REQUIRED) add_compile_definitions( PROJECT_NAME=${PROJECT_NAME} PROJECT_VERSION=${PROJECT_VERSION} ) file(GLOB_RECURSE sources src/*.cpp ) set(includedirs src ) add_library(motionproxyhelper ${sources}) target_include_directories(motionproxyhelper PRIVATE ${includedirs}) target_link_libraries(motionproxyhelper PRIVATE cpptango::cpptango) target_link_libraries(motionproxyhelper PRIVATE yat::yat) if(MAJOR_VERSION) set_target_properties(motionproxyhelper PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${MAJOR_VERSION}) endif() install (DIRECTORY ${CMAKE_SOURCE_DIR}/src/ DESTINATION include FILES_MATCHING PATTERN "*.h" ) install (TARGETS motionproxyhelper LIBRARY DESTINATION ${LIB_INSTALL_DIR})