Skip to content

Commit

Permalink
Update janapy
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Aug 6, 2024
1 parent 4514739 commit acc3538
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/python/plugins/janapy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@

# See https://pybind11.readthedocs.io/en/stable/faq.html#someclass-declared-with-greater-visibility-than-the-type-of-its-field-someclass-member-wattributes

add_library(janapy_plugin SHARED janapy_plugin.cc)
target_compile_options(janapy_plugin PRIVATE "-fvisibility=hidden")
target_include_directories(janapy_plugin PRIVATE ${PYTHON_INCLUDE_DIRS} ${pybind11_INCLUDE_DIRS} ../../common)
target_link_libraries(janapy_plugin PRIVATE ${PYTHON_LIBRARIES} pybind11::embed)
add_jana_plugin(janapy SOURCES janapy_plugin.cc)

target_compile_options(janapy PRIVATE "-fvisibility=hidden")
target_include_directories(janapy PRIVATE ${PYTHON_INCLUDE_DIRS} ${pybind11_INCLUDE_DIRS} ../../common)
target_link_libraries(janapy PRIVATE ${PYTHON_LIBRARIES} pybind11::embed)

set_target_properties(janapy_plugin PROPERTIES PREFIX "" SUFFIX ".so" LIBRARY_OUTPUT_NAME "janapy")
install(TARGETS janapy_plugin DESTINATION plugins)



Expand Down

0 comments on commit acc3538

Please sign in to comment.