aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
blob: ef5747ead0b3c5b2099b0be2311a28b16c3814b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 3.5) # for Boost::* imported targets

project(winapi_common CXX)

include(cmake/common.cmake)

find_package(Boost REQUIRED)

add_library(winapi_common INTERFACE)
target_include_directories(winapi_common INTERFACE include/)
target_link_libraries(winapi_common INTERFACE Boost::disable_autolinking Boost::headers)

install(DIRECTORY include/winapi DESTINATION include)

if(WINAPI_COMMON_TESTS)
    add_subdirectory(test)
endif()

install(FILES LICENSE.txt DESTINATION share)