You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
target_link_libraries(my_lib INTERFACE project_options project_warnings) # connect project_options to my_lib
123
+
target_link_libraries(my_lib PRIVATE project_options project_warnings) # link project_options/warnings
124
124
125
125
# Includes
126
126
set(INCLUDE_DIR "include") # must be relative paths
@@ -145,7 +145,7 @@ target_link_system_libraries(
145
145
# Package the project
146
146
package_project(
147
147
TARGETS my_lib
148
-
PUBLIC_INCLUDES ${INCLUDE_DIR}
148
+
INTERFACE_INCLUDES ${INCLUDE_DIR}
149
149
)
150
150
```
151
151
@@ -226,13 +226,13 @@ The following arguments specify the package:
226
226
227
227
-`TARGETS`: the targets you want to package. It is recursively found for the current folder if not specified
228
228
229
-
-`PUBLIC_INCLUDES`: a list of public/interface include directories or files.
229
+
-`INTERFACE_INCLUDES` or `PUBLIC_INCLUDES`: a list of interface/public include directories or files.
230
230
231
231
<sub>NOTE: The given include directories are directly installed to the install destination. To have an `include` folder in the install destination with the content of your include directory, name your directory `include`.</sub>
232
232
233
-
-`PUBLIC_DEPENDENCIES_CONFIGURED`: the names of the INTERFACE/PUBLIC dependencies that are found using `CONFIG`.
233
+
-`INTERFACE_DEPENDENCIES_CONFIGURED` or `PUBLIC_DEPENDENCIES_CONFIGURED`: the names of the interface/public dependencies that are found using `CONFIG`.
234
234
235
-
-`PUBLIC_DEPENDENCIES`: the INTERFACE/PUBLIC dependencies that are found by any means using `find_dependency`. The arguments must be specified within quotes (e.g.`"<dependency> 1.0.0 EXACT"` or `"<dependency> CONFIG"`).
235
+
-`INTERFACE_DEPENDENCIES` or `PUBLIC_DEPENDENCIES`: the interface/public dependencies that will be found by any means using `find_dependency`. The arguments must be specified within quotes (e.g.`"<dependency> 1.0.0 EXACT"` or `"<dependency> CONFIG"`).
236
236
237
237
-`PRIVATE_DEPENDENCIES_CONFIGURED`: the names of the PRIVATE dependencies found using `CONFIG`. Only included when `BUILD_SHARED_LIBS` is `OFF`.
0 commit comments