NerfUS_cmake_add_library_from_mbed
Dependencies: mbed-rtos mbed HardwareInterface
Fork of NerfUS_cmake_cleanup by
GoogleTest.cmake
- Committer:
- Maxime Dupuis
- Date:
- 2017-02-16
- Revision:
- 12:850be84c78dd
- Parent:
- 11:55930acb6c96
File content as of revision 12:850be84c78dd:
cmake_minimum_required(VERSION 3.5) # Download and unpack googletest at configure time configure_file(GoogleTest.txt.in googletest-download/CMakeLists.txt) execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" . WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download ) execute_process(COMMAND ${CMAKE_COMMAND} --build . WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download ) # Add googletest directly to our build. This adds the following targets: gtest, gtest_main, gmock and gmock_main add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src ${CMAKE_BINARY_DIR}/googletest-build) include_directories("${gtest_SOURCE_DIR}/include")