Sha256: e08dca944707a3512f90dfed356715b5b24b1b700a1fa6639410e956ab602083

Contents?: true

Size: 714 Bytes

Versions: 13

Compression:

Stored size: 714 Bytes

Contents

add_executable(api_test
  cplusplus.cpp
  harness.c
  harness.h
  main.c
)
include_directories(
  ${PROJECT_SOURCE_DIR}/src
  ${PROJECT_BINARY_DIR}/src
)
target_link_libraries(api_test libcmark)

# Compiler flags
if(MSVC)
  # Force to always compile with W4
  if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
    string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
  else()
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
  endif()
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4706 /D_CRT_SECURE_NO_WARNINGS")
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /TP")
elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c99 -pedantic")
endif()

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
commonmarker-0.13.0 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.12.0 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.10.0 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.9.2 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.9.1 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.9.0 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.8.0 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.7.0 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.6.0 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.5.1 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.5.0 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.4.1 ext/commonmarker/cmark/api_test/CMakeLists.txt
commonmarker-0.4.0 ext/commonmarker/cmark/api_test/CMakeLists.txt