Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Ambrose committed Apr 11, 2024
1 parent 37f4b57 commit c0263eb
Show file tree
Hide file tree
Showing 3 changed files with 689 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ if (BUILD_TESTING)
if (NOT CMAKE_CROSSCOMPILING )
add_subdirectory(bin/elastipubsub)
add_subdirectory(bin/elastipubsub5)
add_subdirectory(bin/elastishadow)
add_subdirectory(bin/mqtt5canary)
endif()
endif ()
29 changes: 29 additions & 0 deletions bin/elastishadow/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
project(elastishadow C)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/lib/cmake")

file(GLOB ELASTISHADOW_SRC
"*.c"
)

set(ELASTISHADOW_PROJECT_NAME elastishadow)
add_executable(${ELASTISHADOW_PROJECT_NAME} ${ELASTISHADOW_SRC})
aws_set_common_properties(${ELASTISHADOW_PROJECT_NAME})


target_include_directories(${ELASTISHADOW_PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)

target_link_libraries(${ELASTISHADOW_PROJECT_NAME} PRIVATE aws-c-mqtt)

if (BUILD_SHARED_LIBS AND NOT WIN32)
message(INFO " elastishadow will be built with shared libs, but you may need to set LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib to run the application")
endif()

install(TARGETS ${ELASTISHADOW_PROJECT_NAME}
EXPORT ${ELASTISHADOW_PROJECT_NAME}-targets
COMPONENT Runtime
RUNTIME
DESTINATION bin
COMPONENT Runtime)
Loading

0 comments on commit c0263eb

Please sign in to comment.