New upstream version 4.3.1
Bernhard Schmidt
3 years ago
19 | 19 | # |
20 | 20 | ############################################################################ |
21 | 21 | |
22 | cmake_minimum_required(VERSION 3.11) # we need CMake 3.11 for defining 'package_source' target as custom target | |
22 | cmake_minimum_required(VERSION 3.1) | |
23 | 23 | project(BELR VERSION 4.3.0 LANGUAGES C CXX) |
24 | 24 | |
25 | 25 | set(BELR_SO_VERSION "1") |
29 | 29 | option(ENABLE_STRICT "Build with strict compile options." YES) |
30 | 30 | option(ENABLE_TOOLS "Turn on or off compilation of tools." YES) |
31 | 31 | option(ENABLE_TESTS "Enable compilation of unit tests." YES) |
32 | option(ENABLE_PACKAGE_SOURCE "Create 'package_source' target for source archive making (CMake >= 3.11)" OFF) | |
32 | 33 | |
33 | 34 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") |
34 | 35 | |
150 | 151 | DESTINATION ${ConfigPackageLocation} |
151 | 152 | ) |
152 | 153 | |
153 | add_subdirectory(build) | |
154 | if (ENABLE_PACKAGE_SOURCE) | |
155 | add_subdirectory(build) | |
156 | endif() |