CMakeLists.txt 739 Bytes
Newer Older
1
set(libs
2
     mbedtls
3 4 5 6 7 8
)

if(USE_PKCS11_HELPER_LIBRARY)
    set(libs ${libs} pkcs11-helper)
endif(USE_PKCS11_HELPER_LIBRARY)

9 10 11 12
if(ENABLE_ZLIB_SUPPORT)
    set(libs ${libs} ${ZLIB_LIBRARIES})
endif(ENABLE_ZLIB_SUPPORT)

13
add_executable(selftest selftest.c)
14
target_link_libraries(selftest ${libs})
15 16

add_executable(benchmark benchmark.c)
17
target_link_libraries(benchmark ${libs})
18 19

add_executable(ssl_cert_test ssl_cert_test.c)
20
target_link_libraries(ssl_cert_test ${libs})
21

22 23 24
add_executable(udp_proxy udp_proxy.c)
target_link_libraries(udp_proxy ${libs})

25
install(TARGETS selftest benchmark ssl_cert_test udp_proxy
26 27
        DESTINATION "bin"
        PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)