Skip to content

Commit

Permalink
Merge pull request #24 from neheb/a
Browse files Browse the repository at this point in the history
cmake simplifications
  • Loading branch information
folkertvanheusden authored Nov 16, 2024
2 parents 8d85775 + bd6ab7f commit c950b20
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ add_executable(httping ${SOURCES})
target_link_libraries(httping m)

find_package(Intl REQUIRED)
target_link_libraries(httping ${Intl_LIBRARIES})
target_include_directories(httping PUBLIC ${Intl_INCLUDE_DIRS})
target_link_libraries(httping Intl::Intl)

if (USE_GETTEXT)
find_package(Gettext REQUIRED)
Expand All @@ -37,15 +36,8 @@ target_include_directories(httping PUBLIC ${FFTW3_INCLUDE_DIRS})
target_compile_options(httping PUBLIC ${FFTW3_CFLAGS_OTHER})
endif ()

pkg_check_modules(SSL libssl)
target_link_libraries(httping ${SSL_LIBRARIES})
target_include_directories(httping PUBLIC ${SSL_INCLUDE_DIRS})
target_compile_options(httping PUBLIC ${SSL_CFLAGS_OTHER})

pkg_check_modules(OPENSSL openssl)
target_link_libraries(httping ${OPENSSL_LIBRARIES})
target_include_directories(httping PUBLIC ${OPENSSL_INCLUDE_DIRS})
target_compile_options(httping PUBLIC ${OPENSSL_CFLAGS_OTHER})
find_package(OpenSSL REQUIRED)
target_link_libraries(httping OpenSSL::SSL OpenSSL::Crypto)

include(GNUInstallDirs)

Expand Down

0 comments on commit c950b20

Please sign in to comment.