mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 18:39:07 +08:00
583abdf87a
* [wintoast] Add new port. * Add CMakeLists.txt. * Change the way to install headers.
25 lines
530 B
CMake
25 lines
530 B
CMake
cmake_minimum_required(VERSION 3.11)
|
|
project(wintoast)
|
|
|
|
set(SRC_FILES
|
|
src/wintoastlib.cpp
|
|
)
|
|
|
|
add_library(wintoast ${SRC_FILES})
|
|
|
|
target_include_directories(wintoast PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
|
$<INSTALL_INTERFACE:include/wintoast>
|
|
)
|
|
|
|
# Install targets
|
|
install(TARGETS wintoast
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
|
|
# Install headers
|
|
if (INSTALL_HEADERS)
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/wintoastlib.h DESTINATION include/wintoast)
|
|
endif() |