mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 22:07:50 +08:00
726c111481
vcpkg will now fail on failure to apply patches except when using `--head`.
23 lines
549 B
CMake
23 lines
549 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(pqp)
|
|
|
|
set(SOURCE_CUSTOM_DIR "PQP_v1.3")
|
|
include_directories(${SOURCE_CUSTOM_DIR}/src)
|
|
|
|
file(GLOB SRCS
|
|
"${SOURCE_CUSTOM_DIR}/src/*.cpp")
|
|
file(GLOB HDRS
|
|
"${SOURCE_CUSTOM_DIR}/src/*.h")
|
|
|
|
add_library(pqp STATIC ${SRCS})
|
|
|
|
install(TARGETS pqp EXPORT pqpConfig
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib)
|
|
|
|
foreach (file ${HDRS})
|
|
get_filename_component(dir ${file} DIRECTORY)
|
|
install(FILES ${file} DESTINATION include/ CONFIGURATIONS Release)
|
|
endforeach()
|