This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
pacciani/CMakeLists.txt

32 lines
773 B
CMake
Raw Normal View History

2017-10-12 22:36:56 +02:00
# Copyright 2017 the Monicelli project authors. All rights reserved.
# Use of this source code is governed by a GPLv3 license, see LICENSE.txt.
2014-11-29 00:47:50 +01:00
2017-10-12 22:36:56 +02:00
cmake_minimum_required(VERSION 3.0)
2014-11-29 21:44:47 +01:00
project(Monicelli)
2015-03-08 13:27:39 +01:00
set(CMAKE_BUILD_TYPE Release)
2017-10-12 22:36:56 +02:00
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
2015-03-08 13:27:39 +01:00
2017-10-12 22:36:56 +02:00
find_package(Doxygen)
add_subdirectory(src)
2017-10-12 22:36:56 +02:00
if (DOXYGEN_FOUND)
set(DOXYGEN_CONFIG ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${DOXYGEN_CONFIG}
@ONLY
)
add_custom_target(doc
DEPENDS ${DOXYGEN_CONFIG}
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_CONFIG}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
VERBATIM
)
endif()
2017-10-12 22:36:56 +02:00
install(FILES README.md LICENSE.txt DESTINATION doc/monicelli)