2014-06-20 20:00:00 +01:00
|
|
|
include_directories(. .. ../../include)
|
|
|
|
|
2015-03-05 06:19:27 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT err_data.c
|
|
|
|
COMMAND ${GO_EXECUTABLE} run err_data_generate.go > ${CMAKE_CURRENT_BINARY_DIR}/err_data.c
|
|
|
|
DEPENDS
|
|
|
|
err_data_generate.go
|
|
|
|
asn1.errordata
|
|
|
|
bio.errordata
|
|
|
|
bn.errordata
|
|
|
|
cipher.errordata
|
|
|
|
conf.errordata
|
|
|
|
dh.errordata
|
|
|
|
digest.errordata
|
|
|
|
dsa.errordata
|
|
|
|
ecdh.errordata
|
|
|
|
ecdsa.errordata
|
|
|
|
ec.errordata
|
|
|
|
engine.errordata
|
|
|
|
evp.errordata
|
|
|
|
hkdf.errordata
|
|
|
|
obj.errordata
|
|
|
|
pem.errordata
|
|
|
|
pkcs8.errordata
|
|
|
|
rsa.errordata
|
|
|
|
ssl.errordata
|
|
|
|
x509.errordata
|
|
|
|
x509v3.errordata
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2014-06-20 20:00:00 +01:00
|
|
|
add_library(
|
2015-01-29 00:37:10 +00:00
|
|
|
err
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-01-29 00:37:10 +00:00
|
|
|
OBJECT
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-01-29 00:37:10 +00:00
|
|
|
err.c
|
2015-03-05 06:19:27 +00:00
|
|
|
err_data.c
|
2014-06-20 20:00:00 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(
|
2015-01-29 00:37:10 +00:00
|
|
|
err_test
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-03-26 05:46:52 +00:00
|
|
|
err_test.cc
|
2015-05-16 00:08:49 +01:00
|
|
|
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
2014-06-20 20:00:00 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(err_test crypto)
|