Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
5fcfada5
Commit
5fcfada5
authored
Nov 15, 2021
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: document CMakeLists.txt hierarchy
parent
c3b7ace9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
1 deletions
+14
-1
CMakeLists.txt
+4
-1
examples/CMakeLists.txt
+2
-0
fuzzers/CMakeLists.txt
+2
-0
src/libgit2/CMakeLists.txt
+3
-0
src/util/CMakeLists.txt
+1
-0
tests/CMakeLists.txt
+2
-0
No files found.
CMakeLists.txt
View file @
5fcfada5
#
CMake build script for the libgit2 project
#
libgit2: the cross-platform, linkable library implementation of git.
# See `README.md` for build instructions.
#
# This top-level CMakeLists.txt sets up configuration options and
# determines which subprojects to build.
cmake_minimum_required
(
VERSION 3.5.1
)
...
...
examples/CMakeLists.txt
View file @
5fcfada5
# examples: code usage examples of libgit2
file
(
GLOB SRC_EXAMPLES *.c *.h
)
add_executable
(
lg2
${
SRC_EXAMPLES
}
)
...
...
fuzzers/CMakeLists.txt
View file @
5fcfada5
# fuzzers: libFuzzer and standalone fuzzing utilities
if
(
BUILD_FUZZERS AND NOT USE_STANDALONE_FUZZERS
)
set
(
CMAKE_REQUIRED_FLAGS
"-fsanitize=fuzzer-no-link"
)
add_c_flag
(
-fsanitize=fuzzer
)
...
...
src/libgit2/CMakeLists.txt
View file @
5fcfada5
# libgit2: the shared library: this CMakeLists.txt compiles the core
# git library functionality.
add_library
(
git2internal OBJECT
)
set_target_properties
(
git2internal PROPERTIES C_STANDARD 90
)
set_target_properties
(
git2internal PROPERTIES C_EXTENSIONS OFF
)
...
...
src/util/CMakeLists.txt
View file @
5fcfada5
...
...
@@ -54,6 +54,7 @@ list(SORT UTIL_SRC_HASH)
#
target_sources(util PRIVATE
${
UTIL_SRC
}
${
UTIL_SRC_OS
}
${
UTIL_SRC_HASH
}
)
ide_split_sources(util)
target_include_directories(util PRIVATE
${
UTIL_INCLUDES
}
${
LIBGIT2_DEPENDENCY_INCLUDES
}
PUBLIC
${
libgit2_SOURCE_DIR
}
/include)
target_include_directories(util SYSTEM PRIVATE
${
LIBGIT2_SYSTEM_INCLUDES
}
)
tests/CMakeLists.txt
View file @
5fcfada5
# tests: the unit and integration tests for libgit2
set
(
Python_ADDITIONAL_VERSIONS 3 2.7
)
find_package
(
PythonInterp
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment