21 lines
386 B
CMake
21 lines
386 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(lg_common_platform_code LANGUAGES C)
|
|
|
|
include_directories(
|
|
${PROJECT_SOURCE_DIR}/include
|
|
)
|
|
|
|
add_library(lg_common_platform_code STATIC
|
|
crash.c
|
|
sysinfo.c
|
|
thread.c
|
|
event.c
|
|
ivshmem.c
|
|
)
|
|
|
|
if(ENABLE_BACKTRACE)
|
|
target_link_libraries(lg_common_platform_code bfd)
|
|
endif()
|
|
|
|
target_link_libraries(lg_common_platform_code pthread)
|