cmake pkg

This commit is contained in:
Erik Frojdh
2020-03-16 19:36:18 +01:00
parent b059ba7c90
commit bd01a5f2d2
2 changed files with 7 additions and 6 deletions

View File

@@ -203,11 +203,9 @@ if(SLS_BUILD_DOCS)
add_subdirectory(docs)
endif(SLS_BUILD_DOCS)
if(SLS_MASTER_PROJECT)
# Set install dir CMake packages
set(CMAKE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/cmake/sls)
set(CMAKE_INSTALL_DIR "share/cmake/${PROJECT_NAME}")
# Set the list of exported targets
set(PROJECT_LIBRARIES slsSupportLib slsDetectorShared slsReceiverShared)
# Generate and install package config file and version