项目代码在gitlab.com上
[email protected]: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)
时间: 2024-11-08 23:17:54