Skip to content

Commit

Permalink
cmake: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Mar 24, 2024
1 parent 0febab6 commit 3767e8a
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.14)
project(libftp
VERSION 0.3.3
DESCRIPTION "FTP client library"
LANGUAGES CXX)
VERSION 0.3.3
DESCRIPTION "FTP client library"
LANGUAGES CXX)

string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}" is_top_level)

Expand Down Expand Up @@ -77,11 +77,9 @@ if (LIBFTP_BUILD_CMDLINE_CLIENT)
endif()

include(GNUInstallDirs)
install(
TARGETS ftp
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(
DIRECTORY include/ftp
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(TARGETS ftp
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(DIRECTORY include/ftp
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

0 comments on commit 3767e8a

Please sign in to comment.