aboutsummaryrefslogtreecommitdiff
path: root/api_test/CMakeLists.txt
blob: b2ab2c86a2d186f1655f302852299ccc09527521 (plain)
  1. add_executable(api_test
  2.   harness.c
  3. harness.h
  4. main.c
  5. )
  6. include_directories(
  7. ${PROJECT_SOURCE_DIR}/src
  8. ${PROJECT_BINARY_DIR}/src
  9. )
  10. target_link_libraries(api_test libcmark)
  11. # Compiler flags
  12. if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
  13. set_target_properties(api_test PROPERTIES COMPILE_FLAGS
  14. "-std=c99 -Wall -Wextra"
  15. )
  16. elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
  17. set_target_properties(api_test PROPERTIES COMPILE_FLAGS "/TP /W4")
  18. endif()