Sha256: 7982b1b1f58c5aad00f66cc54c8b53591ef090bd466f817e29e2f1c8f1fca89f

Contents?: true

Size: 1.36 KB

Versions: 12

Compression:

Stored size: 1.36 KB

Contents

FIND_PACKAGE (GTest REQUIRED)
FIND_PACKAGE (ZLIB REQUIRED)
FIND_PACKAGE (Boost REQUIRED COMPONENTS system filesystem)

INCLUDE_DIRECTORIES (
  ${GTEST_INCLUDE_DIRS}
  ${ZLIB_INCLUDE_DIRS}
  ${Boost_INCLUDE_DIRS}
)

LIST (APPEND check_PROGRAMS
    regression_runner.cpp
)

LINK_DIRECTORIES (
  ${Boost_LIBRARY_DIRS}
)

FOREACH (source_file ${check_PROGRAMS})
    GET_FILENAME_COMPONENT (source_file_we ${source_file} NAME_WE)
    ADD_EXECUTABLE (
        ${source_file_we}
        ${source_file}
    )
    TARGET_LINK_LIBRARIES (${source_file_we}
        msgpackc
        ${GTEST_BOTH_LIBRARIES}
        ${ZLIB_LIBRARIES}
        ${CMAKE_THREAD_LIBS_INIT}
        ${Boost_LIBRARIES}
    )
    ADD_TEST (${source_file_we} ${source_file_we})
    IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
      SET_PROPERTY (TARGET ${source_file_we} APPEND_STRING PROPERTY COMPILE_FLAGS "-Wall -Wextra -Wno-mismatched-tags -g")
        IF ("${MSGPACK_SAN}" STREQUAL "ASAN")
            SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
            SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fsanitize=address")
        ELSEIF ("${MSGPACK_SAN}" STREQUAL "UBSAN")
            SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=undefined")
            SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined")
        ENDIF()
    ENDIF()
ENDFOREACH ()

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.3.0 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.2.7 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.2.6 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.2.5 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.2.4 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.2.3 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.2.2 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.2.1 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.2.0 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.1.1 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt
script_core-0.1.0 ext/enterprise_script_service/msgpack/fuzz/CMakeLists.txt