fix library name and add public header intstallation

This commit is contained in:
Fabian Posch 2024-01-11 11:53:17 -05:00
parent 4ecb10ab12
commit 148f5bed4d

View file

@ -21,7 +21,7 @@
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.15)
project( project(
act-cluster-library act_cluster
VERSION 0.0.1 VERSION 0.0.1
DESCRIPTION "Library to interact with the ACT cluster system." DESCRIPTION "Library to interact with the ACT cluster system."
) )
@ -85,5 +85,12 @@ target_link_libraries(
# specify install targets # specify install targets
install( install(
TARGETS ${PROJECT_NAME} TARGETS ${PROJECT_NAME}
DESTINATION lib LIBRARY DESTINATION lib
)
# install the public headers
install(
DIRECTORY ${CMAKE_SOURCE_DIR}/include/
DESTINATION include/cluster
FILES_MATCHING PATTERN "*.h*"
) )