12/14/2023 0 Comments Download git repository![]() ![]() This is not correct way because on the moment of the project load the folder does not exist. Set(GTEST_INCLUDE_DIR $\ext\src\gtest\googletest\CMakeLists.txt) Other options can add to this list, like keyfile and accepthostkey. For older versions it appends GITSSHOPTS (specific to this module) to the variables above or via a wrapper script. If this would be a header-only project, I'd write something like: cmake_minimum_required(VERSION 2.8.8)ĮxternalProject_Get_Property(gtest source_dir) Options git will pass to ssh when used as protocol, it works via git ‘s GITSSH/GITSSHCOMMAND environment variables. For example, becomes: It then gives you a zip file to download. Next, add any files in the folder to the first commit using the following commands: > git add -all. From the command line, navigate to the root folder containing the code and run: > git init. If nothing happens, download GitHub Desktop and try again. Use the git init command to create a new repo from an existing folder on the computer. There are lot of manuals on how to use ExternalProject_Add for the adding gtest into the project, however most of these describe a method based on downloading zip archive with gtest and build it.Īs we know gtest is github-hosted and cmake-based project. To simply download a repository as a zip file: add the extra path '/zipball/master/' to the end of the repository URL and voila, it gives you a zip file of the whole lot. Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (. I faced with a problem when I was trying to use Google Test. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |