Skip to content
Snippets Groups Projects
  • Konstantin Osipov's avatar
    4583e56d
    Hand-port rpm-split-spec branch. · 4583e56d
    Konstantin Osipov authored
    The patch which removes the CPack-generated spec
    and adds a proper spec for client, server and library
    was done by Dmitry Simonenko.
    
    Hand-port the patch to the master, since it's gone too
    far away from the origin and merging it ends up in a mess.
    4583e56d
    History
    Hand-port rpm-split-spec branch.
    Konstantin Osipov authored
    The patch which removes the CPack-generated spec
    and adds a proper spec for client, server and library
    was done by Dmitry Simonenko.
    
    Hand-port the patch to the master, since it's gone too
    far away from the origin and merging it ends up in a mess.
CMakeLists.txt 1.05 KiB
enable_tnt_compile_flags()

add_compile_flags("C;CXX"
    "-Wno-unused-parameter")

add_custom_target(test
    COMMAND ${PROJECT_SOURCE_DIR}/test/test-run.py --builddir=${PROJECT_BINARY_DIR} --vardir=${PROJECT_BINARY_DIR}/test/var)

add_custom_target(test-force
    COMMAND ${PROJECT_SOURCE_DIR}/test/test-run.py --builddir=${PROJECT_BINARY_DIR} --force --vardir=${PROJECT_BINARY_DIR}/test/var)

add_subdirectory(unit)
add_subdirectory(box)
add_subdirectory(connector_c)

if (ENABLE_RPM)
    install (FILES ${CMAKE_SOURCE_DIR}/test/share/tarantool_rpm.cfg
             DESTINATION ${CMAKE_SYSCONF_DIR}/tarantool/
             RENAME "tarantool.cfg")
    install (FILES ${CMAKE_SOURCE_DIR}/test/box/00000000000000000001.snap
             DESTINATION share/tarantool)
else()
    install (FILES ${CMAKE_SOURCE_DIR}/test/share/tarantool_tgz.cfg
             DESTINATION "${CMAKE_SYSCONF_DIR}"
             RENAME "tarantool.cfg")
    install (FILES ${CMAKE_SOURCE_DIR}/test/box/00000000000000000001.snap
             DESTINATION "${CMAKE_LOCALSTATE_DIR}/lib/tarantool")
endif()