File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.14.0)
22project (stdlib Fortran)
33enable_testing ()
44
5- include (${CMAKE_SOURCE_DIR } /cmake/stdlib.cmake)
5+ include (${PROJECT_SOURCE_DIR } /cmake/stdlib.cmake)
66
77# --- compiler options
88if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
@@ -52,3 +52,8 @@ if(NOT FYPP)
5252endif ()
5353
5454add_subdirectory (src)
55+
56+ install (EXPORT fortran_stdlib-targets
57+ NAMESPACE fortran_stdlib::
58+ DESTINATION "lib/cmake/fortran_stdlib"
59+ )
Original file line number Diff line number Diff line change @@ -63,8 +63,9 @@ endif()
6363add_subdirectory (tests)
6464
6565install (TARGETS fortran_stdlib
66+ EXPORT fortran_stdlib-targets
6667 RUNTIME DESTINATION bin
6768 ARCHIVE DESTINATION lib
6869 LIBRARY DESTINATION lib
69- )
70+ )
7071install (DIRECTORY ${LIB_MOD_DIR} DESTINATION include )
You can’t perform that action at this time.
0 commit comments