# Header checks
include(CheckIncludeFile)
-CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
+check_include_file(unistd.h HAVE_UNISTD_H)
# Function checks
include(CheckFunctionExists)
-CHECK_FUNCTION_EXISTS( cbrt HAVE_CBRT )
-CHECK_FUNCTION_EXISTS( strcasecmp HAVE_STRCASECMP )
+check_function_exists( drand48 HAVE_DRAND48 )
+check_function_exists( cbrt HAVE_CBRT )
+check_function_exists( srand48 HAVE_SRAND48 )
+check_function_exists( strcasecmp HAVE_STRCASECMP )
# Write check results to config.h header
configure_file(config-cmake.h.in config.h)
#cmakedefine HAVE_UNISTD_H
// Functions
+#cmakedefine HAVE_DRAND48
#cmakedefine HAVE_CBRT
+#cmakedefine HAVE_SRAND48
#cmakedefine HAVE_STRCASECMP
add_subdirectory(cdt)
add_subdirectory(circogen)
add_subdirectory(dotgen)
+add_subdirectory(fdpgen)
add_subdirectory(patchwork)
add_subdirectory(pathplan)
add_subdirectory(twopigen)
--- /dev/null
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GRAPHVIZ_LIB_DIR}/cdt
+ ${GRAPHVIZ_LIB_DIR}/cgraph
+ ${GRAPHVIZ_LIB_DIR}/common
+ ${GRAPHVIZ_LIB_DIR}/gvc
+ ${GRAPHVIZ_LIB_DIR}/neatogen
+ ${GRAPHVIZ_LIB_DIR}/pack
+ ${GRAPHVIZ_LIB_DIR}/pathplan
+ ${GRAPHVIZ_LIB_DIR}/sparse
+)
+
+add_library(fdpgen STATIC
+ # Header files
+ clusteredges.h
+ comp.h
+ dbg.h
+ fdp.h
+ grid.h
+ tlayout.h
+ xlayout.h
+
+ # Source files
+ clusteredges.c
+ comp.c
+ dbg.c
+ fdpinit.c
+ grid.c
+ layout.c
+ tlayout.c
+ xlayout.c
+)