Commit 9f59d068 authored by Leif Walsh's avatar Leif Walsh

added cpack component identifications to all install targets Tokutek/mongo#869

parent 47b4a0fb
......@@ -19,6 +19,8 @@ include(TokuMergeLibs)
set(LIBTOKUPORTABILITY "tokuportability" CACHE STRING "Name of libtokuportability.so")
set(LIBTOKUDB "tokufractaltree" CACHE STRING "Name of libtokufractaltree.so")
set(INSTALL_LIBDIR "lib" CACHE STRING "where to install libs")
include_directories(
${VALGRIND_INCLUDE_DIR}
)
......@@ -58,6 +60,7 @@ add_subdirectory(examples)
install(
FILES README.md README-TOKUDB
DESTINATION .
COMPONENT tokukv_misc
)
## build tags
......
......@@ -19,9 +19,11 @@ if (NOT DEFINED MYSQL_PROJECT_NAME_DOCSTRING)
FILES "${CMAKE_CURRENT_BINARY_DIR}/db.h"
DESTINATION include
RENAME tokudb.h
COMPONENT tokukv_headers
)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/db.h"
DESTINATION include
COMPONENT tokukv_headers
)
endif ()
\ No newline at end of file
......@@ -30,7 +30,8 @@ if (NOT DEFINED LIBJEMALLOC)
# detect when we are being built as a subproject
if (NOT DEFINED MYSQL_PROJECT_NAME_DOCSTRING)
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/jemalloc/lib" DESTINATION .)
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/jemalloc/lib" DESTINATION .
COMPONENT tokukv_libs_extra)
endif ()
endif ()
......
......@@ -10,5 +10,7 @@ if (NOT DEFINED MYSQL_PROJECT_NAME_DOCSTRING)
README.examples
DESTINATION
examples
COMPONENT
tokukv_examples
)
endif ()
\ No newline at end of file
......@@ -105,6 +105,7 @@ target_link_libraries(ftverify m)
install(
TARGETS tokuftdump
DESTINATION bin
COMPONENT tokukv_tools
)
add_subdirectory(tests)
install(
FILES tdb-internal.h
DESTINATION include
COMPONENT tokukv_headers
)
......@@ -35,10 +35,17 @@ if (NOT DEFINED MYSQL_PROJECT_NAME_DOCSTRING)
install(
FILES toku_os_types.h toku_time.h
DESTINATION include
COMPONENT tokukv_headers
)
install(
TARGETS ${LIBTOKUPORTABILITY} ${LIBTOKUPORTABILITY}_static
DESTINATION lib
TARGETS ${LIBTOKUPORTABILITY}_static
DESTINATION ${INSTALL_LIBDIR}
COMPONENT tokukv_libs_static
)
install(
TARGETS ${LIBTOKUPORTABILITY}
DESTINATION ${INSTALL_LIBDIR}
COMPONENT tokukv_libs_shared
)
endif ()
......
......@@ -42,8 +42,14 @@ endif ()
# detect when we are being built as a subproject
if (NOT DEFINED MYSQL_PROJECT_NAME_DOCSTRING)
install(
TARGETS ${LIBTOKUDB} ${LIBTOKUDB}_static
DESTINATION lib
TARGETS ${LIBTOKUDB}
DESTINATION ${INSTALL_LIBDIR}
COMPONENT tokukv_libs_shared
)
install(
TARGETS ${LIBTOKUDB}_static
DESTINATION ${INSTALL_LIBDIR}
COMPONENT tokukv_libs_static
)
endif ()
......
......@@ -7,9 +7,11 @@ if (NOT DEFINED MYSQL_PROJECT_NAME_DOCSTRING)
install(
FILES toku_list.h toku_os.h
DESTINATION include
COMPONENT tokukv_headers
)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/toku_config.h"
DESTINATION include
COMPONENT tokukv_headers
)
endif ()
\ No newline at end of file
......@@ -19,6 +19,7 @@ if (NOT DEFINED MYSQL_PROJECT_NAME_DOCSTRING)
install(
FILES partitioned_counter.h
DESTINATION include
COMPONENT tokukv_headers
)
endif ()
......
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