move install commands closer to definitions

This commit is contained in:
Valient Gough 2015-06-15 21:16:00 -07:00
parent 322da93252
commit f04381fe17

View File

@ -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")