File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ else()
69
69
set (UTPP_INSTALL_DESTINATION "include/UnitTestPP" )
70
70
endif ()
71
71
72
- install (TARGETS UnitTest++ DESTINATION lib )
72
+ set (config_install_dir_ lib/cmake/${PROJECT_NAME} )
73
+ set (targets_export_name_ "${PROJECT_NAME} Targets" )
74
+
75
+ install (TARGETS UnitTest++ EXPORT "${targets_export_name_} " DESTINATION lib )
73
76
install (FILES ${headers_} DESTINATION ${UTPP_INSTALL_DESTINATION} )
74
77
install (FILES ${platformHeaders_} DESTINATION ${UTPP_INSTALL_DESTINATION} /${platformDir_} )
78
+ install (FILES cmake/UnitTest++Config.cmake DESTINATION "${config_install_dir_} " )
79
+ install (EXPORT "${targets_export_name_} " DESTINATION "${config_install_dir_} " )
Original file line number Diff line number Diff line change
1
+ include ("${CMAKE_CURRENT_LIST_DIR} /UnitTest++Targets.cmake" )
2
+ get_filename_component (UTPP_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR} /../../../include/" ABSOLUTE )
You can’t perform that action at this time.
0 commit comments