* API headers moved to api/ * smbus file added from libi2c and kernel i2c header cleaned up * fix compilation of swig and use i2c.h header Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
19 lines
322 B
CMake
19 lines
322 B
CMake
cmake_minimum_required (VERSION 2.8)
|
|
project (maa)
|
|
|
|
set(SWIG_EXECUTABLE /usr/bin/swig)
|
|
FIND_PACKAGE(SWIG REQUIRED)
|
|
INCLUDE(${SWIG_USE_FILE})
|
|
|
|
SET(CMAKE_SWIG_FLAGS "")
|
|
|
|
option(test "Build all tests." OFF)
|
|
|
|
add_subdirectory (src)
|
|
add_subdirectory (examples)
|
|
|
|
if (test)
|
|
enable_testing ()
|
|
add_subdirectory (tests)
|
|
endif()
|