File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,10 @@ set(headers
178178 src/tree_data.h
179179 src/tree_schema.h)
180180
181+ set (gen_headers
182+ src/version .h
183+ src/config.h)
184+
181185# source files to be covered by the 'format' target
182186set (format_sources
183187 compat/*
@@ -302,8 +306,9 @@ find_package(PCRE2 10.21 REQUIRED)
302306include_directories (${PCRE2_INCLUDE_DIRS} )
303307target_link_libraries (yang ${PCRE2_LIBRARIES} )
304308
309+ # install files
305310install (TARGETS yang DESTINATION ${CMAKE_INSTALL_LIBDIR} )
306- install (FILES ${headers} ${PROJECT_BINARY_DIR} /src/ version .h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /libyang)
311+ install (FILES ${headers} ${CMAKE_CURRENT_BINARY_DIR} / ${gen_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /libyang)
307312
308313find_package (PkgConfig)
309314if (PKG_CONFIG_FOUND)
You can’t perform that action at this time.
0 commit comments