File tree Expand file tree Collapse file tree 4 files changed +12
-16
lines changed Expand file tree Collapse file tree 4 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,14 @@ endif ()
87
87
88
88
option (ENABLE_CATALYST "Build example with Catalyst enabled" ON )
89
89
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")
92
98
endif ()
93
99
94
100
Original file line number Diff line number Diff line change @@ -13,19 +13,8 @@ link_directories (
13
13
set (IPPL_LIBS ippl ${MPI_CXX_LIBRARIES} )
14
14
set (COMPILE_FLAGS ${OPAL_CXX_FLAGS} )
15
15
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} )
29
18
30
19
add_executable (UniformPlasmaTest UniformPlasmaTest.cpp )
31
20
target_link_libraries (UniformPlasmaTest ${IPPL_LIBS} )
Original file line number Diff line number Diff line change 17
17
//
18
18
19
19
#include " Ippl.h"
20
+ #include < catalyst.hpp>
20
21
21
22
#include " Solver/ElectrostaticsCG.h"
22
23
#include " Solver/FFTPeriodicPoissonSolver.h"
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ include_directories (
95
95
96
96
add_library ( ippl ${IPPL_SRCS} ${IPPL_SRCS_FORT} )
97
97
98
- target_link_libraries(ippl PUBLIC Kokkos::kokkos ${HEFFTE_LIBRARY} )
98
+ target_link_libraries(ippl PUBLIC Kokkos::kokkos ${HEFFTE_LIBRARY} catalyst::catalyst )
99
99
100
100
install (TARGETS ippl DESTINATION lib)
101
101
install (FILES ${IPPL_BASEDIR_HDRS} DESTINATION include)
You can’t perform that action at this time.
0 commit comments