Skip to content

Commit

Permalink
Merge pull request #39 from pshriwise/rename-include-dir
Browse files Browse the repository at this point in the history
Rename internal include location to match install location
  • Loading branch information
ebknudsen authored Apr 18, 2023
2 parents 25a681b + 195d613 commit 52b74f1
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 37 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ jobs:
# This test is here to check compatibility with DAGMC's develop branch
# An error here shouldn't cause the build to fail
- name: DAGMC Build and Test
continue-on-error: true
shell: bash
run: $GITHUB_WORKSPACE/ci/dagmc-install.sh
32 changes: 16 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,20 @@ if(GIT_FOUND)
endif()

# install headers
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/RTI.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/primitives.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/ray.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/MOABRay.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/MOABDirectAccess.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/Vec3da.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/constants.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/sys.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/Vec3fa.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/Vec3ba.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/Vec3.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/embree3.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/embree4.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/embree_interface.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/RTI.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/primitives.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/ray.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/MOABRay.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/MOABDirectAccess.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/Vec3da.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/constants.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/sys.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/Vec3fa.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/Vec3ba.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/Vec3.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/embree3.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/embree4.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/embree_interface.hpp" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")

# Tests
enable_testing()
Expand All @@ -124,8 +124,8 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/ddConfig.cmake.in" "${CMAKE_CU
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/cmake/ddConfig.cmake" DESTINATION "${DD_CMAKE_CONFIG_LOCATION}")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/ddConfigVersion.cmake.in" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/ddConfigVersion.cmake")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/cmake/ddConfigVersion.cmake" DESTINATION "${DD_CMAKE_CONFIG_LOCATION}")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/version.h.in" "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/version.h")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double-down/version.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/version.h.in" "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/version.h")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/double_down/version.h" DESTINATION "${DD_INCLUDE_INSTALL_LOCATION}")

add_subdirectory(docs)
add_subdirectory(tools)
Expand Down
2 changes: 1 addition & 1 deletion ci/dagmc-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -ex

# DAGMC Variables
DAGMC_BRANCH='develop'
DAGMC_REPO='https://github.com/pshriwise/dagmc/'
DAGMC_REPO='https://github.com/svalinn/dagmc/'
DAGMC_INSTALL_DIR=$HOME/DAGMC/

CURRENT_DIR=$(pwd)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Double-down
#include "ray.h"

#include "double-down/embree_interface.hpp"
#include "double_down/embree_interface.hpp"

using namespace double_down;

Expand Down
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.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

#ifdef EMBREE4

#include "double-down/embree4.hpp"
#include "double_down/embree4.hpp"

#elif defined(EMBREE3)

#include "double-down/embree3.hpp"
#include "double_down/embree3.hpp"

#else

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "MOABDirectAccess.h"

// Embree
#include "double-down/embree_interface.hpp"
#include "double_down/embree_interface.hpp"
namespace double_down {

/*! Structure with triangle information used in Embree */
Expand Down
2 changes: 1 addition & 1 deletion include/double-down/ray.h → include/double_down/ray.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Double-down
#include "Vec3da.h"

#include "double-down/embree_interface.hpp"
#include "double_down/embree_interface.hpp"

namespace double_down {

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/MOABDirectAccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// MOAB
#include "moab/Range.hpp"

#include "double-down/MOABDirectAccess.h"
#include "double_down/MOABDirectAccess.h"

MBDirectAccess::MBDirectAccess(Interface* mbi) : mbi(mbi) { setup(); }

Expand Down
6 changes: 3 additions & 3 deletions src/MOABRay.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@


#include "double-down/ray.h"
#include "double-down/primitives.hpp"
#include "double-down/MOABRay.h"
#include "double_down/ray.h"
#include "double_down/primitives.hpp"
#include "double_down/MOABRay.h"

bool in_facets(MBRay ray, moab::EntityHandle tri) {
if (ray.rh) {
Expand Down
4 changes: 2 additions & 2 deletions src/RTI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "moab/GeomTopoTool.hpp"

// Double-down
#include "double-down/RTI.hpp"
#include "double-down/constants.h"
#include "double_down/RTI.hpp"
#include "double_down/constants.h"

namespace double_down {

Expand Down
2 changes: 1 addition & 1 deletion src/primitives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "moab/GeomUtil.hpp"

// Local
#include "double-down/primitives.hpp"
#include "double_down/primitives.hpp"

namespace double_down {

Expand Down
2 changes: 1 addition & 1 deletion test/test_build.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <iostream>

#include "double-down/RTI.hpp"
#include "double_down/RTI.hpp"
#include "test_utils.hpp"

using namespace double_down;
Expand Down
2 changes: 1 addition & 1 deletion test/test_closest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "test_utils.hpp"

#include "double-down/RTI.hpp"
#include "double_down/RTI.hpp"

using namespace double_down;

Expand Down
2 changes: 1 addition & 1 deletion test/test_mb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <iostream>

#include "double-down/RTI.hpp"
#include "double_down/RTI.hpp"

#include "test_utils.hpp"

Expand Down
2 changes: 1 addition & 1 deletion test/test_rf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "test_utils.hpp"

#include "double-down/RTI.hpp"
#include "double_down/RTI.hpp"

using namespace double_down;

Expand Down
4 changes: 2 additions & 2 deletions tools/closest_to_location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// MOAB
#include "moab/ProgOptions.hpp"

// double-down
#include "double-down/RTI.hpp"
// double_down
#include "double_down/RTI.hpp"

using namespace double_down;

Expand Down
2 changes: 1 addition & 1 deletion tools/ray_fire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <ctime>

#include "moab/ProgOptions.hpp"
#include "double-down/RTI.hpp"
#include "double_down/RTI.hpp"

using namespace double_down;

Expand Down

0 comments on commit 52b74f1

Please sign in to comment.