Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into mtao/use_selfhosted…
Browse files Browse the repository at this point in the history
…_runners
  • Loading branch information
mtao committed Sep 7, 2023
2 parents 2be3ab9 + 0717119 commit 4352af8
Show file tree
Hide file tree
Showing 104 changed files with 14,677 additions and 1,987 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ on:
push:
branches:
- main
- hackathon/dev
- hackathon/dev
pull_request:
branches:
- main
- hackathon/dev

env:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ app/triwild/smooth_after_1.obj
app/triwild/01-before.obj
*.obj
*.out
*.exr
*.png
*.tar.gz
*.json
*.ipynb
26 changes: 25 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ else()
endif()
endif()

# Enable ccache if available
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
option(WMTK_WITH_CCACHE "Enable ccache when building WMTK" ${WILDMESHING_TOOLKIT_TOPLEVEL_PROJECT})
else()
option(WMTK_WITH_CCACHE "Enable ccache when building WMTK" OFF)
endif()
if(WMTK_WITH_CCACHE AND CCACHE_PROGRAM)
set(ccacheEnv
CCACHE_BASEDIR=${CMAKE_BINARY_DIR}
CCACHE_SLOPPINESS=clang_index_store,include_file_ctime,include_file_mtime,locale,pch_defines,time_macros
)
foreach(lang IN ITEMS C CXX)
set(CMAKE_${lang}_COMPILER_LAUNCHER
${CMAKE_COMMAND} -E env ${ccacheEnv} ${CCACHE_PROGRAM}
)
endforeach()
endif()

# ###############################################################################
project(WildMeshingToolkit DESCRIPTION "A mesh optimization toolkit")

Expand Down Expand Up @@ -94,6 +113,7 @@ include(onetbb)
include(mshio)
include(metis)
include(gmp)
include(probabilistic_quadrics)

include(lagrange)
lagrange_include_modules(bvh)
Expand All @@ -114,6 +134,7 @@ target_link_libraries(wildmeshing_toolkit PUBLIC
HighFive::HighFive
hdf5::hdf5
lagrange::bvh
probabilistic_quadrics::probabilistic_quadrics
)
include(finite-diff)
target_link_libraries(wildmeshing_toolkit PUBLIC finitediff::finitediff)
Expand All @@ -122,11 +143,14 @@ include(tinyexr)
target_link_libraries(wildmeshing_toolkit PUBLIC
miniz # MTAO: I had a build issue with windows not finding miniz at linktime - adding here to make sure it's there?
tinyexr
stb)
stb::image)
include(lean-vtk)
target_link_libraries(wildmeshing_toolkit PUBLIC LeanVTK)
include(nanospline)
target_link_libraries(wildmeshing_toolkit PUBLIC nanospline::nanospline)
include(ipc-toolkit)
target_compile_definitions(tight_inclusion PUBLIC TIGHT_INCLUSION_LIMIT_QUEUE_SIZE TI_LIMIT_QUEUE_SIZE)
target_link_libraries(wildmeshing_toolkit PUBLIC ipc::toolkit)
include(paraviewo)
target_link_libraries(wildmeshing_toolkit PUBLIC paraviewo::paraviewo)

Expand Down
Loading

0 comments on commit 4352af8

Please sign in to comment.