Skip to content

Commit

Permalink
Add winsock.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed May 1, 2018
1 parent 95ebf34 commit 4a24507
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions plugins/greyhound/CMakeLists.txt
Expand Up @@ -7,21 +7,31 @@ if (WIN32)
add_definitions("-DARBITER_DLL_IMPORT")
endif()

#
# Need Winsock for htonl
#

PDAL_ADD_PLUGIN(reader_libname reader greyhound
FILES
io/CompressionStream.cpp
io/GreyhoundReader.cpp
io/GreyhoundCommon.cpp
io/bounds.cpp
LINK_WITH ${PDAL_JSONCPP_LIB_NAME})
LINK_WITH
${PDAL_JSONCPP_LIB_NAME}
${WINSOCK_LIBRARY}
)

PDAL_ADD_PLUGIN(writer_libname writer greyhound
FILES
io/CompressionStream.cpp
io/GreyhoundWriter.cpp
io/GreyhoundCommon.cpp
io/bounds.cpp
LINK_WITH ${PDAL_JSONCPP_LIB_NAME})
LINK_WITH
${PDAL_JSONCPP_LIB_NAME}
${WINSOCK_LIBRARY}
)

target_include_directories(${reader_libname} PRIVATE
${PDAL_JSONCPP_INCLUDE_DIR}
Expand All @@ -35,8 +45,11 @@ if (WITH_TESTS)
PDAL_ADD_TEST(pdal_io_greyhound_reader_test
FILES
test/GreyhoundReaderTest.cpp
LINK_WITH ${reader_libname} ${writer_libname}
${PDAL_JSONCPP_LIB_NAME})
LINK_WITH
${reader_libname}
${writer_libname}
${PDAL_JSONCPP_LIB_NAME}
)
target_include_directories(pdal_io_greyhound_reader_test PRIVATE
${PDAL_JSONCPP_INCLUDE_DIR}
${PDAL_VENDOR_DIR})
Expand Down

0 comments on commit 4a24507

Please sign in to comment.