forked from Kurento/kms-cmake-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (34 loc) · 1.12 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
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 2.8)
project("kms-cmake-utils")
message(STATUS "Running CMake for project: ${PROJECT_NAME}")
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
include(KurentoGitHelpers)
get_git_version(PROJECT_VERSION 1.3.3-dev)
set(CMAKE_MODULES_INSTALL_DIR
share/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules
CACHE STRING
"Destination (relative to CMAKE_INSTALL_PREFIX) for cmake modules files"
)
configure_file(FindKurentoHelpers.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/FindKurentoHelpers.cmake" @ONLY)
set(CMAKE_DIST_FILES
DpkgBuildFlags.cmake
FindGLIB-GENMARSHAL.cmake
FindGLIB-MKENUMS.cmake
GLibHelpers.cmake
GenericFind.cmake
KurentoGitHelpers.cmake
TestHelpers.cmake
VersionHelpers.cmake
)
foreach(DIST_FILE ${CMAKE_DIST_FILES})
install(FILES CMake/${DIST_FILE} DESTINATION ${CMAKE_MODULES_INSTALL_DIR})
endforeach()
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/FindKurentoHelpers.cmake"
DESTINATION ${CMAKE_MODULES_INSTALL_DIR}
)
set(DISABLE_TESTS FALSE CACHE BOOL "Disable tests execution")
if(NOT ${DISABLE_TESTS})
add_subdirectory(test)
endif()