Skip to content

Commit 7b6e9de

Browse files
committed
clean up import of target to have them better debuggable with Jens
* adding mesage of imported targets from catalyst * link catalyst against IPPL (need to put that in an if clause) * include "catalyst.hpp" in ChargedParticles
1 parent 9407ff3 commit 7b6e9de

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,14 @@ endif ()
8787

8888
option(ENABLE_CATALYST "Build example with Catalyst enabled" ON)
8989
if (ENABLE_CATALYST)
90-
find_package(catalyst REQUIRED
91-
PATHS "${ParaView_DIR}/catalyst")
90+
get_property(importTargets DIRECTORY "${CMAKE_SOURCE_DIR}" PROPERTY IMPORTED_TARGETS)
91+
92+
find_package(catalyst REQUIRED)
93+
get_property(importTargetsAfter DIRECTORY "${CMAKE_SOURCE_DIR}" PROPERTY IMPORTED_TARGETS)
94+
list(REMOVE_ITEM importTargetsAfter ${importTargets})
95+
96+
message("Imported Targets from catalyst:\n ${importTargetsAfter}")
97+
# PATHS "${ParaView_DIR}/catalyst")
9298
endif ()
9399

94100

alpine/CMakeLists.txt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,8 @@ link_directories (
1313
set (IPPL_LIBS ippl ${MPI_CXX_LIBRARIES})
1414
set (COMPILE_FLAGS ${OPAL_CXX_FLAGS})
1515

16-
add_executable (PenningTrap PenningTrap.cpp
17-
CatalystAdaptor.h)
18-
19-
target_compile_definitions(PenningTrap
20-
PRIVATE
21-
"PARAVIEW_IMPL_DIR=\"${ParaView_CATALYST_DIR}\""
22-
ENABLE_CATALYST=1)
23-
# target_link_libraries(PenningTrap
24-
# PRIVATE
25-
# catalyst::catalyst
26-
# ${IPPL_LIBS})
27-
28-
target_link_libraries (PenningTrap ${IPPL_LIBS} catalyst::catalyst)
16+
add_executable (PenningTrap PenningTrap.cpp)
17+
target_link_libraries (PenningTrap PUBLIC ${IPPL_LIBS})
2918

3019
add_executable (UniformPlasmaTest UniformPlasmaTest.cpp)
3120
target_link_libraries (UniformPlasmaTest ${IPPL_LIBS})

alpine/ChargedParticles.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
//
1818

1919
#include "Ippl.h"
20+
#include <catalyst.hpp>
2021

2122
#include "Solver/ElectrostaticsCG.h"
2223
#include "Solver/FFTPeriodicPoissonSolver.h"

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ include_directories (
9595
9696
add_library ( ippl ${IPPL_SRCS} ${IPPL_SRCS_FORT} )
9797
98-
target_link_libraries(ippl PUBLIC Kokkos::kokkos ${HEFFTE_LIBRARY})
98+
target_link_libraries(ippl PUBLIC Kokkos::kokkos ${HEFFTE_LIBRARY} catalyst::catalyst)
9999
100100
install (TARGETS ippl DESTINATION lib)
101101
install (FILES ${IPPL_BASEDIR_HDRS} DESTINATION include)

0 commit comments

Comments
 (0)