NerfUS_cmake_cleanup

Dependencies:   mbed-rtos mbed

Fork of NerfUS by NerfUS

Committer:
Maxime Dupuis
Date:
Thu Feb 09 14:24:39 2017 -0500
Revision:
8:0498fa4f5c1f
Parent:
4:8b9f91de6cf1
Simplify the build process

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Maxime Dupuis 3:aaf84424abb1 1 cmake_minimum_required(VERSION 3.5)
Maxime Dupuis 3:aaf84424abb1 2
Maxime Dupuis 8:0498fa4f5c1f 3 include("GoogleTest.cmake")
Maxime Dupuis 8:0498fa4f5c1f 4
Maxime Dupuis 3:aaf84424abb1 5 include_directories(include)
Maxime Dupuis 3:aaf84424abb1 6
Maxime Dupuis 3:aaf84424abb1 7 file(GLOB SOURCES "source/*.cpp")
Maxime Dupuis 4:8b9f91de6cf1 8 file(GLOB TEST_SOURCES "TESTS/*.cpp")
Maxime Dupuis 3:aaf84424abb1 9
Maxime Dupuis 3:aaf84424abb1 10 add_executable(run_unit_tests ${SOURCES} ${TEST_SOURCES})
Maxime Dupuis 8:0498fa4f5c1f 11 target_link_libraries(run_unit_tests gmock_main)