mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
install villas-common library
This commit is contained in:
parent
d66ae1a893
commit
89d0bce798
2 changed files with 24 additions and 0 deletions
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue