Main  /  Edit version 2  /  Edit version 3  /   /  Users Area

Difference "Howto" ver. 2 versus ver. 3

Content:

<!--toc-->
## Introduction
This is a collection of small howtos. Most experienced C++ developers would find the official documentation enough, but some less experienced developers might find the following useful.
## How to compile the templates with cmake?
First, create your CMakeLists.txt as you would for a simple application (see cmake documentation or see the [cmake file of wikipp](http://cppcms.svn.sourceforge.net/viewvc/cppcms/wikipp/branches/for_cppcms_v100/CMakeLists.txt?view=log)).
In order for cmake to compile the template whenever your .tmpl files have changed and only then, add the following to your CMakeList.txt file:
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/my_view.cpp
COMMAND cppcms_tmpl_cc
my_view.tmpl
-o ${CMAKE_CURRENT_BINARY_DIR}/my_view.cpp
${TEMPLATES}
DEPENDS my_view.tmpl)
See also the [discussion at Stack overflow](http://stackoverflow.com/questions/4643531).

About

CppCMS is a web development framework for performance demanding applications.

Support This Project

SourceForge.net Logo

Поддержать проект

CppCMS needs You


Navigation

Main Page


Valid CSS | Valid XHTML 1.0