# include(GNUInstallDirs) file(GLOB_RECURSE SOURCES bus/null.cxx class/hv.cxx class/multi.cxx device/nulldev.cxx device/mscbdev.cxx device/mscbhv4.cxx mdev/mdev_mscb.cxx ) add_library(midas-drivers STATIC ${SOURCES}) set_target_properties(midas-drivers PROPERTIES EXPORT_NAME drivers ) add_library(midas::drivers ALIAS midas-drivers) target_link_libraries(midas-drivers PUBLIC midas::midas midas::mscb) target_include_directories(midas-drivers PUBLIC $ $ $ $ ) # headers install( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/drivers/ FILES_MATCHING PATTERN *.h ) install(TARGETS midas-drivers EXPORT midas-drivers-targets ) install(EXPORT midas-drivers-targets NAMESPACE midas:: DESTINATION lib/cmake/midas/ )