Explorar o código

CMake: Build unity as library

Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
896e52255b
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  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)