Skip to content

Commit

Permalink
Adding pthread wrapper and screen_output to policy plugin example
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Mar 4, 2021
1 parent 0ceb3a8 commit ec65380
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ endif()
if (NOT BUILD_STATIC_EXECUTABLES AND APEX_WITH_PLUGINS)
add_test (ExamplePeriodicPlugin PeriodicPlugin/periodic_policy_test)
set_property(TEST ExamplePeriodicPlugin APPEND PROPERTY ENVIRONMENT "APEX_POLICY=1")
set_property(TEST ExamplePeriodicPlugin APPEND PROPERTY ENVIRONMENT "APEX_SCREEN_OUTPUT=1")
set_property(TEST ExamplePeriodicPlugin APPEND PROPERTY ENVIRONMENT "APEX_PLUGINS_PATH=${PROJECT_BINARY_DIR}/src/examples/PeriodicPlugin")
set_property(TEST ExamplePeriodicPlugin APPEND PROPERTY ENVIRONMENT "APEX_PLUGINS=libapex_periodic_policy")
if(APPLE)
set_property(TEST ExamplePeriodicPlugin APPEND PROPERTY ENVIRONMENT "DYLD_INSERT_LIBRARIES=${PROJECT_BINARY_DIR}/src/apex/libapex.dylib")
set_property(TEST ExamplePeriodicPlugin APPEND PROPERTY ENVIRONMENT "DYLD_INSERT_LIBRARIES=${PROJECT_BINARY_DIR}/src/apex/libapex.dylib:${PROJECT_BINARY_DIR}/src/wrappers/libapex_pthread_wrapper.dylib")
set_property(TEST ExamplePeriodicPlugin APPEND PROPERTY ENVIRONMENT "DYLD_LIBRARY_PATH=${PROJECT_BINARY_DIR}/src/apex")
set_property(TEST ExamplePeriodicPlugin APPEND PROPERTY ENVIRONMENT "DYLD_FORCE_FLAT_NAMESPACE=1")
else(APPLE)
Expand Down

0 comments on commit ec65380

Please sign in to comment.