Commit f0bca437 authored by Victor Yu's avatar Victor Yu

Add a pkgconfig file

parent 34cd69de
prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@
Name: @PROJECT_NAME@
Description: Electronic structure infrastructure reverse communication interface
Version: @PROJECT_VERSION@
URL: http://elsi-interchange.org
Libs: -L${libdir} -lelsi_rci
Cflags: -I${includedir}
......@@ -23,7 +23,6 @@ ENDIF()
IF(NOT DEFINED CMAKE_INSTALL_LIBDIR)
SET(CMAKE_INSTALL_LIBDIR "lib" CACHE PATH "Location to install library files")
ENDIF()
MESSAGE(STATUS "ELSI RCI will be installed to: ${CMAKE_INSTALL_PREFIX}")
### Options ###
OPTION(ENABLE_TESTS "Build ELSI_RCI test programs" ON)
......@@ -37,7 +36,6 @@ STRING(REPLACE "-l" "" LIBS "${LIBS}")
FOREACH(str LIBS LIB_PATHS INC_PATHS)
convert_to_list(${str})
ENDFOREACH()
MESSAGE(${LIB_PATHS})
generate_library_targets(LIB_PATHS LIBS)
### Compilations ###
......@@ -50,3 +48,7 @@ IF(ENABLE_TESTS)
ENABLE_TESTING()
ADD_SUBDIRECTORY(test)
ENDIF()
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/.elsi_rci.pc.in
${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/pkgconfig/elsi_rci.pc
@ONLY)
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