From 2759d9b6c03b301d309d431ac9affce3a5c48eb2 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Wed, 23 Nov 2016 22:46:03 -0200 Subject: c-toxcore: Install nTox if built --- chat-libs/c-toxcore/HISTORY | 2 ++ .../0003-Add-nTox-to-the-install-target.patch | 24 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 chat-libs/c-toxcore/patches/0003-Add-nTox-to-the-install-target.patch (limited to 'chat-libs') diff --git a/chat-libs/c-toxcore/HISTORY b/chat-libs/c-toxcore/HISTORY index b1f832641d..e94f69635e 100644 --- a/chat-libs/c-toxcore/HISTORY +++ b/chat-libs/c-toxcore/HISTORY @@ -3,3 +3,5 @@ patches/0001-Add-knob-to-suppress-building-the-toxav-test.patch, patches/0002-Add-knob-to-suppress-building-the-nTox-client.patch: spell created + * patches/0003-Add-nTox-to-the-install-target.patch: Added patch to + install nTox diff --git a/chat-libs/c-toxcore/patches/0003-Add-nTox-to-the-install-target.patch b/chat-libs/c-toxcore/patches/0003-Add-nTox-to-the-install-target.patch new file mode 100644 index 0000000000..9bb7e1acc1 --- /dev/null +++ b/chat-libs/c-toxcore/patches/0003-Add-nTox-to-the-install-target.patch @@ -0,0 +1,24 @@ +From c6e424d812ad3ce0c402e88efcbf009eb8a29ca5 Mon Sep 17 00:00:00 2001 +From: Ismael Luceno +Date: Wed, 23 Nov 2016 22:20:12 -0200 +Subject: [PATCH 3/3] Add nTox to the install target + +Signed-off-by: Ismael Luceno +--- + CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 74c25d7b5d96..1130be3126f5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -484,6 +484,7 @@ option(BUILD_NTOX "Build nTox client" ON) + if(NOT WIN32 AND BUILD_NTOX) + add_c_executable(nTox testing/nTox.c) + target_link_modules(nTox toxcore ${NCURSES_LIBRARIES}) ++ install(TARGETS nTox RUNTIME DESTINATION "bin") + endif() + + add_c_executable(DHT_test testing/DHT_test.c) +-- +2.10.2 -- cgit v1.2.3