Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
af926fbe
Commit
af926fbe
authored
Aug 16, 2017
by
Dmitriy Vetutnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring include directories for build as CMake subdirectory (add_subdirectory(nghttp2))
parent
4c53da69
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
examples/CMakeLists.txt
examples/CMakeLists.txt
+2
-5
lib/CMakeLists.txt
lib/CMakeLists.txt
+4
-0
src/CMakeLists.txt
src/CMakeLists.txt
+7
-5
No files found.
examples/CMakeLists.txt
View file @
af926fbe
...
...
@@ -7,11 +7,8 @@ if(ENABLE_EXAMPLES)
COMPILE_FLAGS
"
${
WARNCXXFLAGS
}
${
CXX1XCXXFLAGS
}
"
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
${
CMAKE_SOURCE_DIR
}
/lib/includes
${
CMAKE_BINARY_DIR
}
/lib/includes
${
CMAKE_SOURCE_DIR
}
/src/includes
${
CMAKE_SOURCE_DIR
}
/third-party
${
CMAKE_CURRENT_SOURCE_DIR
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../third-party"
${
LIBEVENT_INCLUDE_DIRS
}
${
OPENSSL_INCLUDE_DIRS
}
...
...
lib/CMakeLists.txt
View file @
af926fbe
...
...
@@ -44,6 +44,10 @@ set_target_properties(nghttp2 PROPERTIES
VERSION
${
LT_VERSION
}
SOVERSION
${
LT_SOVERSION
}
C_VISIBILITY_PRESET hidden
)
target_include_directories
(
nghttp2 INTERFACE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/includes"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/includes"
)
if
(
HAVE_CUNIT
)
# Static library (for unittests because of symbol visibility)
...
...
src/CMakeLists.txt
View file @
af926fbe
...
...
@@ -8,11 +8,8 @@ set_source_files_properties(${cxx_sources} PROPERTIES
COMPILE_FLAGS
"
${
WARNCXXFLAGS
}
${
CXX1XCXXFLAGS
}
"
)
include_directories
(
"
${
CMAKE_SOURCE_DIR
}
/lib/includes"
"
${
CMAKE_BINARY_DIR
}
/lib/includes"
"
${
CMAKE_SOURCE_DIR
}
/lib"
"
${
CMAKE_SOURCE_DIR
}
/src/includes"
"
${
CMAKE_SOURCE_DIR
}
/third-party"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/includes"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../third-party"
${
JEMALLOC_INCLUDE_DIRS
}
${
SPDYLAY_INCLUDE_DIRS
}
...
...
@@ -252,6 +249,11 @@ if(ENABLE_ASIO_LIB)
${
OPENSSL_INCLUDE_DIRS
}
${
Boost_INCLUDE_DIRS
}
)
target_include_directories
(
nghttp2_asio INTERFACE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/../lib/includes"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../lib/includes"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/includes"
)
target_link_libraries
(
nghttp2_asio
nghttp2
${
OPENSSL_LIBRARIES
}
...
...
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