[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:
Jason Henline
2016-09-02 17:19:19 +00:00
parent c54d1298f5
commit 75fbe01eeb
2 changed files with 4 additions and 0 deletions

View File

@@ -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)

View File

@@ -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()