2015年12月21日

cmake添加链接库

摘要: 先:add_executable(${PROJECT_NAME} ${SRC_LIST})再:target_link_libraries(${PROJECT_NAME} SDL2 SDL2_image)序不可乱 阅读全文

posted @ 2015-12-21 15:15 南條愛乃 阅读(1845) 评论(0) 推荐(0) 编辑

cmake使用

摘要: 一、基本使用安装:下载二进制包后可直接解压使用从源码安装则执行命令:./bootstrap; make; make install——尝试执行bootstrap失败使用:cmake dir_path,生成工程文件或makefile文件二、概念out-of-sourcebuild,与in-source... 阅读全文

posted @ 2015-12-21 14:53 南條愛乃 阅读(212) 评论(0) 推荐(0) 编辑

CMake...

摘要: http://blog.atime.me/note/cmake.html简单的例子一个完整的Demo可参考这里。假设当前目录的结构为./a.cpp./b.cpp./include/common.h./include/defines.h./other/c.cpp./other/d.cpp./lib/l... 阅读全文

posted @ 2015-12-21 14:26 南條愛乃 阅读(358) 评论(0) 推荐(0) 编辑

导航