The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

26 lines
822 B

4 weeks ago
  1. find_program(AUTORECONF autoreconf)
  2. if(NOT AUTORECONF)
  3. message(SEND_ERROR "Can not build cln, missing binary for autoreconf")
  4. endif()
  5. string(REPLACE "." "-" CLN_TAG ${CLN_VERSION})
  6. ExternalProject_Add(
  7. CLN-EP
  8. GIT_REPOSITORY "git://www.ginac.de/cln.git"
  9. GIT_TAG "cln_${CLN_TAG}"
  10. UPDATE_COMMAND ""
  11. CONFIGURE_COMMAND cd <SOURCE_DIR> && autoreconf -iv
  12. COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR>
  13. )
  14. ExternalProject_Get_Property(CLN-EP INSTALL_DIR)
  15. add_imported_library(CLN SHARED "${INSTALL_DIR}/lib/libcln${DYNAMIC_EXT}" "${INSTALL_DIR}/include")
  16. add_imported_library(CLN STATIC "${INSTALL_DIR}/lib/libcln${STATIC_EXT}" "${INSTALL_DIR}/include")
  17. add_dependencies(CLN_SHARED CLN-EP)
  18. add_dependencies(CLN_STATIC CLN-EP)
  19. add_dependencies(resources CLN_SHARED CLN_STATIC)
  20. mark_as_advanced(AUTORECONF)