schrodinger / coordgenlibs

Schrodinger-developed 2D Coordinate Generation
BSD 3-Clause "New" or "Revised" License
42 stars 28 forks source link

build: use `PROJECT_VERSION` and install `coordgen-config-version.cmake` #127

Open e-kwsm opened 10 months ago

e-kwsm commented 10 months ago

https://cmake.org/cmake/help/v3.2/module/CMakePackageConfigHelpers.html#command:write_basic_package_version_file

This will install ${CMAKE_INSTALL_LIBDIR}/cmake/coordgen-config-version.cmake, which would be helpful for find_package versioning.