Don Turner | fda6701 | 2018-01-19 18:10:25 +0000 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 3.4.1) |
| 2 | |
Don Turner | 94fe485 | 2018-07-03 08:42:09 +0100 | [diff] [blame^] | 3 | # Include GoogleTest library |
Don Turner | eb236cc | 2018-07-03 08:33:05 +0100 | [diff] [blame] | 4 | set(GOOGLETEST_ROOT ${ANDROID_NDK}/sources/third_party/googletest) |
Don Turner | fda6701 | 2018-01-19 18:10:25 +0000 | [diff] [blame] | 5 | add_library(gtest STATIC ${GOOGLETEST_ROOT}/src/gtest_main.cc ${GOOGLETEST_ROOT}/src/gtest-all.cc) |
| 6 | target_include_directories(gtest PRIVATE ${GOOGLETEST_ROOT}) |
| 7 | target_include_directories(gtest PUBLIC ${GOOGLETEST_ROOT}/include) |
| 8 | |
Don Turner | 94fe485 | 2018-07-03 08:42:09 +0100 | [diff] [blame^] | 9 | # Include Oboe sources |
| 10 | set (OBOE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/..) |
| 11 | add_subdirectory(${OBOE_DIR} ./oboe-bin) |
| 12 | include_directories(${OBOE_DIR}/include) |
| 13 | |
| 14 | # Build the test binary |
| 15 | add_executable(testOboe |
| 16 | testUtilities.cpp |
| 17 | testStreamClosedMethods.cpp |
| 18 | ) |
| 19 | target_link_libraries(testOboe gtest oboe) |