- Add Windows required library

This commit is contained in:
Paul Bakker 2012-05-10 21:54:28 +00:00
parent 62f88dc473
commit 2a5c7a87af

View File

@ -43,6 +43,10 @@ set(src
xtea.c
)
if(WIN32)
set(libs ws2_32)
endif(WIN32)
if(NOT USE_SHARED_POLARSSL_LIBRARY)
add_library(polarssl STATIC ${src})
@ -54,6 +58,8 @@ set_target_properties(polarssl PROPERTIES VERSION 1.1.1 SOVERSION 1)
endif(NOT USE_SHARED_POLARSSL_LIBRARY)
target_link_libraries(polarssl ${libs})
install(TARGETS polarssl
DESTINATION ${LIB_INSTALL_DIR}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)