debian: fix build-deps for focal
[amule.git] / src / libs / ec / cpp / CMakeLists.txt
blob1352f64530278cddd08a7e812a5f2f7a27c1747c
1 add_library (ec STATIC
2         ECMuleSocket.cpp
3         ECPacket.cpp
4         ECSpecialTags.cpp
5         ECSocket.cpp
6         ECTag.cpp
7         ECUInt128.cpp
8         RemoteConnect.cpp
11 add_dependencies (ec
12         generate_ECCodes.h
13         generate_ECTagTypes.h
16 target_compile_definitions (ec
17         PRIVATE wxUSE_GUI=0
20 target_include_directories (ec
21         PUBLIC ${CMAKE_BINARY_DIR}
22         PUBLIC ${CMAKE_CURRENT_BINARY_DIR}
23         PRIVATE ${INCLUDE_INCLUDE_DIR}
24         PRIVATE ${LIBS_INCLUDE_DIR}
27 if (ENABLE_BOOST)
28         target_include_directories (ec
29                 PUBLIC ${Boost_INCLUDE_DIR}
30         )
31 endif()
33 target_link_libraries (ec
34         PRIVATE CRYPTOPP::CRYPTOPP
35         PRIVATE wxWidgets::BASE
36         PRIVATE ZLIB::ZLIB