looking-glass/porthole/CMakeLists.txt
Geoffrey McRae 438548c427 [porthole] initial implementation of the porthole device interface
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.
2019-10-30 17:28:13 +11:00

25 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
)