X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=blobdiff_plain;f=CMakeLists.txt;h=e0abe0807f0aad6c79ef5d1345de2892f133874f;hp=8112859a071941d9329b2d5504b7a322557ea8dd;hb=e3aa092cc84fc6eff6051c6ae306c085b50271ab;hpb=8e50917e51f7f21c53f9021063670065c8fa06d8 diff --git a/CMakeLists.txt b/CMakeLists.txt index 8112859..e0abe08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,20 @@ if(${EXT_PREFIX_CLASS}) add_definitions(-DEXT_PREFIX_CLASS=${EXT_PREFIX_CLASS}) endif(${EXT_PREFIX_CLASS}) -add_executable(odhcp6c src/odhcp6c.c src/dhcpv6.c src/ra.c src/script.c src/md5.c) +if(${EXT_CER_ID}) + add_definitions(-DEXT_CER_ID=${EXT_CER_ID}) +endif(${EXT_CER_ID}) + +if(${EXT_S46}) + add_definitions(-DEXT_S46=${EXT_S46}) +endif(${EXT_S46}) + +if(${EXT_BFD_PING}) + add_definitions(-DEXT_BFD_PING) + set(BFD_SOURCE src/bfd.c) +endif(${EXT_BFD_PING}) + +add_executable(odhcp6c src/odhcp6c.c src/dhcpv6.c src/ra.c src/script.c src/md5.c ${BFD_SOURCE}) target_link_libraries(odhcp6c resolv) # Installation