[build] make "common" a static library (part 1/2)

This commit is contained in:
Geoffrey McRae
2019-04-11 11:03:30 +10:00
parent bee221c18d
commit 28b12c85f4
22 changed files with 60 additions and 35 deletions

20
common/CMakeLists.txt Normal file
View File

@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.0)
project(lg_common LANGUAGES C)
include_directories(
${PROJECT_SOURCE_DIR}/include
)
add_library(lg_common STATIC
src/debug.c
)
#target_link_libraries(lg_common
#)
target_include_directories(lg_common
INTERFACE
include
PRIVATE
src
)

0
common/src/debug.c Normal file
View File