Skip to content

Commit

Permalink
Merge pull request #1344 from gadomski/build-without-tests
Browse files Browse the repository at this point in the history
Fix build w/ greyhound w/o tests
  • Loading branch information
gadomski committed Oct 28, 2016
2 parents b217227 + 6290274 commit ade2f86
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions plugins/greyhound/CMakeLists.txt
Expand Up @@ -22,12 +22,14 @@ PDAL_ADD_PLUGIN(libname reader greyhound
FILES "${srcs}" "${incs}"
LINK_WITH ${PDAL_JSONCPP_LIB_NAME})

set(srcs
test/GreyhoundReaderTest.cpp
)
if (WITH_TESTS)
set(srcs
test/GreyhoundReaderTest.cpp
)

include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})

PDAL_ADD_TEST(greyhoundreadertest
FILES "${srcs}"
LINK_WITH ${libname} )
PDAL_ADD_TEST(greyhoundreadertest
FILES "${srcs}"
LINK_WITH ${libname} )
endif()

0 comments on commit ade2f86

Please sign in to comment.