Skip to content

Commit

Permalink
update partio
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu committed Nov 5, 2018
1 parent 17a101e commit b291b72
Show file tree
Hide file tree
Showing 98 changed files with 205 additions and 9,571 deletions.
11 changes: 5 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHASWELL")
endif()

file(GLOB PROJECT_SOURCES
"src/*.cpp" "external/SPGrid/*/*.cpp", "src/async/*.cpp")
file(GLOB PROJECT_SOURCES "src/*.cpp" "external/SPGrid/*/*.cpp" "src/async/*.cpp")

add_library(taichi_${TAICHI_PROJECT_NAME} SHARED ${PROJECT_SOURCES})
include_directories(external/partio/include)
Expand All @@ -16,14 +15,14 @@ include_directories(external/libccd/src)

set(TAICHI_PROJECT_LIBRARIES ${TAICHI_PROJECT_LIBRARIES} ${TAICHI_PROJECT_NAME} PARENT_SCOPE)
target_link_libraries(taichi_${TAICHI_PROJECT_NAME} ${CORE_LIBRARY_NAME})
target_link_libraries(taichi_${TAICHI_PROJECT_NAME} ${CMAKE_CURRENT_LIST_DIR}/external/partio/lib/libpartio.a)
target_link_libraries(taichi_${TAICHI_PROJECT_NAME} partio)

add_subdirectory(external/libccd)
add_subdirectory(external/partio)

find_package(ZLIB)
if (ZLIB_FOUND)
target_link_libraries(taichi_${TAICHI_PROJECT_NAME} z)
endif(ZLIB_FOUND)

target_link_libraries(taichi_${TAICHI_PROJECT_NAME} ccd)

add_subdirectory(external/libccd)

Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

FILE(GLOB io_cpp "io/*.cpp")
FILE(GLOB core_cpp "core/*.cpp")
ADD_LIBRARY (partio ${io_cpp} ${core_cpp})
FILE(GLOB io_cpp "src/io/*.cpp")
FILE(GLOB core_cpp "src/core/*.cpp")
ADD_LIBRARY (partio SHARED ${io_cpp} ${core_cpp})

FILE(GLOB public_includes "*.h")

INSTALL (TARGETS partio DESTINATION lib)
INSTALL (FILES ${public_includes} DESTINATION include)
Binary file removed external/partio/bin/partattr
Binary file not shown.
Binary file removed external/partio/bin/partconv
Binary file not shown.
Binary file removed external/partio/bin/partconvert
Binary file not shown.
Binary file removed external/partio/bin/partinfo
Binary file not shown.
Binary file removed external/partio/bin/partview
Binary file not shown.
Binary file removed external/partio/lib/libpartio.a
Binary file not shown.
28 changes: 0 additions & 28 deletions external/partio/src/Makefile

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed external/partio/src/data/test.bgeo
Binary file not shown.
18 changes: 0 additions & 18 deletions external/partio/src/data/test.geo

This file was deleted.

Binary file removed external/partio/src/data/test.pdb
Binary file not shown.
45 changes: 0 additions & 45 deletions external/partio/src/doc/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit b291b72

Please sign in to comment.