diff options
author | Jason Henline <jhen@google.com> | 2016-09-02 17:19:19 +0000 |
---|---|---|
committer | Jason Henline <jhen@google.com> | 2016-09-02 17:19:19 +0000 |
commit | 8fc236d8bf714a793b143b17a3a4432c5910bfea (patch) | |
tree | 9802f4bcb845cbac9efc0f14869d33f8d21c5dba /parallel-libs | |
parent | dbe4fe31f3b58ecb29f81ac21c004bf2851029c2 (diff) |
[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.
Diffstat (limited to 'parallel-libs')
-rw-r--r-- | parallel-libs/streamexecutor/CMakeLists.txt | 2 | ||||
-rw-r--r-- | parallel-libs/streamexecutor/lib/CMakeLists.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/parallel-libs/streamexecutor/CMakeLists.txt b/parallel-libs/streamexecutor/CMakeLists.txt index 3fd9af404cc..8baf976111e 100644 --- a/parallel-libs/streamexecutor/CMakeLists.txt +++ b/parallel-libs/streamexecutor/CMakeLists.txt @@ -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) diff --git a/parallel-libs/streamexecutor/lib/CMakeLists.txt b/parallel-libs/streamexecutor/lib/CMakeLists.txt index f33e3463b15..aa16f508661 100644 --- a/parallel-libs/streamexecutor/lib/CMakeLists.txt +++ b/parallel-libs/streamexecutor/lib/CMakeLists.txt @@ -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() |