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.

17 lines
806 B

3 months ago
  1. ExternalProject_Add(
  2. BLISS-EP
  3. URL "http://www.tcs.hut.fi/Software/bliss/bliss-${BLISS_VERSION}.zip"
  4. DOWNLOAD_NO_PROGRESS 1
  5. PATCH_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/resources/bliss/CMakeLists.txt <SOURCE_DIR>
  6. CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
  7. BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/resources/lib/libbliss{STATIC_EXT} ${CMAKE_BINARY_DIR}/resources/lib/libbliss${DYNAMIC_EXT}
  8. )
  9. ExternalProject_Get_Property(BLISS-EP INSTALL_DIR)
  10. add_imported_library(BLISS SHARED "${INSTALL_DIR}/lib/libbliss${DYNAMIC_EXT}" "${INSTALL_DIR}/include")
  11. add_imported_library(BLISS STATIC "${INSTALL_DIR}/lib/libbliss${STATIC_EXT}" "${INSTALL_DIR}/include")
  12. add_dependencies(BLISS_SHARED BLISS-EP)
  13. add_dependencies(BLISS_STATIC BLISS-EP)
  14. add_dependencies(resources BLISS_SHARED BLISS_STATIC)