Skip to content

Commit

Permalink
refactor(cmake): move generate_export_header() below
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Nov 20, 2024
1 parent b6c234a commit fe6ec9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ add_library(ftp::ftp ALIAS ftp)
target_link_libraries(ftp PUBLIC Boost::boost)
target_link_libraries(ftp PUBLIC OpenSSL::SSL)

include(GenerateExportHeader)
generate_export_header(ftp
BASE_NAME libftp
EXPORT_FILE_NAME ${CMAKE_CURRENT_SOURCE_DIR}/include/ftp/export.hpp)

target_include_directories(ftp
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

target_compile_features(ftp PUBLIC cxx_std_17)

include(GenerateExportHeader)
generate_export_header(ftp
BASE_NAME libftp
EXPORT_FILE_NAME ${CMAKE_CURRENT_SOURCE_DIR}/include/ftp/export.hpp)

if (LIBFTP_BUILD_TEST)
enable_testing()
add_subdirectory(test)
Expand Down

0 comments on commit fe6ec9c

Please sign in to comment.