File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed
Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 11/.clangd
22/compile_commands.json
33* .cmake
4+ ! nanothreadConfig.cmake
45CMakeCache.txt
56CMakeFiles
67Makefile
Original file line number Diff line number Diff line change @@ -80,3 +80,33 @@ set_target_properties(nanothread PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE
8080if (NANOTHREAD_ENABLE_TESTS)
8181 add_subdirectory (tests )
8282endif ()
83+
84+ configure_file (nanothreadConfig.cmake "${CMAKE_CURRENT_BINARY_DIR} /nanothread/nanothreadConfig.cmake" COPYONLY )
85+ install (
86+ FILES
87+ nanothreadConfig.cmake
88+ DESTINATION
89+ ${CMAKE_INSTALL_LIBDIR} /cmake/nanothread
90+ )
91+ install (
92+ TARGETS
93+ nanothread
94+ EXPORT
95+ nanothreadTargets
96+ INCLUDES DESTINATION
97+ ${CMAKE_INSTALL_INCLUDEDIR}
98+ )
99+ install (
100+ DIRECTORY
101+ include/nanothread
102+ DESTINATION
103+ ${CMAKE_INSTALL_INCLUDEDIR}
104+ )
105+ install (
106+ EXPORT
107+ nanothreadTargets
108+ FILE
109+ nanothreadTargets.cmake
110+ DESTINATION
111+ ${CMAKE_INSTALL_LIBDIR} /cmake/nanothread
112+ )
Original file line number Diff line number Diff line change 1+ include ("${CMAKE_CURRENT_LIST_DIR} /nanothreadTargets.cmake" )
You can’t perform that action at this time.
0 commit comments