1 cmake_minimum_required (VERSION 2.8)
6 include (${SWIG_USE_FILE})
9 find_package (PkgConfig REQUIRED)
10 pkg_check_modules (MAA maa>=0.2.1)
11 message (INFO " found libmaa version: ${MAA_VERSION}")
13 set (CMAKE_SWIG_FLAGS "")
15 # add a target to generate API documentation with Doxygen
16 find_package (Doxygen)
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
26 add_subdirectory (src)
27 add_subdirectory (examples)