set(LibBGCode_SOURCE_DIR "" CACHE PATH "Optionally specify local LibBGCode source directory") set(_source_dir_line URL https://github.com/prusa3d/libbgcode/archive/6f43cb004ef3d3bda37dde49f6235e24d2717629.zip URL_HASH SHA256=eb5198caecb6a693a294af6a56c37b0adb1eb159a34a9c3116970b80659ee9f9) if (LibBGCode_SOURCE_DIR) set(_source_dir_line "SOURCE_DIR;${LibBGCode_SOURCE_DIR};BUILD_ALWAYS;ON") endif () # add_cmake_project(LibBGCode_deps # ${_source_dir_line} # SOURCE_SUBDIR deps # BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/ # CMAKE_ARGS # -DLibBGCode_Deps_DEP_DOWNLOAD_DIR:PATH=${${PROJECT_NAME}_DEP_DOWNLOAD_DIR} # -DDEP_CMAKE_OPTS:STRING=-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON # -DLibBGCode_Deps_SELECT_ALL:BOOL=OFF # -DLibBGCode_Deps_SELECT_heatshrink:BOOL=ON # -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} # -DLibBGCode_Deps_DEP_INSTALL_PREFIX=${${PROJECT_NAME}_DEP_INSTALL_PREFIX} # ) add_cmake_project(LibBGCode ${_source_dir_line} CMAKE_ARGS -DLibBGCode_BUILD_TESTS:BOOL=OFF -DLibBGCode_BUILD_CMD_TOOL:BOOL=OFF ) # set(DEP_LibBGCode_deps_DEPENDS ZLIB Boost) # set(DEP_LibBGCode_DEPENDS LibBGCode_deps) set(DEP_LibBGCode_DEPENDS ZLIB Boost heatshrink)