CMakeLists.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. include_directories(
  2. ./unity
  3. )
  4. set(tests_SRCS
  5. all_tests.c
  6. unity/unity.c
  7. )
  8. IF(WIN32)
  9. set_source_files_properties(${tests_SRCS}
  10. PROPERTIES LANGUAGE CXX)
  11. ENDIF(WIN32)
  12. configure_file(server-key.pem server-key.pem COPYONLY)
  13. configure_file(client1-key.pem client1-key.pem COPYONLY)
  14. configure_file(client1.cer client1.cer COPYONLY)
  15. configure_file(client2.cer client2.cer COPYONLY)
  16. configure_file(root.cer root.cer COPYONLY)
  17. configure_file(server.cer server.cer COPYONLY)
  18. configure_file(certs/server_CA1_1.key server_CA1_1.key COPYONLY)
  19. configure_file(certs/server_CA1_1.pem server_CA1_1.pem COPYONLY)
  20. configure_file(certs/root_CA1.pem root_CA1.pem COPYONLY)
  21. configure_file(certs/client_CA1_1.key client_CA1_1.key COPYONLY)
  22. configure_file(certs/client_CA1_1.pem client_CA1_1.pem COPYONLY)
  23. configure_file(certs/client_CA1_2.key client_CA1_2.key COPYONLY)
  24. configure_file(certs/client_CA1_2.pem client_CA1_2.pem COPYONLY)
  25. configure_file(certs/client_CA1_3.key client_CA1_3.key COPYONLY)
  26. configure_file(certs/client_CA1_3.pem client_CA1_3.pem COPYONLY)
  27. configure_file(certs/client_CA1_4.key client_CA1_4.key COPYONLY)
  28. configure_file(certs/client_CA1_4.pem client_CA1_4.pem COPYONLY)
  29. configure_file(certs/server_CA1_1_chain.pem server_CA1_1_chain.pem)
  30. configure_file(certs/test.crl test.crl COPYONLY)
  31. add_executable(tests
  32. ${tests_SRCS}
  33. )
  34. target_link_libraries(tests
  35. lib60870
  36. )