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
Stefano Sanfilippo ef048aa324 Update the minimum version of CMake to 3.14, required for LLVM 14.
Updating the readme too, pointing to the latest LTS for testing.
2023-01-26 18:27:04 +01:00

24 lines
619 B
CMake

# Copyright 2017 the Monicelli project authors. All rights reserved.
# Use of this source code is governed by a GPLv3 license, see LICENSE.txt.
cmake_minimum_required(VERSION 3.14)
project(Monicelli VERSION 2.1.0 LANGUAGES C CXX)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(CPACK_GENERATOR TGZ)
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
include(CPack)
include(Doxycelli)
if (MSVC)
add_compile_options(/W4 /WX)
else()
add_compile_options(-Wall -Wextra -pedantic -Werror -Wno-unused-parameter)
endif()
add_subdirectory(src)
install(FILES README.md LICENSE.txt DESTINATION doc/monicelli)