Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristopherson committed Sep 12, 2017
1 parent fb4361e commit b84802e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ include_directories(${PROJECT_SOURCE_DIR}/include)
set(c_test_source test/ferror_test_c.c)
add_executable(ferror_test_c ${c_test_source})
target_link_libraries(ferror_test_c ferror)
add_custom_command(OUTPUT c_api_test DEPENDS ${c_test_source}
COMMAND ferror_test_c)
add_custom_target(run_c_api_test ALL DEPENDS c_api_test)
if (CMAKE_BUILD_TYPE MATCHES Debug)
add_custom_command(OUTPUT c_api_test DEPENDS ${c_test_source}
COMMAND ferror_test_c)
add_custom_target(run_c_api_test ALL DEPENDS c_api_test)
endif()

0 comments on commit b84802e

Please sign in to comment.