1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00
libhermit/usr/xray/CMakeLists.txt
2017-04-03 18:14:56 +02:00

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)