Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
djdunning committed Nov 8, 2023
1 parent 19b5cad commit 94fe880
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ if (BUILD_TESTS)
endif()

# Examples
add_subdirectory(examples)
if (BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

# Documentation
if (WITH_DOCS)
Expand Down Expand Up @@ -136,15 +138,13 @@ install(EXPORT ElementsTargets DESTINATION lib/cmake/Elements)
install(FILES "${PROJECT_BINARY_DIR}/ElementsConfigVersion.cmake"
"${PROJECT_BINARY_DIR}/ElementsConfig.cmake"
DESTINATION lib/cmake/elements)
#install(DIRECTORY ${PROJECT_SOURCE_DIR}/src/include/ DESTINATION include)

# Install libraries in lib/ subdirectory of the specified install directory
if (WITH_VTK AND VTK_FOUND)
install(TARGETS swage2vtk EXPORT ElementsTargets DESTINATION lib)
endif()

target_link_libraries(Elements elements geometry slam swage common)
#target_link_libraries(Elements geometry)
if (WITH_VTK AND VTK_FOUND)
target_link_libraries(Elements PUBLIC swage2vtk)
endif()
Expand Down
1 change: 1 addition & 0 deletions scripts/cmake_build_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fi

cmake_options=(
-D CMAKE_PREFIX_PATH="${ELEMENTS_INSTALL_DIR};${KOKKOS_INSTALL_DIR}"
-D BUILD_EXAMPLES=ON
)

if [ "$kokkos_build_type" = "none" ]; then
Expand Down

0 comments on commit 94fe880

Please sign in to comment.