团长sama的博客CMakeError at CMakeLists.txt:9 (target_link_libraries): Cannot specify link libraries for target “main” which is not built by this project. 解决方法 在 CMakeLists.txt中将ADD_EXECUTABLE 放在TARGET_...
toutou205的博客《CMake实践》的第三章,初试cmake - cmake的helloworld中的 PROJECT (HELLO) SET(SRC_LISTmain.c) MESSAGE(status "This is BINARY dir " ${HELLO_BINARY_DIR}) MESSAGE(status "This is SOURCE dir " ${HELLO_...