aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 91c7500d8ba51d9851ec74235b9663787aa94614 (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
56
57
58
59
60
61
62
63
64
65
cmake_minimum_required(VERSION 2.8)
project(ChangeLog)

set(
	CMAKE_CXX_FLAGS
	"${CMAKE_CXX_FLAGS} -std=c++14 -W -Wall -Wextra -Winline -fPIC"
)

include_directories(
	src/
)

add_library(
	ChangeLog
	SHARED
		src/main.cc
		src/bootstrap.cc
		src/init/alloc.cc
		src/utility/io.cc
		src/utility/logger.cc
		src/tracking/path_matcher.cc
		src/tracking/change_tracker.cc
)

target_link_libraries(
	ChangeLog
		dl
		boost_system
		boost_filesystem
)

install(
	PROGRAMS
		change
	DESTINATION
		bin
)

install(
	TARGETS
		ChangeLog
	LIBRARY DESTINATION
		lib
)

install(
	DIRECTORY DESTINATION
		share/libChangeLog
	DIRECTORY_PERMISSIONS
		OWNER_READ OWNER_WRITE OWNER_EXECUTE
		GROUP_READ GROUP_EXECUTE
		WORLD_READ WORLD_EXECUTE
)

install(
	DIRECTORY
		src/filter
	DESTINATION
		share/libChangeLog
	FILE_PERMISSIONS
		OWNER_READ OWNER_WRITE
		GROUP_READ WORLD_READ
	PATTERN
		"filter/*.filter"
)