![]() It is possible to follow in Cmakelist.txt (it is recommended to build a directory and test code according to your own ideas, and then introduce the corresponding file of the link to make the compilation successfully) 2. ![]() In fact, the directory structure here is not important. Here is a CALCULATE folder, which stores the C code related to calculating operations, and creates an INCLUDE folder to save the head file in the Calculating folder.Ĭreate a TESTCASE folder under unittest to store test cases, create a corresponding array test folder Calculating_test under testcase win-googletest Under SRC, you can create a folder corresponding to different functions. Directory structureįirst create a Win-GOOGLETEST directory, create two directory: SRC and Unittest in the directory, store the source code file and test code file respectively Click the folder-right-click-open in the integrated terminal Second, source code preparation 1. The follow-up command line operation is demonstrated in the integrated terminal. In cmakelists.txt, the command name is not distinguished, and the parameters and variables are lower -shaped Remember to check the environment variable option when installing, you can also run in CMD cmake -version, Check whether the configuration is successfulĬMAKE is used to generate makefile, generates rules in the cmakelists.txt file, generates a makefile through the CMAKE command, and compiles the project through the Makefile ![]() download linkĪfter the installation is completed, add the directory where G ++/GCC.EXE is located to Environment variableIn the CMD, run in CMD gcc -v, Display version information is successfulĭownload Windows X64 Installer version directly on the official website, download link ![]() ![]() You can also install mingw by downloading the CodeBlocks of the compiler. You can download mingw directly, x86_64-posix-sjlj download link ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |