comparison hoedown/CMakeLists.txt @ 2:2dce41ab17e8

hoedown: import 3.0.7
author David Demelier <markand@malikania.fr>
date Wed, 24 Feb 2016 20:54:52 +0100
parents
children 51a817a269c5
comparison
equal deleted inserted replaced
1:4d89bd8a3f7f 2:2dce41ab17e8
1 #
2 # CMakeLists.txt -- CMake build system for hoedown
3 #
4 # Copyright (c) 2016 David Demelier <markand@malikania.fr>
5 #
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
9 #
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #
18
19 cmake_minimum_required(VERSION 3.0)
20 project(hoedown C)
21
22 set(
23 SOURCES
24 ${hoedown_SOURCE_DIR}/src/autolink.c
25 ${hoedown_SOURCE_DIR}/src/autolink.h
26 ${hoedown_SOURCE_DIR}/src/buffer.c
27 ${hoedown_SOURCE_DIR}/src/buffer.h
28 ${hoedown_SOURCE_DIR}/src/document.c
29 ${hoedown_SOURCE_DIR}/src/document.h
30 ${hoedown_SOURCE_DIR}/src/escape.c
31 ${hoedown_SOURCE_DIR}/src/escape.h
32 ${hoedown_SOURCE_DIR}/src/html_blocks.c
33 ${hoedown_SOURCE_DIR}/src/html.c
34 ${hoedown_SOURCE_DIR}/src/html.h
35 ${hoedown_SOURCE_DIR}/src/html_smartypants.c
36 ${hoedown_SOURCE_DIR}/src/stack.c
37 ${hoedown_SOURCE_DIR}/src/stack.h
38 ${hoedown_SOURCE_DIR}/src/version.c
39 ${hoedown_SOURCE_DIR}/src/version.h
40 )
41
42 add_library(hoedown STATIC ${SOURCES})
43 target_include_directories(hoedown PUBLIC ${hoedown_SOURCE_DIR})