Commit e0c54dbb authored by zhujiashun's avatar zhujiashun

Make bin and lib in /home/zjs/gitrepo/brpc/output/

parent a6d7e207
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment