aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 53fa29caf848a5552b98fd7fed2f374420ecbacf (plain)
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
cmake_minimum_required(VERSION 2.8)
project(InputXSLT)

set(
	CMAKE_CXX_FLAGS
	"-std=c++11 -W -Wall -Wextra -Winline -pedantic -g"
)

include_directories(
	src/
)

add_library(
	InputXSLT
	STATIC
	src/plattform_guard.cc
	src/transformation_facade.cc
	src/function/read_file.cc
	src/function/read_xml_file.cc
	src/function/read_directory.cc
	src/support/filesystem_context.cc
	src/support/dom/document_cache.cc
	src/support/dom/document_cache_item.cc
)

add_executable(
	example
	example.cc
)

add_executable(
	test
	test.cc
	tests/function_read_file.cc
)

set(
	Libraries
	InputXSLT
	xalan-c
	xerces-c
	boost_system
	boost_filesystem
)

target_link_libraries(
	example
	${Libraries}
)

target_link_libraries(
	test
	gtest
	${Libraries}
)