Commit d0069706 authored by Yaroslav Gevorkov's avatar Yaroslav Gevorkov
Browse files

pkg-config files added

parent 61bcb064
cmake_minimum_required(VERSION 3.1)
project(pinkIndexer)
project(pinkIndexer VERSION 1.0)
include(GNUInstallDirs)
option(PINKINDEXER_BUILD_EXECUTABLE "Build the test executable for pinkIndexer" OFF)
......@@ -82,8 +84,8 @@ set_target_properties(pinkIndexer PROPERTIES
install(TARGETS pinkIndexer
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(
......@@ -95,3 +97,7 @@ install(
PATTERN "Eigen" EXCLUDE
)
# pinkIndexer.pc
configure_file(pinkIndexer.pc.in pinkIndexer.pc)
install(FILES ${CMAKE_BINARY_DIR}/pinkIndexer.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
\ No newline at end of file
prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=${CMAKE_INSTALL_PREFIX}
libdir=${CMAKE_INSTALL_FULL_LIBDIR}
includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR}
Name: pinkIndexer
Description: Indexing program for serial X-ray crystallography
Version: ${PROJECT_VERSION}
Cflags: -I${CMAKE_INSTALL_FULL_INCLUDEDIR}
Libs: -L${CMAKE_INSTALL_FULL_LIBDIR} -lpinkIndexer
Supports Markdown
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