|  | 
| 1 |  | -cmake_minimum_required(VERSION 3.10) | 
| 2 |  | -project(UnitTestBot DESCRIPTION "Tool that generates unit test by C/C++ source code, trying to reach all branches and maximize code coverage" | 
| 3 |  | -        HOMEPAGE_URL "https://unittestbot.org") | 
|  | 1 | +cmake_minimum_required(VERSION 3.12) | 
|  | 2 | + | 
|  | 3 | +project(UTBotCpp DESCRIPTION "Tool that generates unit test by C/C++ source code, trying to reach all branches and maximize code coverage" | 
|  | 4 | +        HOMEPAGE_URL "https://unittestbot.org" VERSION ${PROJECT_VERSION}) | 
| 4 | 5 | set(PROJECT_ORG "UnitTestBot") | 
| 5 |  | -if (NOT CMAKE_PROJECT_VERSION) | 
| 6 |  | -    set(CMAKE_PROJECT_VERSION "DevBuild") | 
| 7 |  | -endif () | 
|  | 6 | + | 
|  | 7 | +message("Project: ${PROJECT_NAME}") | 
|  | 8 | +message("Organisation: ${PROJECT_ORG}") | 
|  | 9 | +message("Homepage: ${CMAKE_PROJECT_HOMEPAGE_URL}") | 
|  | 10 | +message("Version: ${CMAKE_PROJECT_VERSION}") | 
|  | 11 | +message("Run from: ${RUN_INFO}") | 
| 8 | 12 | 
 | 
| 9 | 13 | configure_file(config.h.in config.h @ONLY) | 
| 10 | 14 | 
 | 
| @@ -136,29 +140,29 @@ endif () | 
| 136 | 140 | ################################################################################ | 
| 137 | 141 | # Library | 
| 138 | 142 | ################################################################################ | 
| 139 |  | -add_library(UnitTestBotLib STATIC ${ALL_PROTO_GENERATED_SOURCES} ${ALL_SOURCES}) | 
| 140 |  | -target_include_directories(UnitTestBotLib PUBLIC | 
|  | 143 | +add_library(UTBotCppLib STATIC ${ALL_PROTO_GENERATED_SOURCES} ${ALL_SOURCES}) | 
|  | 144 | +target_include_directories(UTBotCppLib PUBLIC | 
| 141 | 145 |         ${CMAKE_CURRENT_SOURCE_DIR}/src | 
| 142 | 146 |         resources | 
| 143 | 147 |         thirdparty/ordered-map) | 
| 144 | 148 | 
 | 
| 145 |  | -target_link_libraries(UnitTestBotLib PUBLIC clangTooling clangBasic clangASTMatchers clangRewriteFrontend | 
|  | 149 | +target_link_libraries(UTBotCppLib PUBLIC clangTooling clangBasic clangASTMatchers clangRewriteFrontend | 
| 146 | 150 |         gRPC::grpc++_reflection | 
| 147 | 151 |         gRPC::grpc++ | 
| 148 | 152 |         protobuf::libprotobuf | 
| 149 | 153 |         loguru | 
| 150 | 154 |         kleeRunner | 
| 151 | 155 |         ) | 
| 152 | 156 | if (ENABLE_PRECOMPILED_HEADERS) | 
| 153 |  | -    target_precompile_headers(UnitTestBotLib PUBLIC pch.h) | 
|  | 157 | +    target_precompile_headers(UTBotCppLib PUBLIC pch.h) | 
| 154 | 158 | endif () | 
| 155 | 159 | 
 | 
| 156 | 160 | ################################################################################ | 
| 157 | 161 | # Executable | 
| 158 | 162 | ################################################################################ | 
| 159 | 163 | add_llvm_executable(utbot main.cpp) | 
| 160 | 164 | target_link_libraries(utbot PUBLIC | 
| 161 |  | -        UnitTestBotLib | 
|  | 165 | +        UTBotCppLib | 
| 162 | 166 |         loguru | 
| 163 | 167 |         ) | 
| 164 | 168 | 
 | 
| @@ -186,7 +190,7 @@ if (ENABLE_UNIT_TESTS) | 
| 186 | 190 |             UTBot_UnitTests | 
| 187 | 191 |             PUBLIC | 
| 188 | 192 |             gtest | 
| 189 |  | -            UnitTestBotLib | 
|  | 193 | +            UTBotCppLib | 
| 190 | 194 |     ) | 
| 191 | 195 | 
 | 
| 192 | 196 |     if (ENABLE_PRECOMPILED_HEADERS) | 
|  | 
0 commit comments