-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pkgconfig to expose libraries (#21)
* Use pkg-config to find installed bmi-fortran spec * Add pkg-config files for heatf model and its BMI * Use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR * Require bmif library * Add pkg-config dependency to test environment * Use LIBRARY_PREFIX env variable on Windows * Test for pkg-config files; run ctest * Make SHLIB_EXT env variable for unix-based systems * Test for installed files * Remove duplicate sample configuration file * List pkg-config requirement
- Loading branch information
Showing
8 changed files
with
91 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
exec_prefix=${prefix} | ||
libdir=${exec_prefix}/lib | ||
includedir=${prefix}/include | ||
|
||
Name: @bmi_name@ | ||
Description: BMI for the heatf model | ||
Version: @CMAKE_PROJECT_VERSION@ | ||
Requires: @model_name@, @BMIF_LIBRARIES@ | ||
Libs: -L${libdir} -l@bmi_name@ | ||
Cflags: -I${includedir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
exec_prefix=${prefix} | ||
libdir=${exec_prefix}/lib | ||
includedir=${prefix}/include | ||
|
||
Name: @model_name@ | ||
Description: The two-dimensional heat equation in Fortran | ||
Version: @CMAKE_PROJECT_VERSION@ | ||
Libs: -L${libdir} -l@model_name@ | ||
Cflags: -I${includedir} |
Empty file.