summaryrefslogtreecommitdiffstats
path: root/lib/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-01-30 16:47:41 +0100
committerAngelo Mantellini <manangel@cisco.com>2019-01-30 17:43:09 +0100
commit67371907c2433f5233d4a669a1c9176539e9928f (patch)
treeb4b5119c495fde382fc7c70d4398c943364c2372 /lib/src/CMakeLists.txt
parente5145b878f9de35676085409878a66899d2ee4f2 (diff)
[HICN-19] Add support for Windows 10 x64 for libhicn (lib)
Change-Id: I5109d5ce293265fca557c2ef952fcb1c13b9d816 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'lib/src/CMakeLists.txt')
-rw-r--r--lib/src/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/src/CMakeLists.txt b/lib/src/CMakeLists.txt
index 7cd4ccdaa..453119d13 100644
--- a/lib/src/CMakeLists.txt
+++ b/lib/src/CMakeLists.txt
@@ -53,6 +53,8 @@ list(APPEND LIBHICN_SOURCE_FILES
set (COMPILER_DEFINITIONS "-DWITH_MAPME -DWITH_MAPME_FIXES")
include(BuildMacros)
+include(WindowsMacros)
+
build_library(${LIBHICN}
SHARED STATIC
SOURCES ${LIBHICN_SOURCE_FILES}
@@ -61,6 +63,7 @@ build_library(${LIBHICN}
DEFINITIONS ${COMPILER_DEFINITIONS}
INSTALL_ROOT_DIR hicn
INSTALL_HEADERS ${LIBHICN_HEADER_FILES} ${LIBHICN_HEADER_FILES_PROTOCOL}
+ LINK_LIBRARIES ${WSOCK32_LIBRARY} ${WS2_32_LIBRARY}
)
add_custom_command(TARGET hicn PRE_BUILD