Skip to content

Commit

Permalink
Set OPENVDB_USE_BLOSC when building CMake unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Bailey committed Nov 11, 2016
1 parent 78d0192 commit 27adf5c
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions openvdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,7 @@ TARGET_LINK_LIBRARIES ( vdb_view
)
ENDIF ()

IF ( OPENVDB_BUILD_UNITTESTS )

ADD_EXECUTABLE ( vdb_test
SET ( UNITTEST_SOURCE_FILES
unittest/main.cc
unittest/TestBBox.cc
unittest/TestConjGradient.cc
Expand Down Expand Up @@ -347,8 +345,19 @@ IF ( OPENVDB_BUILD_UNITTESTS )
unittest/TestVolumeRayIntersector.cc
unittest/TestVolumeToMesh.cc
)

TARGET_LINK_LIBRARIES ( vdb_test

SET_SOURCE_FILES_PROPERTIES ( ${UNITTEST_SOURCE_FILES}
PROPERTIES
COMPILE_FLAGS "-DOPENVDB_USE_BLOSC"
)

IF ( OPENVDB_BUILD_UNITTESTS )

ADD_EXECUTABLE ( vdb_test
${UNITTEST_SOURCE_FILES}
)

TARGET_LINK_LIBRARIES ( vdb_test
${CPPUnit_cppunit_LIBRARY}
openvdb_static
${BLOSC_blosc_LIBRARY}
Expand Down

0 comments on commit 27adf5c

Please sign in to comment.