grove: initial groveLED implementation and move to maa 0.2.2 api
[contrib/upm.git] / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.8)
2 project (upm)
3
4 find_package (SWIG)
5 if (SWIG_FOUND)
6   include (${SWIG_USE_FILE})
7 endif ()
8
9 find_package (PkgConfig REQUIRED)
10 pkg_check_modules (MAA maa>=0.2.2)
11 message (INFO " found libmaa version: ${MAA_VERSION}")
12
13 set (CMAKE_SWIG_FLAGS "")
14
15 # add a target to generate API documentation with Doxygen
16 find_package (Doxygen)
17 if (DOXYGEN_FOUND)
18   configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
19   add_custom_target (doc
20     ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
21     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
22     COMMENT "Generating API documentation with Doxygen" VERBATIM
23   )
24 endif (DOXYGEN_FOUND)
25
26 add_subdirectory (src)
27 add_subdirectory (examples)