Skip to content

Commit

Permalink
Restore generation of lmfit.pc
Browse files Browse the repository at this point in the history
  • Loading branch information
jwuttke committed Dec 18, 2018
1 parent 37bc6ba commit 1ee68fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)

project(lmfit C)
set(lmfit_SOVERSION 8) # API version
set(lmfit_VERSION ${lmfit_SOVERSION}.0) # lib version
set(lmfit_VERSION ${lmfit_SOVERSION}.1) # lib version

# --- Declare project-wide user flags, and set default values ---
option(FITTEST "Build with FitTest" OFF)
Expand All @@ -23,6 +23,10 @@ if(PEDANTIC)
add_compile_options(-pedantic -Wall)
endif()

configure_file("lmfit.pc.in" "lmfit.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lmfit.pc"
DESTINATION "${destination}/lib/pkgconfig/")

add_subdirectory(lib)
add_subdirectory(demo)
if (${LIB_MAN})
Expand Down
10 changes: 10 additions & 0 deletions lmfit.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
prefix=@destination@
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

Name: lmfit
Description: Levenberg-Marquardt mean-squares minimization and curve fitting
Version: @lmfit_VERSION@
Libs: -L${libdir} -llmfit
Cflags: -I${includedir}

0 comments on commit 1ee68fa

Please sign in to comment.