<div>hello, world!</div><div>sorry for my english:</div><div>I have several libraries that come to me in archives compiled with their header files. for unpacking and configuring the primary method I use externalproject_add(). next, I need to install them and create configuration scripts for further importing into several projects using the find_package() method. however, in this script:</div><div># ----------------------------------------</div><div>externalproject_add( libA_external ... )</div><div>add_library( libA STATIC IMPORTED )</div><div><div>set_target_properties( libA PROPERTIES IMPORTED_LOCATION ... )</div><div>install( TARGETS libA ... ) # <---- I got error: install TARGETS given target "libA" which does not exist in this directory.</div><div># ----------------------------------------</div><div>how to write such a script so that a configuration file is automatically created for importing the library and headers with find_package()?</div><div>perhaps someone has an example?</div><div>thank you.</div></div>