[SE] Add "install" actions to cmake build
The "install" build target will now copy the StreamExecutor library and headers to the appropriate subdirectories of CMAKE_INSTALL_PREFIX. llvm-svn: 280506
This commit is contained in:
@@ -64,6 +64,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter")
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(examples)
|
||||
|
||||
install(DIRECTORY include/ DESTINATION include)
|
||||
|
||||
if (STREAM_EXECUTOR_ENABLE_DOXYGEN)
|
||||
find_package(Doxygen REQUIRED)
|
||||
configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
|
||||
|
||||
@@ -16,6 +16,8 @@ add_library(
|
||||
Stream.cpp)
|
||||
target_link_libraries(streamexecutor ${llvm_libs})
|
||||
|
||||
install(TARGETS streamexecutor DESTINATION lib)
|
||||
|
||||
if(STREAM_EXECUTOR_UNIT_TESTS)
|
||||
add_subdirectory(unittests)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user