项目代码在gitlab.com上
git@gitlab.com:newlisp/cppwizard.git
该项目包含了两个工程,一个是console,普通的C++ 11工程,另一个是cppcms_base,是基于cppcms的web工程。
注意,默认配置的是clang编译器,cppcms库需要先安装。newLISP显然是需要事先安装的。目前仅支持linux系统。
每个工程目录下都有一个builder目录,编译时只需要运行./rebuild.lsp即可。
在builder目录下有一个配置文件build_config.lsp:
(set ‘include-paths
(list "../include"))
(set ‘src-paths
(list "../src/"
))
(set ‘libs
(list "pthread"
"boost_log"
"boost_log_setup"
"boost_system"
"boost_thread"
"boost_filesystem"
))
(set ‘o-dir "./object")
(set ‘bin-dir "bin")
(set ‘binary-name "example")
(set ‘cc "c++")
(global ‘cc)cppcms_base项目由于需要支持tmpl文件编译,所以配置多两个库cppcms和booster.
(set ‘include-paths
(list "../include"))
(set ‘src-paths
(list "../src/"
))
(set ‘libs
(list "pthread"
"cppcms"
"booster"
"boost_log"
"boost_log_setup"
"boost_system"
"boost_thread"
"boost_filesystem"
))
(set ‘o-dir "./object")
(set ‘bin-dir "bin")
(set ‘binary-name "web_app_example")
(set ‘cc "c++")
(global ‘cc)
newLISP C++编译示范工程cppwizard v1.2.0发布
原文地址:http://blog.csdn.net/csfreebird/article/details/42341143