From db03e437d411b937d2e0cf10e1215b894a549357 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 10 Jun 2022 13:28:53 -0400 Subject: [PATCH] CMakeLists.txt - Group lines by example and tests for readability --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bc2c43..632947f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,9 +14,11 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_D set(minmea_SRCS minmea.c minmea.h) add_library(minmea ${minmea_SRCS}) + add_executable(example example.c) -add_executable(tests tests.c) target_link_libraries(example minmea) + +add_executable(tests tests.c) target_link_libraries(tests minmea ${CHECK_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) target_include_directories(tests PUBLIC ${CHECK_INCLUDE_DIRS}) target_compile_options(tests PUBLIC ${CHECK_CFLAGS_OTHER})