File tree Expand file tree Collapse file tree 3 files changed +33
-1
lines changed
Expand file tree Collapse file tree 3 files changed +33
-1
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 @@ -65,11 +65,41 @@ endif()
6565target_include_directories (nanothread
6666 PUBLIC
6767 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
68- $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >)
68+ $<INSTALL_INTERFACE:include >)
6969
7070target_compile_definitions (nanothread PRIVATE -DNANOTHREAD_BUILD=1)
7171set_target_properties (nanothread PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE )
7272
7373if (NANOTHREAD_ENABLE_TESTS)
7474 add_subdirectory (tests)
7575endif ()
76+
77+ configure_file (nanothreadConfig.cmake "${CMAKE_CURRENT_BINARY_DIR} /nanothread/nanothreadConfig.cmake" COPYONLY )
78+ install (
79+ FILES
80+ nanothreadConfig.cmake
81+ DESTINATION
82+ lib/cmake/nanothread
83+ )
84+ install (
85+ TARGETS
86+ nanothread
87+ EXPORT
88+ nanothreadTargets
89+ INCLUDES DESTINATION
90+ include
91+ )
92+ install (
93+ DIRECTORY
94+ include /nanothread
95+ DESTINATION
96+ include
97+ )
98+ install (
99+ EXPORT
100+ nanothreadTargets
101+ FILE
102+ nanothreadTargets.cmake
103+ DESTINATION
104+ lib/cmake/nanothread
105+ )
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