add_test(NAME fridatest COMMAND fridatest ${CMAKE_SOURCE_DIR})
target_link_libraries(fridatest gmock gtest ${QT_LIBRARIES} ${LLVM_LDFLAGS} -lLLVM-3.5 ${LLVM_SYSTEM_LIBS} ${LOG4CXX_LDFLAGS} ${GUILE_LDFLAGS} ${QUAZIP_LIBRARIES})
target_compile_options(fridatest PRIVATE -DCONFIG_TEST)
+set_property(TEST fridatest
+ APPEND PROPERTY ENVIRONMENT LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR})
install(TARGETS frida
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
-install(TARGETS guilePlugin guile-frida-binding
+install(TARGETS guilePlugin
DESTINATION ${CMAKE_INSTALL_LIBDIR}/frida/plugins/Interpreter)
+
+install(TARGETS guile-frida-binding
+ DESTINATION ${CMAKE_INSTALL_LIBDIR})
\ No newline at end of file
scm_c_use_module("system repl server");
scm_call_0(scm_c_public_ref("system repl server", "spawn-server"));
- scm_c_load_extension(CONFIG_LIBDIR "/frida/plugins/Interpreter/libguile-frida-binding",
+ scm_c_load_extension("libguile-frida-binding",
"scm_init_frida_module");
guile_output_port = scm_open_output_string();