include_directories(. .. ../../include)

add_library(
	x509v3

	OBJECT

	# v3_addr.c - disabled by upstream by default.
	# v3_asid.c - disabled by upstream by default.
	# v3_ocsp.c - missing OCSP for now.

	pcy_cache.c
	pcy_data.c
	pcy_lib.c
	pcy_map.c
	pcy_node.c
	pcy_tree.c
	v3_akey.c
	v3_akeya.c
	v3_alt.c
	v3_bcons.c
	v3_bitst.c
	v3_conf.c
	v3_cpols.c
	v3_crld.c
	v3_enum.c
	v3_extku.c
	v3_genn.c
	v3_ia5.c
	v3_info.c
	v3_int.c
	v3_lib.c
	v3_ncons.c
	v3_pci.c
	v3_pcia.c
	v3_pcons.c
	v3_pku.c
	v3_pmaps.c
	v3_prn.c
	v3_purp.c
	v3_skey.c
	v3_sxnet.c
	v3_utl.c
	x509v3_error.c
)

add_executable(
	v3name_test

	v3nametest.c
)

add_executable(
	tab_test

	tabtest.c
)

target_link_libraries(v3name_test crypto)
target_link_libraries(tab_test crypto)
