2019-04-11 01:03:30 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(lg_common LANGUAGES C)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${PROJECT_SOURCE_DIR}/include
|
|
|
|
)
|
|
|
|
|
2019-05-09 12:06:58 +00:00
|
|
|
set(SOURCES
|
2019-05-12 06:13:50 +00:00
|
|
|
src/stringlist.c
|
2019-05-09 12:06:58 +00:00
|
|
|
src/option.c
|
|
|
|
)
|
|
|
|
|
2019-04-11 01:34:22 +00:00
|
|
|
if(WIN32)
|
2019-05-09 12:06:58 +00:00
|
|
|
add_library(lg_common STATIC src/crash.windows.c ${SOURCES})
|
2019-04-11 01:34:22 +00:00
|
|
|
else()
|
2019-05-09 12:06:58 +00:00
|
|
|
add_library(lg_common STATIC src/crash.linux.c ${SOURCES})
|
2019-04-11 06:41:52 +00:00
|
|
|
target_link_libraries(lg_common bfd)
|
2019-04-11 01:34:22 +00:00
|
|
|
endif()
|
2019-04-11 01:03:30 +00:00
|
|
|
|
|
|
|
target_include_directories(lg_common
|
|
|
|
INTERFACE
|
|
|
|
include
|
|
|
|
PRIVATE
|
|
|
|
src
|
|
|
|
)
|