blob: dcba13a2addaa845a466d6028348821c5fa80870 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
find_package(Python2 REQUIRED)
add_library(library-cpp-build_info)
target_link_libraries(library-cpp-build_info PUBLIC
contrib-libs-cxxsupp
yutil
cpp-string_utils-base64
)
target_sources(library-cpp-build_info PRIVATE
${CMAKE_SOURCE_DIR}/library/cpp/build_info/build_info_static.cpp
${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
${CMAKE_BINARY_DIR}/library/cpp/build_info/sandbox.cpp
${CMAKE_BINARY_DIR}/library/cpp/build_info/build_info.cpp
)
add_custom_command(
OUTPUT
${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
DEPENDS
${CMAKE_SOURCE_DIR}/build/scripts/build_info_gen.py
COMMAND
Python2::Interpreter
${CMAKE_SOURCE_DIR}/build/scripts/build_info_gen.py
${CMAKE_BINARY_DIR}/library/cpp/build_info/buildinfo_data.h
\"${CMAKE_CXX_COMPILER}\"
\"${CMAKE_CXX_FLAGS}\"
)
set(
KOSHER_SVN_VERSION
)
set(
SANDBOX_TASK_ID
0
)
configure_file(
${CMAKE_SOURCE_DIR}/library/cpp/build_info/sandbox.cpp.in
${CMAKE_BINARY_DIR}/library/cpp/build_info/sandbox.cpp
)
set(
BUILD_TYPE
RELEASE
)
configure_file(
${CMAKE_SOURCE_DIR}/library/cpp/build_info/build_info.cpp.in
${CMAKE_BINARY_DIR}/library/cpp/build_info/build_info.cpp
)
|