Skip to content

Commit

Permalink
conditionally include tests for apps
Browse files Browse the repository at this point in the history
  • Loading branch information
chambbj committed Apr 26, 2013
1 parent 15460f5 commit 7a3e837
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions test/unit/CMakeLists.txt
Expand Up @@ -12,8 +12,6 @@ SET (PDAL_UNITTEST_XMLSCHEMA_TEST XMLSchemaTest.cpp)
endif()

SET(PDAL_UNITTEST_TEST_SRC
apps/pc2pcTest.cpp
apps/pcpipelineTest.cpp
BoundsTest.cpp
drivers/bpf/BPFTest.cpp
filters/ByteSwapFilterTest.cpp
Expand Down Expand Up @@ -64,11 +62,18 @@ SET(PDAL_UNITTEST_TEST_SRC
${PDAL_UNITTEST_XMLSCHEMA_TEST}
)

if(LIBXML2_FOUND)
if(WITH_APPS)
if(LIBXML2_FOUND)
list(APPEND ${PDAL_UNITTEST_TEST_SRC}
apps/pcinfoTest.cpp
)
endif(LIBXML2_FOUND)
apps/pcinfoTest.cpp
)
endif(LIBXML2_FOUND)

list(APPEND ${PDAL_UNITTEST_TEST_SRC}
apps/pc2pcTest.cpp
apps/pcpipelineTest.cpp
)
endif(WITH_APPS)

set(PDAL_PLANG_TEST_SRC
plang/PLangTest.cpp
Expand Down

0 comments on commit 7a3e837

Please sign in to comment.