From 13edefa6e04258b6ed6a21bb80823984234d9230 Mon Sep 17 00:00:00 2001 From: Andrea Odetti Date: Tue, 6 Oct 2020 20:58:43 +0100 Subject: [PATCH] Add support for older cmake versions. Signed-off-by: Andrea Odetti --- source/CMakeLists.txt | 3 ++- source/frontends/ncurses/CMakeLists.txt | 7 +++++-- source/frontends/qapple/CMakeLists.txt | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 51d1aaef..09de1a6b 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -86,4 +86,5 @@ target_link_libraries(appleii PRIVATE ${MINIZIP_LIBRARIES} ) -install(TARGETS appleii) +install(TARGETS appleii + DESTINATION lib) diff --git a/source/frontends/ncurses/CMakeLists.txt b/source/frontends/ncurses/CMakeLists.txt index c4c5d6fe..672ae48c 100644 --- a/source/frontends/ncurses/CMakeLists.txt +++ b/source/frontends/ncurses/CMakeLists.txt @@ -42,5 +42,8 @@ file(RELATIVE_PATH SHARE_PATH ${CMAKE_INSTALL_FULL_BINDIR} ${CMAKE_INSTALL_FULL_ configure_file(config.h.in config.h) -install(TARGETS applen) -install(DIRECTORY ${CMAKE_SOURCE_DIR}/resource DESTINATION ${CMAKE_INSTALL_DATADIR}/applewin) +install(TARGETS applen + DESTINATION bin) + +install(DIRECTORY ${CMAKE_SOURCE_DIR}/resource + DESTINATION ${CMAKE_INSTALL_DATADIR}/applewin) diff --git a/source/frontends/qapple/CMakeLists.txt b/source/frontends/qapple/CMakeLists.txt index b5580a7c..ca1b2405 100644 --- a/source/frontends/qapple/CMakeLists.txt +++ b/source/frontends/qapple/CMakeLists.txt @@ -36,4 +36,5 @@ target_link_libraries(qapple PRIVATE appleii ) -install(TARGETS qapple) +install(TARGETS qapple + DESTINATION bin)