Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
e0c54dbb
Commit
e0c54dbb
authored
Jan 09, 2018
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make bin and lib in /home/zjs/gitrepo/brpc/output/
parent
a6d7e207
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
CMakeLists.txt
CMakeLists.txt
+18
-2
No files found.
CMakeLists.txt
View file @
e0c54dbb
...
...
@@ -131,9 +131,12 @@ set(DYNAMIC_LIB
)
# for *.so
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/lib
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/
output/
lib
)
# for *.a
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/lib
)
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/output/lib
)
# for protoc-gen-mcpack
set
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_BINARY_DIR
}
/output/bin
)
# list all source files
set
(
BUTIL_SOURCES
...
...
@@ -310,6 +313,19 @@ if(BUILD_UNIT_TESTS)
add_subdirectory
(
test
)
endif
()
#[[
file(COPY brpc/options.pb.h DESTINATION CMAKE_CURRENT_BINARY_DIR}/output/include)
file(GLOB_RECURSE PUBLIC_HEADERS "*.h")
message("PUBLIC_HEADERS=${PUBLIC_HEADERS}")
foreach(HEADER ${PUBLIC_HEADERS})
get_filename_component(HEADER_PATH ${HEADER} PATH)
file(COPY ${HEADER} DESTINATION
message("HEADER_PATH=${HEADER_PATH}")
endforeach()
file(COPY ${PUBLIC_HEADERS} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/output/include)
]]
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src/
DESTINATION include
FILES_MATCHING
...
...
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