forked from It4innovations/HyperLoom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (28 loc) · 951 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
project(loom-rt)
cmake_minimum_required(VERSION 2.8)
enable_testing()
file (STRINGS "version" LOOM_VERSION)
message(STATUS "Loom version: " ${LOOM_VERSION})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
# LibUV
find_path(LIBUV_INCLUDE_DIR uv.h
HINTS ${PC_LIBUV_INCLUDEDIR} ${PC_LIBUV_INCLUDE_DIRS}
${LIMIT_SEARCH})
find_library(LIBUV_LIBRARY
NAMES libuv uv)
include_directories(${LIBUV_INCLUDE_DIR})
mark_as_advanced(LIBUV_INCLUDE_DIR LIBUV_LIBRARY)
# Protobuffers
find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
# Python
find_package(PythonLibs 3.4 REQUIRED)
include_directories(${PYTHON_INCLUDE_DIRS})
# argp
find_package(Argp)
include_directories(${ARGP_INCLUDE_PATH})
add_subdirectory(pb)
add_subdirectory(src)
add_subdirectory(tests)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --verbose)