CMake查漏补缺

1 、基本框架

 

test.cc:


 

#include



int main(void){



        std::cout<<"hello world"<
 

 

CMakeLists.txt:

 

add_executable(myapp test.cc)

 

 

命令:

cmake .

make

./myapp

 

你可能感兴趣的:(基础查漏补缺)