[Parallel_libs-commits] [parallel-libs] r280506 - [SE] Add "install" actions to cmake build

Jason Henline via Parallel_libs-commits parallel_libs-commits at lists.llvm.org
Fri Sep 2 10:19:19 PDT 2016


Author: jhen
Date: Fri Sep  2 12:19:19 2016
New Revision: 280506

URL: http://llvm.org/viewvc/llvm-project?rev=280506&view=rev
Log:
[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.

Modified:
    parallel-libs/trunk/streamexecutor/CMakeLists.txt
    parallel-libs/trunk/streamexecutor/lib/CMakeLists.txt

Modified: parallel-libs/trunk/streamexecutor/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/parallel-libs/trunk/streamexecutor/CMakeLists.txt?rev=280506&r1=280505&r2=280506&view=diff
==============================================================================
--- parallel-libs/trunk/streamexecutor/CMakeLists.txt (original)
+++ parallel-libs/trunk/streamexecutor/CMakeLists.txt Fri Sep  2 12:19:19 2016
@@ -64,6 +64,8 @@ set(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS}
 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)

Modified: parallel-libs/trunk/streamexecutor/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/parallel-libs/trunk/streamexecutor/lib/CMakeLists.txt?rev=280506&r1=280505&r2=280506&view=diff
==============================================================================
--- parallel-libs/trunk/streamexecutor/lib/CMakeLists.txt (original)
+++ parallel-libs/trunk/streamexecutor/lib/CMakeLists.txt Fri Sep  2 12:19:19 2016
@@ -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()




More information about the Parallel_libs-commits mailing list