X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=CMakeLists.txt;h=c0abdf52e0029821f24e1dabcf26f29a55e9650f;hp=cbc597f0f6ed7ddc7f4bbeb7dc99cae656476d3b;hb=fd85e36ca37c93139dc7bf8d06cf71bc5a225321;hpb=3a4fade0292b9b8776c6195467b70a8f25a3b1c7 diff --git a/CMakeLists.txt b/CMakeLists.txt index cbc597f..c0abdf5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ qt5_use_modules(frida Widgets) TARGET_LINK_LIBRARIES(frida ${QT_LIBRARIES} ${LLVM_LDFLAGS} - -lLLVM-3.5 + ${LLVM_DYNAMIC_LIB} ${LLVM_SYSTEM_LIBS} ${LOG4CXX_LDFLAGS} ${QUAZIP_LIBRARIES}) @@ -129,6 +129,10 @@ set(fridatest_SOURCES src/core/tests/BasicBlockTest.cxx src/core/tests/FunctionTest.cxx src/core/tests/CommentTest.cxx + src/disassembler/llvm/tests/amd64LinuxDisassemblerTest.cxx + src/disassembler/llvm/tests/mipselLinuxDisassemblerTest.cxx + src/disassembler/llvm/tests/armelLinuxDisassemblerTest.cxx + src/disassembler/llvm/tests/amd64MachODisassemblerTest.cxx ${frida_SOURCES} ) @@ -140,7 +144,16 @@ qt5_use_modules(fridatest Widgets) ADD_SUBDIRECTORY(/usr/src/gmock gmock) enable_testing() add_test(NAME fridatest COMMAND fridatest ${CMAKE_SOURCE_DIR}/testdata) -target_link_libraries(fridatest gmock gtest ${QT_LIBRARIES} ${LLVM_LDFLAGS} -lLLVM-3.5 ${LLVM_SYSTEM_LIBS} ${LOG4CXX_LDFLAGS} ${GUILE_LDFLAGS} ${QUAZIP_LIBRARIES}) +target_link_libraries(fridatest + gmock + gtest + ${QT_LIBRARIES} + ${LLVM_LDFLAGS} + ${LLVM_DYNAMIC_LIB} + ${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})