• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cmake_minimum_required(VERSION 3.4.1)
2
3set(GOOGLETEST_ROOT ${ANDROID_NDK}/sources/third_party/googletest/googletest)
4add_library(gtest STATIC ${GOOGLETEST_ROOT}/src/gtest_main.cc ${GOOGLETEST_ROOT}/src/gtest-all.cc)
5target_include_directories(gtest PRIVATE ${GOOGLETEST_ROOT})
6target_include_directories(gtest PUBLIC ${GOOGLETEST_ROOT}/include)
7
8include_directories(../src/main/cpp/)
9
10# Build our test binary
11add_executable (testRhythmGame testLockFreeQueue.cpp)
12target_link_libraries(testRhythmGame  gtest)