File tree 2 files changed +8
-2
lines changed
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)
2
2
project (stdlib Fortran)
3
3
enable_testing ()
4
4
5
- include (${CMAKE_SOURCE_DIR } /cmake/stdlib.cmake)
5
+ include (${PROJECT_SOURCE_DIR } /cmake/stdlib.cmake)
6
6
7
7
# --- compiler options
8
8
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
@@ -52,3 +52,8 @@ if(NOT FYPP)
52
52
endif ()
53
53
54
54
add_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()
63
63
add_subdirectory (tests)
64
64
65
65
install (TARGETS fortran_stdlib
66
+ EXPORT fortran_stdlib-targets
66
67
RUNTIME DESTINATION bin
67
68
ARCHIVE DESTINATION lib
68
69
LIBRARY DESTINATION lib
69
- )
70
+ )
70
71
install (DIRECTORY ${LIB_MOD_DIR} DESTINATION include )
You can’t perform that action at this time.
0 commit comments