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