Commit 1eb5c4fe authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

install villas-common library

parent e08b8ac8
......@@ -45,6 +45,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
include(FindPkgConfig)
include(FeatureSummary)
include(GNUInstallDirs)
include(GetVersion)
# Get version info and buildid from Git
......
......@@ -87,3 +87,26 @@ target_link_libraries(villas-common PUBLIC
target_compile_definitions(villas-common PUBLIC
-D__STDC_FORMAT_MACROS -D_GNU_SOURCE
)
install(
TARGETS villas-common
EXPORT VILLASCommonConfig
COMPONENT lib
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(
DIRECTORY ${PROJECT_SOURCE_DIR}/include/villas/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/villas
COMPONENT devel
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY ${PROJECT_BINARY_DIR}/include/villas/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/villas
COMPONENT devel
FILES_MATCHING
PATTERN "*.h"
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment