Skip to content

Commit

Permalink
fix: install include files in include/plfit
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Dec 19, 2021
1 parent 6cfe999 commit d41ffd7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# plfit library changelog

## [Unreleased]

## [1.0.0]

### Changed

* Header files are now installed in the `plfit` subfolder of the designated
include directory.

### Fixed

* Expected output from tests cases is now printed on `stdout`, not `stderr`

## [0.9.1]

### Fixed
Expand Down Expand Up @@ -31,7 +44,8 @@

First version with a changelog entry.

[Unreleased]: https://github.com/ntamas/plfit/compare/0.9.1..HEAD
[Unreleased]: https://github.com/ntamas/plfit/compare/1.0.0..HEAD
[0.9.1]: https://github.com/ntamas/plfit/compare/0.9.1...1.0.0
[0.9.1]: https://github.com/ntamas/plfit/compare/0.9.0...0.9.1
[0.9.0]: https://github.com/ntamas/plfit/compare/0.8.2...0.9.0
[0.8.2]: https://github.com/ntamas/plfit/releases/tag/0.8.2
Expand Down
7 changes: 5 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ install(
${PROJECT_SOURCE_DIR}/src/plfit_mt.h
${PROJECT_SOURCE_DIR}/src/plfit_sampling.h
${PROJECT_BINARY_DIR}/src/plfit_version.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/plfit
)
install(
FILES ${PROJECT_BINARY_DIR}/libplfit.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)
install(FILES ${PROJECT_BINARY_DIR}/libplfit.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

add_executable(plfit-bin main.c getopt.c)
target_link_libraries(plfit-bin plfit ${MATH_LIBRARY})
Expand Down

0 comments on commit d41ffd7

Please sign in to comment.