Commit 5c259d11 authored by Yingzhou Li's avatar Yingzhou Li
Browse files

Merge branch 'cmakeExport' into 'master'

Exports cmake file for other codes

See merge request !3
parents fe4a6768 f37ce538
Pipeline #2055 failed with stage
in 0 seconds
......@@ -36,7 +36,7 @@ STRING(REPLACE "-l" "" LIBS "${LIBS}")
FOREACH(str LIBS LIB_PATHS INC_PATHS)
convert_to_list(${str})
ENDFOREACH()
generate_library_targets(LIB_PATHS LIBS)
generate_library_targets(LIB_PATHS LIBS elsi_rci)
### Compilations ###
INCLUDE_DIRECTORIES(${CMAKE_Fortran_MODULE_DIRECTORY})
......@@ -52,3 +52,9 @@ ENDIF()
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/.elsi_rci.pc.in
${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/pkgconfig/elsi_rci.pc
@ONLY)
INSTALL(TARGETS EXPORT elsiConfig INCLUDES DESTINATION
${CMAKE_INSTALL_INCLUDEDIR})
EXPORT(EXPORT elsiConfig NAMESPACE elsi_rci:: FILE
elsi_rciConfig.cmake)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment