mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
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
|
||
|
)
|