From c974b80efe5a545de87c47471d2113a9f4965a0c Mon Sep 17 00:00:00 2001 From: zhoub Date: Fri, 29 Mar 2013 16:07:44 +0800 Subject: [PATCH] Uploaded unittest/CMakeFiles.txt --- .../openvdb/unittest/CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 openvdb_1_0_0_library/openvdb/unittest/CMakeLists.txt diff --git a/openvdb_1_0_0_library/openvdb/unittest/CMakeLists.txt b/openvdb_1_0_0_library/openvdb/unittest/CMakeLists.txt new file mode 100755 index 0000000..1bfc21a --- /dev/null +++ b/openvdb_1_0_0_library/openvdb/unittest/CMakeLists.txt @@ -0,0 +1,13 @@ +FIND_PATH(CPPUNIT_INCLUDE_DIR REQUIRED) +FIND_PATH(CPPUNIT_LIBRARY_DIR REQUIRED) + +INCLUDE_DIRECTORIES(${CPPUNIT_INCLUDE_DIR}) +LINK_DIRECTORIES(${CPPUNIT_LIBRARY_DIR}) + +FILE(GLOB OPENVDB_UNITTEST_SOURCE_FILES + ${CMAKE_CURRENT_SOURCE_DIR}/*.cc) + +REMOVE_DEFINITIONS(-DOPENVDB_PRIVATE) +ADD_EXECUTABLE(vdb_test ${OPENVDB_UNITTEST_SOURCE_FILES}) +TARGET_LINK_LIBRARIES(vdb_test vdb debug cppunitd) +TARGET_LINK_LIBRARIES(vdb_test vdb optimized cppunit)