diff options
Diffstat (limited to 'third_party/nix/src/libexpr')
-rw-r--r-- | third_party/nix/src/libexpr/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/third_party/nix/src/libexpr/CMakeLists.txt b/third_party/nix/src/libexpr/CMakeLists.txt index 3456052ea9dd..d85cb24c81cd 100644 --- a/third_party/nix/src/libexpr/CMakeLists.txt +++ b/third_party/nix/src/libexpr/CMakeLists.txt @@ -18,8 +18,7 @@ FLEX_TARGET(NixLexer lexer.l ADD_FLEX_BISON_DEPENDENCY(NixLexer NixParser) -target_sources(nixexpr - PUBLIC +set(HEADER_FILES attr-path.hh attr-set.hh common-eval-args.hh @@ -35,6 +34,11 @@ target_sources(nixexpr value.hh value-to-json.hh value-to-xml.hh +) + +target_sources(nixexpr + PUBLIC + ${HEADER_FILES} PRIVATE ${PROJECT_BINARY_DIR}/generated/parser-tab.hh @@ -72,4 +76,5 @@ target_link_libraries(nixexpr gccpp ) +INSTALL(FILES ${HEADER_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/nix/libexpr) INSTALL(TARGETS nixexpr DESTINATION lib) |