install(EXPORT myprojTargets FILE myprojTargets.cmake NAMESPACE myproj:: DESTINATION lib/cmake/myproj )
4.3 Custom commands and generated code Example: run code generator to produce a header and link it into build cmake cookbook pdf github work
on: [push, pull_request]
add_executable(myapp app.cpp) target_link_libraries(myapp PRIVATE mylib) 3.2 Header-only libraries install(EXPORT myprojTargets FILE myprojTargets
install(EXPORT myprojTargets FILE myprojTargets.cmake NAMESPACE myproj:: DESTINATION lib/cmake/myproj )
4.3 Custom commands and generated code Example: run code generator to produce a header and link it into build
on: [push, pull_request]
add_executable(myapp app.cpp) target_link_libraries(myapp PRIVATE mylib) 3.2 Header-only libraries
Escribe un nuevo comentario