1include_directories(../include) 2 3add_subdirectory(bio) 4add_subdirectory(blowfish) 5add_subdirectory(cast) 6add_subdirectory(des) 7add_subdirectory(dh) 8add_subdirectory(dsa) 9add_subdirectory(evp) 10add_subdirectory(obj) 11add_subdirectory(rc4) 12add_subdirectory(ripemd) 13add_subdirectory(rsa) 14add_subdirectory(ssl) 15add_subdirectory(x509) 16add_subdirectory(xts) 17 18add_library( 19 decrepit 20 21 $<TARGET_OBJECTS:bio_decrepit> 22 $<TARGET_OBJECTS:blowfish> 23 $<TARGET_OBJECTS:cast> 24 $<TARGET_OBJECTS:des_decrepit> 25 $<TARGET_OBJECTS:dh_decrepit> 26 $<TARGET_OBJECTS:dsa_decrepit> 27 $<TARGET_OBJECTS:evp_decrepit> 28 $<TARGET_OBJECTS:obj_decrepit> 29 $<TARGET_OBJECTS:rc4_decrepit> 30 $<TARGET_OBJECTS:ripemd_decrepit> 31 $<TARGET_OBJECTS:rsa_decrepit> 32 $<TARGET_OBJECTS:ssl_decrepit> 33 $<TARGET_OBJECTS:x509_decrepit> 34 $<TARGET_OBJECTS:xts> 35) 36 37target_link_libraries(decrepit crypto ssl) 38 39add_executable( 40 decrepit_test 41 42 ripemd/ripemd_test.cc 43 44 $<TARGET_OBJECTS:gtest_main> 45 $<TARGET_OBJECTS:test_support> 46) 47 48target_link_libraries(decrepit_test crypto decrepit gtest) 49if (WIN32) 50 target_link_libraries(decrepit_test ws2_32) 51endif() 52add_dependencies(all_tests decrepit_test) 53