mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
438548c427
This is known as 'introspection' in the gnif/qemu repo, it's name is not final, however porthole is more appropriate but also may not be the final name. Note: This branch is experiemental and may never be released if QEMU do not accept the patch for the new device upstream.
26 lines
448 B
CMake
26 lines
448 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(porthole LANGUAGES C)
|
|
|
|
include_directories(
|
|
${PROJECT_SOURCE_DIR}/include
|
|
)
|
|
|
|
add_library(porthole STATIC
|
|
src/porthole.c
|
|
)
|
|
|
|
if(WIN32)
|
|
add_subdirectory(src/windows)
|
|
target_link_libraries(porthole PRIVATE porthole-windows)
|
|
else()
|
|
add_subdirectory(src/linux)
|
|
target_link_libraries(porthole PRIVATE porthole-linux)
|
|
endif()
|
|
|
|
target_include_directories(porthole
|
|
INTERFACE
|
|
include
|
|
PRIVATE
|
|
src
|
|
)
|