Skip to content

Commit

Permalink
install headers from AST classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-ullery committed May 9, 2023
1 parent 952ced2 commit 13a6227
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ set(OUTPUT_HEADERS
${PROJECT_SOURCE_DIR}/apparmor_parser.hh
)

set(OUTPUT_TREE_HEADERS
${PROJECT_SOURCE_DIR}/tree/TreeNode.hh
${PROJECT_SOURCE_DIR}/tree/ParseTree.hh
${PROJECT_SOURCE_DIR}/tree/ProfileNode.hh
${PROJECT_SOURCE_DIR}/tree/PrefixNode.hh
${PROJECT_SOURCE_DIR}/tree/AliasNode.hh
${PROJECT_SOURCE_DIR}/tree/RuleNode.hh
${PROJECT_SOURCE_DIR}/tree/FileNode.hh
${PROJECT_SOURCE_DIR}/tree/LinkNode.hh
${PROJECT_SOURCE_DIR}/tree/AbstractionNode.hh
${PROJECT_SOURCE_DIR}/tree/RuleList.hh
)

#### Bison stuff ####
find_package(BISON REQUIRED)

Expand Down Expand Up @@ -136,6 +149,7 @@ target_include_directories(${LIBRARY_NAME} SYSTEM PRIVATE ${AUTOGEN_SOURCE_DIR})
# Create target to install library
install(TARGETS ${LIBRARY_NAME} DESTINATION lib/${PROJECT_NAME})
install(FILES ${OUTPUT_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${OUTPUT_TREE_HEADERS} DESTINATION include/${PROJECT_NAME}/tree/)

# Create uninstall target
# Copied from: https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#can-i-do-make-uninstall-with-cmake
Expand Down

0 comments on commit 13a6227

Please sign in to comment.