-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
62 lines (41 loc) · 1.41 KB
/
CMakeLists.txt
File metadata and controls
62 lines (41 loc) · 1.41 KB
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
62
cmake_minimum_required(VERSION 2.8.3)
project(qore-markdown-module)
set (VERSION_MAJOR 1)
set (VERSION_MINOR 0)
set (VERSION_PATCH 0)
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
FIND_PACKAGE (Qore REQUIRED)
include_directories( ${CMAKE_SOURCE_DIR}/src/sundown/src )
include_directories( ${CMAKE_SOURCE_DIR}/src/sundown/html )
set(CPP_SRC
)
set(QPP_SRC
src/markdown.qpp
)
set(SUNDOWN_SRC
src/sundown/html/houdini_href_e.c
src/sundown/html/houdini_html_e.c
src/sundown/html/html.c
src/sundown/html/html_smartypants.c
src/sundown/src/autolink.c
src/sundown/src/buffer.c
src/sundown/src/markdown.c
src/sundown/src/stack.c
)
#set(EFSW_QMOD qlib/FilePoller.qm)
#add_definitions(-DUSE_UTF8)
qore_wrap_qpp_value(QPP_SOURCES METALIST QPP_META_SRC ${QPP_SRC})
SET (module_name "markdown")
add_library(${module_name} SHARED ${CPP_SRC} ${QPP_SOURCES} ${SUNDOWN_SRC})
qore_binary_module(${module_name} "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
#qore_user_modules(${EFSW_QMOD})
qore_dist("${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
# install qpp metadata files
if (COMMAND qore_install_qpp_metadata)
qore_install_qpp_metadata(${module_name} ${QPP_META_SRC})
else()
install(FILES ${QPP_META_SRC}
DESTINATION ${CMAKE_INSTALL_DATADIR}/qore/metadata)
endif()
qore_config_info()