From 35274b3de3fcb57b737481b99b6c7ee2fd6d9242 Mon Sep 17 00:00:00 2001 From: Justs Zarins Date: Tue, 25 Oct 2022 13:14:36 +0100 Subject: [PATCH] Add library install options for cmake --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f8a9b4f..b217557 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -13,4 +13,8 @@ if ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "GNU") if (CMAKE_BUILD_TYPE STREQUAL "Debug") target_compile_options(fortran-yaml-c PRIVATE -Wunused -fcheck=all) endif() -endif() \ No newline at end of file +endif() + +install(TARGETS libyaml_interface fortran-yaml-c DESTINATION lib) +install(DIRECTORY ${CMAKE_BINARY_DIR}/modules DESTINATION .) +