File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,25 @@ if(NOT CODSPEED_MODE STREQUAL "off")
9797 endif ()
9898endif ()
9999
100+ # Install the codspeed.h header
101+ install (
102+ FILES
103+ include /codspeed.h # or wherever codspeed.h is located in core/
104+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /benchmark
105+ # Or possibly: DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
106+ )
107+
108+ # If there's also a library to install:
109+ install (
110+ TARGETS
111+ codspeed_core # whatever the target name is
112+ EXPORT codspeed-targets
113+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
114+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
115+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
116+ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
117+ )
118+
100119message (STATUS "Codspeed mode: ${CODSPEED_MODE} " )
101120
102121option (ENABLE_TESTS "Enable building the unit tests which depend on gtest" OFF )
You can’t perform that action at this time.
0 commit comments