-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
62 lines (54 loc) · 976 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 2.6)
project(shanghainesedict)
include_directories(
src
)
file (
GLOB
controllers_files
src/controllers/*
)
file (
GLOB
models_files
src/models/*
)
file (
GLOB
generics_files
src/generics/*
)
file (
GLOB
contents_files
src/contents/*
)
add_executable(
shanghainesedict
src/main.cpp
src/shanghainesedict.cpp
${controllers_files}
${models_files}
${generics_files}
${contents_files}
templates.cpp
)
target_link_libraries(
shanghainesedict
tato
cppcms
cppdb
booster
sqlite3
tokyodystopia
)
add_custom_command(
OUTPUT templates.cpp
COMMAND ../tools/cppcms_tmpl_cc
${CMAKE_CURRENT_SOURCE_DIR}/src/views/*/*.tmpl
${CMAKE_CURRENT_SOURCE_DIR}/src/views/*.tmpl
-o templates.cpp
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/src/views/*/*.tmpl
${CMAKE_CURRENT_SOURCE_DIR}/src/views/*.tmpl
)