# Install the individual commands
SET (KV_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/../../..")
PyWrapper(
    BUILD_DIR "${KV_BINARY_DIR}"
    SCRIPTS
    cbepctl
    cbstats
    cbcompact
    cbvdiff
    cbvbucketctl
    kv_trace_dump)

# Install supporting python files
INSTALL(FILES
        clitool.py
        cli_auth_utils.py
        mc_bin_client.py
        mc_bin_server.py
        memcacheConstants.py
        DESTINATION lib/python)

if (NOT EP_BYPASS_TESTS)
    IF (WIN32)
        SET (ext .bat)
    ELSE ()
        SET (ext)
    ENDIF ()
    # runs cbstats & cbepctl - will fail on basic syntax errors
    ADD_TEST(NAME cbstats_test
             COMMAND "${KV_BINARY_DIR}/cbstats${ext}" --help)
    ADD_TEST(NAME cbepctl_test
             COMMAND "${KV_BINARY_DIR}/cbepctl${ext}" --help)
    ADD_TEST(NAME kv_trace_dump_test
             COMMAND "${KV_BINARY_DIR}/kv_trace_dump${ext}" --help)
endif (NOT EP_BYPASS_TESTS)

INSTALL(PROGRAMS
        cbanalyze-core
        DESTINATION bin)

# Install the individual commands
SET (KV_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/../../..")
PyWrapper(
    BUILD_DIR "${KV_BINARY_DIR}"
    SCRIPTS
    cbepctl
    cbstats
    cbcompact
    cbvdiff
    cbvbucketctl
    kv_trace_dump)

# Install supporting python files
INSTALL(FILES
        clitool.py
        cli_auth_utils.py
        mc_bin_client.py
        mc_bin_server.py
        memcacheConstants.py
        DESTINATION lib/python)

if (NOT EP_BYPASS_TESTS)
    # runs cbstats & cbepctl - will fail on basic syntax errors
    ADD_TEST(NAME cbstats_test
             COMMAND ${KV_BINARY_DIR}/cbstats --help)
    ADD_TEST(NAME cbepctl_test
             COMMAND ${KV_BINARY_DIR}/cbepctl --help)
    ADD_TEST(NAME kv_trace_dump_test
             COMMAND ${KV_BINARY_DIR}/kv_trace_dump --help)
endif (NOT EP_BYPASS_TESTS)

INSTALL(PROGRAMS
        cbanalyze-core
        DESTINATION bin)

Use default exe extension for cbstats et al
MB-33498: Use default exe extension for cbstats et al

With the introduction of tlm change
http://review.couchbase.org/#/c/106097/, all PyWrapper executables
have the default (.exe) extension on Windows. As such, update the used
extension for the ep-engine management python programs.

Change-Id: I5c995120c4bbe105bd914f0c0b7f5be1b6d56bfb
Reviewed-on: http://review.couchbase.org/106710
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@couchbase.com>
