forked from zeromq/zyre
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solution: fix autoconf and CMake with local project-specific targets to build it again
- Loading branch information
Showing
7 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
AC_DEFUN([AX_PROJECT_LOCAL_HOOK], [ | ||
# Check for examples/chat intent | ||
AC_ARG_ENABLE([examples_chat], | ||
AS_HELP_STRING([--enable-examples-chat], | ||
[Compile 'chat' in examples/chat [default=no]]), | ||
[enable_examples_chat=$enableval], | ||
[enable_examples_chat=no]) | ||
AM_CONDITIONAL([ENABLE_EXAMPLES_CHAT], [test x$enable_examples_chat != xno]) | ||
AM_COND_IF([ENABLE_EXAMPLES_CHAT], [AC_MSG_NOTICE([ENABLE_EXAMPLES_CHAT defined])]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
add_executable( | ||
chat | ||
"${SOURCE_DIR}/examples/chat/chat.c" | ||
) | ||
target_link_libraries( | ||
chat | ||
zyre | ||
${LIBZMQ_LIBRARIES} | ||
${CZMQ_LIBRARIES} | ||
${OPTIONAL_LIBRARIES} | ||
) | ||
set_target_properties( | ||
chat | ||
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${SOURCE_DIR}/examples/chat" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Project-local changes to auto-generated content | ||
|
||
if ENABLE_EXAMPLES_CHAT | ||
EXTRA_DIST += examples/LICENSE | ||
|
||
noinst_PROGRAMS += examples/chat/chat | ||
examples_chat_chat_SOURCES = examples/chat/chat.c | ||
examples_chat_chat_CPPFLAGS = ${AM_CPPFLAGS} | ||
examples_chat_chat_LDADD = ${program_libs} | ||
endif #ENABLE_EXAMPLES_CHAT |