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
55b27058
Commit
55b27058
authored
Feb 12, 2016
by
Peter Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: build examples
parent
5297136b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
1 deletion
+55
-1
CMakeLists.txt
CMakeLists.txt
+1
-1
examples/CMakeLists.txt
examples/CMakeLists.txt
+54
-0
No files found.
CMakeLists.txt
View file @
55b27058
...
@@ -508,8 +508,8 @@ add_subdirectory(lib)
...
@@ -508,8 +508,8 @@ add_subdirectory(lib)
add_subdirectory
(
third-party
)
add_subdirectory
(
third-party
)
add_subdirectory
(
src
)
add_subdirectory
(
src
)
#add_subdirectory(src/includes)
#add_subdirectory(src/includes)
if
(
0
)
add_subdirectory
(
examples
)
add_subdirectory
(
examples
)
if
(
0
)
add_subdirectory
(
python
)
add_subdirectory
(
python
)
add_subdirectory
(
tests
)
add_subdirectory
(
tests
)
#add_subdirectory(tests/testdata)
#add_subdirectory(tests/testdata)
...
...
examples/CMakeLists.txt
0 → 100644
View file @
55b27058
if
(
ENABLE_EXAMPLES
)
# XXX replace this by lists (WARNCFLAGS_list)
string
(
REPLACE
" "
";"
c_flags
"
${
WARNCFLAGS
}
"
)
string
(
REPLACE
" "
";"
cxx_flags
"
${
WARNCXXFLAGS
}
${
CXX1XCXXFLAGS
}
"
)
add_compile_options
(
"$<$<COMPILE_LANGUAGE:C>:
${
c_flags
}
>"
"$<$<COMPILE_LANGUAGE:CXX>:
${
cxx_flags
}
>"
)
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
${
LIBEVENT_OPENSSL_INCLUDE_DIRS
}
${
OPENSSL_INCLUDE_DIRS
}
)
link_libraries
(
nghttp2
${
LIBEVENT_OPENSSL_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
APP_LIBRARIES
}
)
add_executable
(
client client.c $<TARGET_OBJECTS:http-parser>
)
add_executable
(
libevent_client libevent-client.c $<TARGET_OBJECTS:http-parser>
)
add_executable
(
libevent_server libevent-server.c $<TARGET_OBJECTS:http-parser>
)
add_executable
(
deflate deflate.c $<TARGET_OBJECTS:http-parser>
)
if
(
ENABLE_TINY_NGHTTPD
)
add_executable
(
tiny-nghttpd tiny-nghttpd.c $<TARGET_OBJECTS:http-parser>
)
endif
()
if
(
ENABLE_ASIO_LIB
)
foreach
(
name asio-sv asio-sv2 asio-cl asio-cl2
)
add_executable
(
${
name
}
${
name
}
.cc $<TARGET_OBJECTS:http-parser>
)
target_include_directories
(
${
name
}
PRIVATE
${
OPENSSL_INCLUDE_DIRS
}
${
Boost_INCLUDE_DIRS
}
)
target_link_libraries
(
${
name
}
nghttp2
nghttp2_asio
${
JEMALLOC_LIBRARIES
}
${
OPENSSL_LIBRARIES
}
${
Boost_LIBRARIES
}
${
APP_LIBRARIES
}
)
endforeach
()
endif
()
endif
()
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