From f04381fe17afec8f69fc1068489ef9c4b43b99e8 Mon Sep 17 00:00:00 2001 From: Valient Gough Date: Mon, 15 Jun 2015 21:16:00 -0700 Subject: [PATCH] move install commands closer to definitions --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cd5fd06..d598584 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,9 +117,11 @@ target_link_libraries(encfs add_executable (encfs-bin encfs/main.cpp) target_link_libraries (encfs-bin encfs) set_target_properties (encfs-bin PROPERTIES OUTPUT_NAME "encfs") +install (TARGETS encfs DESTINATION bin) add_executable (encfsctl encfs/encfsctl.cpp) target_link_libraries (encfsctl encfs) +install (TARGETS encfsctl DESTINATION bin) add_executable (makekey encfs/makeKey.cpp) target_link_libraries (makekey encfs) @@ -127,6 +129,8 @@ target_link_libraries (makekey encfs) add_executable (checkops encfs/test.cpp) target_link_libraries (checkops encfs) +install (FILES ${CMAKE_SOURCE_DIR}/encfs/encssh DESTINATION bin) + # Reference all headers, to make certain IDEs happy. file (GLOB_RECURSE all_headers ${CMAKE_SOURCE_DIR}/*.h) add_custom_target (all_placeholder SOURCES ${all_headers}) @@ -144,9 +148,6 @@ if (POD2MAN) DESTINATION share/man/man1) endif (POD2MAN) -install (TARGETS encfs DESTINATION bin) -install (FILES ${CMAKE_SOURCE_DIR}/encfs/encssh DESTINATION bin) - # Translations if (GETTEXT_FOUND) file(GLOB po_files "po/*.po")