1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2025-11-06 18:52:58 +01:00
fwbuilder/src/procurve_acl/CMakeLists.txt
Charlène Wendling 256362372c Use ${CMAKE_DL_LIBS} for portability
Some systems, like OpenBSD for example, have libdl integrated in libc.
Let CMAKE_DL_LIBS decide if '-ldl' is needed as a linker flag
2020-12-22 03:43:15 +01:00

23 lines
669 B
CMake

set(procurve_acl_srcs
procurve_acl.cpp
)
add_executable(fwb_procurve_acl ${procurve_acl_srcs})
target_link_libraries(fwb_procurve_acl common fwbcisco compilerdriver fwcompiler fwbuilder xml2 pthread m xslt z Qt5::Core Qt5::Widgets)
IF (WIN32)
target_link_libraries(fwb_procurve_acl lzma iconv ws2_32)
ENDIF()
IF (UNIX)
target_link_libraries(fwb_procurve_acl c ${CMAKE_DL_LIBS} util)
ENDIF()
target_compile_options(fwb_procurve_acl PRIVATE ${CXX_DEFAULT_FLAGS})
set_source_files_properties(procurve_acl.cpp PROPERTIES COMPILE_DEFINITIONS PREFIX=\"${CMAKE_INSTALL_PREFIX}\")
install(TARGETS fwb_procurve_acl RUNTIME DESTINATION ${FWB_INSTALL_BINDIR})