Skip to content

Commit

Permalink
[max/pd] Keep supporting more types and cases, variants, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Sep 28, 2024
1 parent 4d66915 commit 9b88cb9
Show file tree
Hide file tree
Showing 15 changed files with 1,070 additions and 130 deletions.
1 change: 1 addition & 0 deletions cmake/avendish.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ set(AVENDISH_SOURCES
"${AVND_SOURCE_DIR}/include/avnd/wrappers/process_execution.hpp"
"${AVND_SOURCE_DIR}/include/avnd/wrappers/widgets.hpp"

"${AVND_SOURCE_DIR}/include/avnd/common/arithmetic.hpp"
"${AVND_SOURCE_DIR}/include/avnd/common/aggregates.hpp"
"${AVND_SOURCE_DIR}/include/avnd/common/concepts_polyfill.hpp"
"${AVND_SOURCE_DIR}/include/avnd/common/coroutines.hpp"
Expand Down
29 changes: 25 additions & 4 deletions cmake/avendish.dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ if(NOT TARGET fmt::fmt)
GIT_REPOSITORY "https://github.com/fmtlib/fmt"
GIT_TAG 11.0.1
GIT_PROGRESS true
FETCHCONTENT_FULLY_DISCONNECTED 1
)
FetchContent_MakeAvailable(fmt)
endif()
Expand All @@ -17,7 +16,6 @@ if(NOT TARGET concurrentqueue)
GIT_REPOSITORY "https://github.com/jcelerier/concurrentqueue"
GIT_TAG master
GIT_PROGRESS true
FETCHCONTENT_FULLY_DISCONNECTED 1
)
FetchContent_MakeAvailable(concurrentqueue)
endif()
Expand All @@ -28,7 +26,6 @@ if(NOT TARGET nlohmann_json::nlohmann_json)
GIT_REPOSITORY "https://github.com/nlohmann/json"
GIT_TAG master
GIT_PROGRESS true
FETCHCONTENT_FULLY_DISCONNECTED 1
)
FetchContent_MakeAvailable(nlohmann_json)
endif()
Expand All @@ -43,8 +40,32 @@ if(NOT TARGET pantor::inja)
GIT_REPOSITORY "https://github.com/pantor/inja"
GIT_TAG main
GIT_PROGRESS true
FETCHCONTENT_FULLY_DISCONNECTED 1
)
FetchContent_MakeAvailable(pantor_inja)
endblock()
endif()

if(NOT TARGET qlibs::reflect)
FetchContent_Declare(
qlibs_reflect
GIT_REPOSITORY "https://github.com/qlibs/reflect"
GIT_TAG main
GIT_PROGRESS true
)
FetchContent_MakeAvailable(qlibs_reflect)
add_library(qlibs_reflect INTERFACE)
add_library(qlibs::reflect ALIAS qlibs_reflect)
target_include_directories(qlibs_reflect INTERFACE "${qlibs_reflect_SOURCE_DIR}")
include_directories("${qlibs_reflect_SOURCE_DIR}")
endif()

if(NOT TARGET magic_enum)
FetchContent_Declare(
magic_enum
GIT_REPOSITORY "https://github.com/Neargye/magic_enum"
GIT_TAG master
GIT_PROGRESS true
)
FetchContent_MakeAvailable(magic_enum)
include_directories("${magic_enum_SOURCE_DIR}/include")
endif()
21 changes: 21 additions & 0 deletions cmake/avendish.examples.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
avnd_make_object(
TARGET Aggregate
MAIN_FILE examples/Raw/Aggregate.hpp
MAIN_CLASS examples::Aggregate
C_NAME avnd_aggregate
)

avnd_make_object(
TARGET AllPortsTypes
MAIN_FILE examples/Raw/AllPortsTypes.hpp
MAIN_CLASS examples::AllPortsTypes
C_NAME avnd_all_ports_types
)

avnd_make_object(
TARGET Construct
Expand Down Expand Up @@ -106,6 +119,14 @@ avnd_make_object(
C_NAME avnd_peak
)

avnd_make_object(
TARGET Poles
MAIN_FILE examples/Helpers/Poles.hpp
MAIN_CLASS examples::helpers::Poles
C_NAME avnd_poles
)



avnd_make_object(
TARGET CompleteMessageExample
Expand Down
Loading

0 comments on commit 9b88cb9

Please sign in to comment.