Main  /  Edit version 1  /  Edit version 2  /   /  Users Area

Difference "Howto" ver. 1 versus ver. 2

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 CMakeList.txt as you would for a simple application (see cmake documentation or see the cmake file of wikipp).
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)

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