Home | History | Annotate | Download | only in err
      1 include_directories(../../include)
      2 
      3 add_custom_command(
      4   OUTPUT err_data.c
      5   COMMAND ${GO_EXECUTABLE} run err_data_generate.go > ${CMAKE_CURRENT_BINARY_DIR}/err_data.c
      6   DEPENDS
      7   err_data_generate.go
      8   asn1.errordata
      9   bio.errordata
     10   bn.errordata
     11   cipher.errordata
     12   conf.errordata
     13   dh.errordata
     14   digest.errordata
     15   dsa.errordata
     16   ecdh.errordata
     17   ecdsa.errordata
     18   ec.errordata
     19   engine.errordata
     20   evp.errordata
     21   hkdf.errordata
     22   obj.errordata
     23   pem.errordata
     24   pkcs8.errordata
     25   rsa.errordata
     26   ssl.errordata
     27   x509.errordata
     28   x509v3.errordata
     29   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
     30 )
     31 
     32 add_library(
     33   err
     34 
     35   OBJECT
     36 
     37   err.c
     38   err_data.c
     39 )
     40 
     41 add_executable(
     42   err_test
     43 
     44   err_test.cc
     45 
     46   $<TARGET_OBJECTS:test_support>
     47 )
     48 
     49 target_link_libraries(err_test crypto)
     50 add_dependencies(all_tests err_test)
     51