浏览代码

CMake: Build unity as library

Max Bruckner 8 年之前
父节点
当前提交
896e52255b
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 2 0
      CMakeLists.txt
  2. 1 0
      tests/CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -1,6 +1,8 @@
 set(CMAKE_LEGACY_CYGWIN_WIN32 0)
 set(CMAKE_LEGACY_CYGWIN_WIN32 0)
 cmake_minimum_required(VERSION 2.8)
 cmake_minimum_required(VERSION 2.8)
 
 
+subdirs(tests)
+
 include(GNUInstallDirs)
 include(GNUInstallDirs)
 
 
 project(cJSON C)
 project(cJSON C)

+ 1 - 0
tests/CMakeLists.txt

@@ -0,0 +1 @@
+add_library(unity unity/src/unity.c)