Sfoglia il codice sorgente

CMake: Build unity as library

Max Bruckner 8 anni fa
parent
commit
896e52255b
2 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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)
 cmake_minimum_required(VERSION 2.8)
 
+subdirs(tests)
+
 include(GNUInstallDirs)
 
 project(cJSON C)

+ 1 - 0
tests/CMakeLists.txt

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