You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
626 B

  1. # The unit test executable.
  2. add_executable(json_unit
  3. "src/catch.hpp"
  4. "src/unit.cpp"
  5. )
  6. set_target_properties(json_unit PROPERTIES
  7. CXX_STANDARD 11
  8. CXX_STANDARD_REQUIRED ON
  9. COMPILE_DEFINITIONS "$<$<CXX_COMPILER_ID:MSVC>:_SCL_SECURE_NO_WARNINGS>"
  10. COMPILE_OPTIONS "$<$<CXX_COMPILER_ID:MSVC>:/EHsc;$<$<CONFIG:Release>:/Od>>"
  11. )
  12. # Install the test binary.
  13. install(TARGETS json_unit RUNTIME DESTINATION test/bin)
  14. # Copy the test data to the install tree.
  15. install(DIRECTORY data/ DESTINATION test/data)
  16. target_include_directories(json_unit PRIVATE "src")
  17. target_link_libraries(json_unit ${JSON_TARGET_NAME})