CMakeLists.txt 505 Bytes
Newer Older
Stanislav Bohm's avatar
Stanislav Bohm committed
1 2 3 4
project(loom-rt)
cmake_minimum_required(VERSION 2.8)
enable_testing()

Stanislav Bohm's avatar
Stanislav Bohm committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18
# 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)

mark_as_advanced(LIBUV_INCLUDE_DIR LIBUV_LIBRARY)

# Protobuffers
find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIRS})

Stanislav Bohm's avatar
Stanislav Bohm committed
19 20 21 22
add_subdirectory(src)
add_subdirectory(tests)

add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --verbose)