forked from Zhomart/glc
-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
50 lines (41 loc) · 873 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
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
PROJECT(glc)
SET(GLC_SOVER 0)
SET(GLC_VER 0.5.8)
SET(CMAKE_C_FLAGS "-Wall")
IF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "Release")
ENDIF (NOT CMAKE_BUILD_TYPE)
OPTION(QUICKLZ
"QuickLZ support"
ON)
OPTION(LZO
"LZO support"
ON)
OPTION(LZJB
"LZJB support"
ON)
OPTION(BINARIES
"Build and install glc-capture and glc-play"
ON)
OPTION(HEADERS
"Install headers"
ON)
OPTION(HOOK
"Build and install glc-hook"
ON)
OPTION(SCRIPTS
"Install sample scripts."
OFF)
IF (NOT GIT_DIR)
SET(GIT_DIR ${PROJECT_SOURCE_DIR}/.git)
ENDIF (NOT GIT_DIR)
ADD_SUBDIRECTORY(src)
IF (SCRIPTS)
IF (UNIX)
INSTALL(FILES scripts/capture.sh
scripts/encode.sh
scripts/play.sh
DESTINATION share/glc)
ENDIF (UNIX)
ENDIF (SCRIPTS)