forked from nnstreamer/TAOS-CI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (28 loc) · 1 KB
/
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
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(taos-ci)
# Specify an installation path of TAOS-CI
IF(TAOS_CI_INSTALL_DIR)
ELSE(TAOS_CI_INSTALL_DIR)
SET(TAOS_CI_INSTALL_DIR "/var/www/html/TAOS-CI")
ENDIF(TAOS_CI_INSTALL_DIR)
IF(NOT CMAKE_INSTALL_SYSCONFDIR)
set(CMAKE_INSTALL_SYSCONFDIR "etc" CACHE PATH "Read-only single-machine data (etc)")
ENDIF(CMAKE_INSTALL_SYSCONFDIR)
IF(NOT CMAKE_INSTALL_LOCALSTATEDIR)
set(CMAKE_INSTALL_LOCALSTATEDIR "var" CACHE PATH "Modifiable single-machine data (var)")
ENDIF(CMAKE_INSTALL_LOCALSTATEDIR)
# Use GLOB_RECURSE to read all files in ./ci/ folder.
FILE(GLOB_RECURSE TAOS_CI_FILES ${PROJECT_SOURCE_DIR}/ci/*)
FUNCTION(print_list)
FOREACH(msg ${ARGV})
MESSAGE("${msg}")
ENDFOREACH()
ENDFUNCTION()
print_list(${TAOS_CI_FILES})
# Install script files for automated pull request test and webhook controller
INSTALL(DIRECTORY
${PROJECT_SOURCE_DIR}/ci
DESTINATION ${TAOS_CI_INSTALL_DIR}
USE_SOURCE_PERMISSIONS
PATTERN "*.md" EXCLUDE
)