xref: /aosp_15_r20/external/oboe/samples/RhythmGame/test/CMakeLists.txt (revision 05767d913155b055644481607e6fa1e35e2fe72c)
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)
13