1include_directories(. .. ../../include) 2 3add_library( 4 ec 5 6 OBJECT 7 8 ec.c 9 ec_asn1.c 10 ec_key.c 11 ec_montgomery.c 12 oct.c 13 p256-64.c 14 util-64.c 15 simple.c 16 wnaf.c 17) 18 19add_executable( 20 example_mul 21 22 example_mul.c 23 24 $<TARGET_OBJECTS:test_support> 25) 26 27add_executable( 28 ec_test 29 30 ec_test.cc 31 32 $<TARGET_OBJECTS:test_support> 33) 34 35target_link_libraries(example_mul crypto) 36target_link_libraries(ec_test crypto) 37