]> git.siccegge.de Git - frida/frida.git/blobdiff - CMakeLists.txt
Add test Framework
[frida/frida.git] / CMakeLists.txt
index dfcd8859c880487c93664ac75d63621f009e473f..5b42ebe56fe1abe0a911d52a514fb837b4e738dc 100644 (file)
@@ -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