mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 19:39:06 +08:00
21 lines
481 B
CMake
21 lines
481 B
CMake
|
cmake_minimum_required(VERSION 3.0)
|
||
|
project(pqp)
|
||
|
|
||
|
include_directories(${SOURCE}/src)
|
||
|
|
||
|
file(GLOB SRCS
|
||
|
"${SOURCE}/src/*.cpp")
|
||
|
file(GLOB HDRS
|
||
|
"${SOURCE}/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()
|