Codebase list belr / fa26436
New upstream version 4.3.1 Bernhard Schmidt 3 years ago
2 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1919 #
2020 ############################################################################
2121
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)
2323 project(BELR VERSION 4.3.0 LANGUAGES C CXX)
2424
2525 set(BELR_SO_VERSION "1")
2929 option(ENABLE_STRICT "Build with strict compile options." YES)
3030 option(ENABLE_TOOLS "Turn on or off compilation of tools." YES)
3131 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)
3233
3334 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
3435
150151 DESTINATION ${ConfigPackageLocation}
151152 )
152153
153 add_subdirectory(build)
154 if (ENABLE_PACKAGE_SOURCE)
155 add_subdirectory(build)
156 endif()
1919 #
2020 ############################################################################
2121
22 cmake_minimum_required(VERSION 3.11) # we need CMake 3.11 for defining 'package_source' target as custom target
23
2224 if(NOT CPACK_PACKAGE_NAME)
2325 set(CPACK_PACKAGE_NAME "belr")
2426 endif()