Sha256: 0ad7d042f1f186bc864d5424653e6309074e401ab6c76d4f1c6aba36cf9f8491

Contents?: true

Size: 1.18 KB

Versions: 16

Compression:

Stored size: 1.18 KB

Contents

# Setup compiling the test executable. C++ compile flags are inherited from the parent directory.
include_directories(${LEATHERMAN_CATCH_INCLUDE})

set(TEST_CASES
    concatenation_test.cc
    config_document_parser_test.cc
    config_node_test.cc
    config_value_test.cc
    path_test.cc
    token_test.cc
    tokenizer_test.cc
    test_utils.cc
    config_document_tests.cc
    conf_parser_test.cc
    config_substitution_test.cc
    config_value_factory_test.cc
    config_test.cc
    program_options.cc
)

add_executable(lib${PROJECT_NAME}_test $<TARGET_OBJECTS:libprojectsrc> ${TEST_CASES} main.cc)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
    target_link_libraries(lib${PROJECT_NAME}_test rt)
endif()

target_link_libraries(lib${PROJECT_NAME}_test
    ${Boost_LIBRARIES}
    ${LEATHERMAN_LIBRARIES}
    ${CMAKE_THREAD_LIBS_INIT}
)

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND BOOST_STATIC AND LEATHERMAN_USE_LOCALES)
    target_link_libraries(lib${PROJECT_NAME}_test iconv)
endif()

add_test(NAME "unit_tests" COMMAND lib${PROJECT_NAME}_test)

configure_file (
    "${CMAKE_CURRENT_LIST_DIR}/fixtures.hpp.in"
    "${CMAKE_CURRENT_LIST_DIR}/fixtures.hpp"
)

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.12.1.cfacter.20181031 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.11.6.cfacter.20181031 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.12.1.cfacter.20181023 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.11.5.cfacter.20181022 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.12.0.cfacter.20181004 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.12.0.cfacter.20181001 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.12.0.cfacter.20180918 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.11.4.cfacter.20180821 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.11.3.cfacter.20180716 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.11.2.cfacter.20180612 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.9.6.cfacter.20180612 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.11.2.cfacter.20180606 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.9.6.cfacter.20180606 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
facter-3.11.0.cfacter.20180319 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt
cfacter-3.11.0.rc.20180314 ext/facter/cpp-hocon/lib/tests/CMakeLists.txt