ExternalProject_Add(croncpp GIT_REPOSITORY https://github.com/mariusbancila/croncpp.git CONFIGURE_COMMAND cmake -DCMAKE_INSTALL_PREFIX= ) ExternalProject_Get_property(croncpp BINARY_DIR) set(CRONCPP_BINARY_DIR ${BINARY_DIR}) include_directories(${CRONCPP_BINARY_DIR}/include)