Skip to content

Commit

Permalink
Add EXTERNAL_PROJECTS cmake option (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
can-leh-emmtrix authored Nov 2, 2024
1 parent 59cafed commit eac00b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,10 @@ add_custom_target("check"
if (BUILD_TV)
add_dependencies("check" "alive-tv" "quick-fuzz" "tv")
endif()

# EXTERNAL_PROJECTS option that works analogous to LLVM's LLVM_EXTERNAL_PROJECTS option
foreach(EXTERNAL_PROJECT IN LISTS EXTERNAL_PROJECTS)
canonicalize_tool_name(${EXTERNAL_PROJECT} PROJECT_CANON)
message(STATUS "Adding external project ${EXTERNAL_PROJECT} at ${EXTERNAL_${PROJECT_CANON}_SOURCE_DIR}")
add_subdirectory(${EXTERNAL_${PROJECT_CANON}_SOURCE_DIR} ${EXTERNAL_PROJECT})
endforeach()

0 comments on commit eac00b2

Please sign in to comment.