Skip to content

Commit

Permalink
make collider header-only (#871)
Browse files Browse the repository at this point in the history
* pch related changes

* weird error

* try fix error

* disable pch for msvc

* header-only collider

* fix

* fix format

* cmake changes
  • Loading branch information
pca006132 authored Jul 25, 2024
1 parent ccb682f commit a93c0c6
Show file tree
Hide file tree
Showing 8 changed files with 371 additions and 430 deletions.
16 changes: 5 additions & 11 deletions src/collider/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@

project (collider)

file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS *.cpp)
add_library(${PROJECT_NAME} OBJECT ${SOURCE_FILES})
target_include_directories(${PROJECT_NAME} PUBLIC
add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE
$<INSTALL_INTERFACE:include/${CMAKE_PROJECT_NAME}>
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>)
target_link_libraries(${PROJECT_NAME} PUBLIC utilities)
target_compile_options(${PROJECT_NAME} PRIVATE ${MANIFOLD_FLAGS})

target_compile_features(${PROJECT_NAME}
PUBLIC cxx_std_17
)
install(TARGETS ${PROJECT_NAME} EXPORT manifoldTargets)
install(FILES include/collider.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${CMAKE_PROJECT_NAME})
target_link_libraries(${PROJECT_NAME} INTERFACE utilities)
target_compile_options(${PROJECT_NAME} INTERFACE ${MANIFOLD_FLAGS})
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_17)
Loading

0 comments on commit a93c0c6

Please sign in to comment.