forked from OpenAMP/libmetal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (34 loc) · 917 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
cmake_minimum_required (VERSION 3.0.2)
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif()
if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
set (LIBMETAL_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
list (APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/platforms")
include (syscheck)
project (metal C)
include (CheckIncludeFiles)
include (CheckCSourceCompiles)
include (collect)
include (options)
include (depends)
foreach(_inc_path ${CMAKE_INCLUDE_PATH})
collect (PROJECT_INC_DIRS "${_inc_path}")
endforeach()
enable_testing ()
add_subdirectory (lib)
if (WITH_TESTS)
add_subdirectory (test)
endif (WITH_TESTS)
if (WITH_DOC)
add_subdirectory (doc)
endif (WITH_DOC)
if (WITH_EXAMPLES)
add_subdirectory (examples)
endif (WITH_EXAMPLES)
# vim: expandtab:ts=2:sw=2:smartindent