mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 01:58:25 +00:00
30 lines
495 B
CMake
30 lines
495 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(lg_common LANGUAGES C)
|
|
|
|
include_directories(
|
|
${PROJECT_SOURCE_DIR}/include
|
|
)
|
|
|
|
if(ENABLE_BACKTRACE)
|
|
add_definitions(-DENABLE_BACKTRACE)
|
|
endif()
|
|
|
|
add_subdirectory(src/platform)
|
|
|
|
set(COMMON_SOURCES
|
|
src/stringutils.c
|
|
src/stringlist.c
|
|
src/option.c
|
|
src/framebuffer.c
|
|
)
|
|
|
|
add_library(lg_common STATIC ${COMMON_SOURCES})
|
|
target_link_libraries(lg_common lg_common_platform)
|
|
|
|
target_include_directories(lg_common
|
|
INTERFACE
|
|
include
|
|
PRIVATE
|
|
src
|
|
)
|