No Description

CMakeLists.txt 857B

1234567891011121314151617181920212223242526272829
  1. cmake_minimum_required (VERSION 2.8)
  2. project (upm)
  3. find_package (SWIG)
  4. if (SWIG_FOUND)
  5. include (${SWIG_USE_FILE})
  6. endif ()
  7. find_package (Threads REQUIRED)
  8. find_package (PkgConfig REQUIRED)
  9. # force the libmaa version to be the required version
  10. pkg_check_modules (MAA REQUIRED maa>=0.2.6)
  11. message (INFO " found libmaa version: ${MAA_VERSION}")
  12. set (CMAKE_SWIG_FLAGS "")
  13. # add a target to generate API documentation with Doxygen
  14. find_package (Doxygen)
  15. if (DOXYGEN_FOUND)
  16. configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
  17. add_custom_target (doc
  18. ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
  19. WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
  20. COMMENT "Generating API documentation with Doxygen" VERBATIM
  21. )
  22. endif (DOXYGEN_FOUND)
  23. add_subdirectory (src)
  24. add_subdirectory (examples)