From f47f71fed69162146363c86d95ad18aac9598035 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Fri, 6 Feb 2015 15:59:12 +0100 Subject: [PATCH] Add test Framework --- CMakeLists.txt | 17 +++++++++++++++-- src/test.cxx | 2 ++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/test.cxx diff --git a/CMakeLists.txt b/CMakeLists.txt index dfcd885..5b42ebe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,8 +39,6 @@ add_definitions(-DQT_NO_KEYWORDS) separate_arguments(LLVM_LDFLAGS) separate_arguments(LLVM_LIBS) -set(CMAKE_CXX_COMPILER "clang++") - SET(frida_SOURCES src/main.cxx src/core/InformationManager.cxx @@ -74,3 +72,18 @@ qt5_use_modules(frida Widgets) INCLUDE_DIRECTORIES("src") TARGET_LINK_LIBRARIES(frida ${QT_LIBRARIES} ${LLVM_LDFLAGS} -lLLVM-3.5 ${LLVM_SYSTEM_LIBS} ${LOG4CXX_LDFLAGS} ${GUILE_LDFLAGS}) + +################## +# TEST Framework # +################## + +set(fridatest_SOURCES + src/test.cxx + ) + +add_executable(fridatest ${fridatest_SOURCES}) +#ADD_SUBDIRECTORY(/usr/src/gtest gtest) +ADD_SUBDIRECTORY(/usr/src/gmock gmock) +enable_testing() +target_link_libraries(fridatest gmock gtest gmock_main) +add_test( fridatest fridatest ) \ No newline at end of file diff --git a/src/test.cxx b/src/test.cxx new file mode 100644 index 0000000..100ee32 --- /dev/null +++ b/src/test.cxx @@ -0,0 +1,2 @@ +#include + -- 2.39.5