PROJECT(frida)
set(CMAKE_VERBOSE_MAKEFILE on)
-
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules")
+include(GNUInstallDirs)
find_package(Qt5Widgets)
find_package(Qt5 CONFIG REQUIRED Widgets Gui)
)
ADD_EXECUTABLE(frida src/main.cxx ${frida_SOURCES} ${frida_HEADERS_MOC})
-#ADD_LIBRARY(llvm SHARED )
+
ADD_DEFINITIONS(${QT_DEFINITIONS})
enable_testing()
target_link_libraries(fridatest gmock gtest ${QT_LIBRARIES} ${LLVM_LDFLAGS} -lLLVM-3.5 ${LLVM_SYSTEM_LIBS} ${LOG4CXX_LDFLAGS} ${GUILE_LDFLAGS} ${QUAZIP_LIBRARIES})
add_test(NAME fridatest COMMAND fridatest ${CMAKE_SOURCE_DIR})
+
+
+
+install(TARGETS frida
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+install(TARGETS guilePlugin
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/frida/plugins/Interpreter)