From 896e52255bdb30f2a75e5843326afca767e17bf2 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Mon, 16 Jan 2017 14:36:11 +0100 Subject: [PATCH] CMake: Build unity as library --- CMakeLists.txt | 2 ++ tests/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+) create mode 100644 tests/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index d6af661..0b62ba7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ set(CMAKE_LEGACY_CYGWIN_WIN32 0) cmake_minimum_required(VERSION 2.8) +subdirs(tests) + include(GNUInstallDirs) project(cJSON C) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..a7cf61f --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1 @@ +add_library(unity unity/src/unity.c) -- GitLab