diff options
author | Thomas White <taw@physics.org> | 2020-07-29 15:44:02 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | 42898f7d59e215434fa2aead84223f64b30fcee8 (patch) | |
tree | 5cdfb4c0c279c766efcbbc6c455ee58a5c8741f1 /libcrystfel/CMakeLists.txt | |
parent | 6105a7797b96418d940ced7d88c6cf2b308b9711 (diff) |
New way of injecting version information
Also, this fixes some incorrect headers and adds --version flags to
programs which didn't yet have them.
Diffstat (limited to 'libcrystfel/CMakeLists.txt')
-rw-r--r-- | libcrystfel/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/CMakeLists.txt b/libcrystfel/CMakeLists.txt index 5374ae00..79534f6b 100644 --- a/libcrystfel/CMakeLists.txt +++ b/libcrystfel/CMakeLists.txt @@ -10,6 +10,8 @@ find_package(BISON REQUIRED) find_package(Doxygen) pkg_search_module(FFTW fftw3) +configure_file(src/libcrystfel-version.c.cmake.in libcrystfel-version.c) + set(HAVE_CURSES ${CURSES_FOUND}) set(HAVE_FFTW ${FFTW_FOUND}) set(HAVE_XGANDALF ${XGANDALF_FOUND}) @@ -120,6 +122,7 @@ endif (DOXYGEN_FOUND) add_library(${PROJECT_NAME} SHARED ${LIBCRYSTFEL_SOURCES} + ${CMAKE_CURRENT_BINARY_DIR}/libcrystfel-version.c ${LIBCRYSTFEL_FFTW_SOURCES} ${LIBCRYSTFEL_HEADERS}) |