--- /dev/null
+INPUT = @CMAKE_CURRENT_SOURCE_DIR@/config/ @CMAKE_CURRENT_SOURCE_DIR@/dns/ @CMAKE_CURRENT_SOURCE_DIR@/host/ @CMAKE_CURRENT_SOURCE_DIR@/icmp/ @CMAKE_CURRENT_SOURCE_DIR@/ip/ @CMAKE_CURRENT_SOURCE_DIR@/link/ @CMAKE_CURRENT_SOURCE_DIR@/tcp/
\ No newline at end of file
include_directories(${I2NCOMMON_INCLUDE_DIRS})
link_directories(${I2NCOMMON_LIBRARY_DIRS})
+# package: doxygen
+find_package(Doxygen)
+
# compiler: include directories where the source code is located
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
main.cpp
)
+# documentation: add a target to generate API documentation with Doxygen
+if(DOXYGEN_FOUND)
+ configure_file(
+ ${CMAKE_SOURCE_DIR}/doc/doxyfile.in
+ ${CMAKE_BINARY_DIR}/doc/Doxyfile @ONLY
+ )
+ add_custom_target(
+ doc
+ ${DOXYGEN_EXECUTABLE}
+ ${CMAKE_BINARY_DIR}/doc/Doxyfile
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/doc
+ COMMENT "Generating API documentation with Doxygen" VERBATIM
+ )
+endif(DOXYGEN_FOUND)
+
# compiler: creates the binary
add_executable(${TARGET} ${SOURCES})