mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 06:38:59 +08:00
28 lines
875 B
Diff
28 lines
875 B
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 4038875..94d2aea 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -28,17 +28,20 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
|
endif()
|
|
|
|
# Expose public API
|
|
-target_include_directories(benchmark PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
|
+target_include_directories(benchmark PRIVATE ${PROJECT_SOURCE_DIR}/include)
|
|
|
|
# Install target (will install the library to specified CMAKE_INSTALL_PREFIX variable)
|
|
install(
|
|
TARGETS benchmark
|
|
+ EXPORT benchmarkTargets
|
|
ARCHIVE DESTINATION lib
|
|
LIBRARY DESTINATION lib
|
|
RUNTIME DESTINATION bin
|
|
- COMPONENT library)
|
|
+ INCLUDES DESTINATION include)
|
|
|
|
install(
|
|
DIRECTORY "${PROJECT_SOURCE_DIR}/include/benchmark"
|
|
DESTINATION include
|
|
FILES_MATCHING PATTERN "*.*h")
|
|
+
|
|
+install(EXPORT benchmarkTargets NAMESPACE benchmark:: DESTINATION share/benchmark)
|