mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
24 lines
512 B
CMake
24 lines
512 B
CMake
cmake_minimum_required(VERSION 3.7)
|
|
include(../../cmake/HermitCore.cmake)
|
|
|
|
project(hermit_xray C)
|
|
|
|
add_compile_options(${HERMIT_APP_FLAGS})
|
|
|
|
file(GLOB SOURCES *.c)
|
|
|
|
add_library(xray STATIC ${SOURCES})
|
|
|
|
target_compile_definitions(xray
|
|
PUBLIC
|
|
-DXRAY -DXRAY_ANNOTATE
|
|
-DXRAY_NO_DEMANGLE
|
|
-DXRAY_DISABLE_BROWSER_INTEGRATION)
|
|
|
|
# deployment
|
|
install(TARGETS xray
|
|
DESTINATION ${TARGET_ARCH}/lib)
|
|
install(FILES libxray.spec
|
|
DESTINATION ${TARGET_ARCH}/lib)
|
|
install(FILES xray.h
|
|
DESTINATION ${TARGET_ARCH}/include)
|