Cmake list10/23/2022 ![]() Check for working CXX compiler: /usr/bin/c++ - works Check for working CXX compiler: /usr/bin/c++ Check for working C compiler: /usr/bin/gcc - works Check for working C compiler: /usr/bin/gcc The CXX compiler identification is GNU 4.6.3 The C compiler identification is GNU 4.6.3 #Cmake list codeNow you are ready to build the Hello World project using CMake - execute the cmake command and pass it the directory that contains the source code and the CMakeLists.txt file - in this case “. The project code is in the GitHub repository directory, where you will see only the two files described in Listings 1 and 2 cd ls #Cmake list installFor example, under sudo apt-get install cmake -version To build the project, first test that you have CMake installed, and if not, install it using the package manager that is used by your flavor of Linux. The first argument to the add_executable() function is the name of the executable to be built, and the second argument is the source file from which to build the executable.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |