First point of issue is solved by changing CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR in main CMakeLists.txt and similar modifications inside knp/python-framework/CMakeLists.txt (there was also some actions with LICENSE, VERSION and REAME files).
Second point was solved by changing how I add KNP via CPM:
10
First point of issue is solved by changing CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR in main CMakeLists.txt and similar modifications inside knp/python-framework/CMakeLists.txt (there was also some actions with LICENSE, VERSION and REAME files). Second point was solved by changing how I add KNP via CPM:
By this KNP didn't copy several times inside third-party folder of itself.