Merge branch 'gpio' of github.com:tingleby/maa into tingleby-gpio
[contrib/mraa.git] / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.8)
2 project (maa)
3
4 set(SWIG_EXECUTABLE /usr/bin/swig)
5 FIND_PACKAGE(SWIG REQUIRED)
6 INCLUDE(${SWIG_USE_FILE})
7
8 SET(CMAKE_SWIG_FLAGS "")
9
10 option(test "Build all tests." OFF)
11
12 add_subdirectory (src)
13 add_subdirectory (examples)
14
15 if (test)
16   enable_testing ()
17   add_subdirectory (tests)
18 endif()