diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-11-18 16:45:11 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-11-18 16:45:11 -0800 |
commit | 9370b2cfd9b6382164ab7bde36a59409d32ae498 (patch) | |
tree | 5a371e5c14340531753e446a0b84a75bab87ec29 /api_test/CMakeLists.txt | |
parent | 47580cbda73fa6ad984dc4690625eb27b54bc563 (diff) | |
parent | 1d39b50d8889155de11df40f7e89bec09e0c4681 (diff) |
Merge branch 'api_tests' of https://github.com/nwellnhof/CommonMark into nwellnhof-api_tests
Diffstat (limited to 'api_test/CMakeLists.txt')
-rw-r--r-- | api_test/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/api_test/CMakeLists.txt b/api_test/CMakeLists.txt new file mode 100644 index 0000000..b2ab2c8 --- /dev/null +++ b/api_test/CMakeLists.txt @@ -0,0 +1,19 @@ +add_executable(api_test + 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(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") + set_target_properties(api_test PROPERTIES COMPILE_FLAGS + "-std=c99 -Wall -Wextra" + ) +elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC") + set_target_properties(api_test PROPERTIES COMPILE_FLAGS "/TP /W4") +endif() |