forked from kerberos-io/machinery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (34 loc) · 1.09 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
45
46
47
cmake_minimum_required( VERSION 2.8.3 )
project(Kerberos)
# ----------------------------------------------
# Check if compiling on the raspberry pi
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
set(IS_RASPBERRYPI 1)
endif()
# ----------------------------------------------
# Enable MongoDB
set(ENABLE_MONGODB 0)
# ----------------------------------------------
# Enable tests
set(TESTS_ENABLED 1)
if(TESTS_ENABLED)
include(CTest)
endif()
# ----------------------------------------------
# Variables
set(KERBEROS_DEPENDENCIES "")
set(KERBEROS_TEST_DEPENDENCIES "")
set(KERBEROS_LIBRARIES "")
set(KERBEROS_CORE_LIBRARY "")
set(KERBEROS_TEST_LIBRARY "")
set(KERBEROS_SRC "")
set(KERBEROS_FACTORY_ENTITIES "")
# ----------------------------------------------
# Build all the dependencies
include(${CMAKE_SOURCE_DIR}/cmake/Superbuild.cmake)
# ----------------------------------------------
# Link source and tests (if enabled)
add_subdirectory(src)
if(TESTS_ENABLED)
add_subdirectory(test)
endif()