From cbdfd8b08108393c710cf761f4d87de00f39f103 Mon Sep 17 00:00:00 2001 From: Brad Barber <bradb@shore.net> Date: Sat, 9 Jan 2010 10:57:27 -0500 Subject: [PATCH] Add CMakeLists from kent williams <norman-k-williams@uiowa.edu> --- CMakeLists.txt | 8 ++++++ README.txt | 6 +++-- project/libqhull/libqhull.pro | 2 ++ src/CMakeLists.txt | 47 +++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 CMakeLists.txt create mode 100644 src/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..e55b0a9 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +project(qhull) +cmake_minimum_required(VERSION 2.4) +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) +endif(COMMAND cmake_policy) + +add_subdirectory(src) + diff --git a/README.txt b/README.txt index aec15bc..14b2f64 100644 --- a/README.txt +++ b/README.txt @@ -274,12 +274,14 @@ Distributed files COPYING.txt // copyright notice QHULL-GO.pif // Windows icon for qhull-go.bat Announce.txt // announcement - Changes.txt // change history for Qhull and rbox + CMakeLists.txt // CMake file File_id.diz // package descriptor index.htm // Home page html/qh-faq.htm // Frequently asked questions html/qh-get.htm // Download page html/index.htm // Manual + src/Changes.txt // change history for Qhull and rbox + src/CMakeLists.txt // CMake file src/Makefile.txt // Makefile for Unix or cygwin 'make' src/Mborland // Makefile for Borland C++/Win32 src/Make-config.sh // Create Debian configure and automake @@ -308,7 +310,7 @@ src/ qhalf.exe qvoronoi.exe qhullcpp.dll - user_eg3.exe // cpp demonstration + user_eg3.exe // C++ demonstration program eg/qhull-go.bat // DOS window qconvex.htm // html manuals qdelaun.htm diff --git a/project/libqhull/libqhull.pro b/project/libqhull/libqhull.pro index b925dfd..0c2d618 100644 --- a/project/libqhull/libqhull.pro +++ b/project/libqhull/libqhull.pro @@ -24,6 +24,7 @@ RCC_DIR = ../../tmp/rcc VPATH= ../.. OTHER_FILES += Announce.txt +OTHER_FILES += CMakeLists.txt OTHER_FILES += COPYING.txt OTHER_FILES += File_id.diz OTHER_FILES += html/index.htm @@ -57,6 +58,7 @@ OTHER_FILES += index.htm OTHER_FILES += README.txt OTHER_FILES += REGISTER.txt OTHER_FILES += src/Changes.txt +OTHER_FILES += src/CMakeLists.txt OTHER_FILES += src/index.htm OTHER_FILES += src/Make-config.sh OTHER_FILES += src/Makefile.txt diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..14a3e65 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,47 @@ +project(qhull_lib) + +set(qhull_src +user.c +global.c +stat.c +io.c +geom2.c +poly2.c +merge.c +qhull.c +geom.c +poly.c +qset.c +mem.c) + +file(GLOB qhull_hdr *.h) + +add_library(qhull ${qhull_src}) +target_link_libraries(qhull m) + +set(qhullcmd_SOURCES unix.c) +set(rbox_SOURCES rbox.c) +set(qconvex_SOURCES qconvex.c) +set(qdelaunay_SOURCES qdelaun.c) +set(qvoronoi_SOURCES qvoronoi.c) +set(qhalf_SOURCES qhalf.c) + + +add_executable(qhullcmd ${qhullcmd_SOURCES}) +target_link_libraries(qhullcmd qhull) + +add_executable(rbox ${rbox_SOURCES}) +target_link_libraries(rbox qhull) + +add_executable(qconvex ${qconvex_SOURCES}) +target_link_libraries(qconvex qhull) + +add_executable(qdelaunay ${qdelaunay_SOURCES}) +target_link_libraries(qdelaunay qhull) + +add_executable(qvoronoi ${qvoronoi_SOURCES}) +target_link_libraries(qvoronoi qhull) + +add_executable(qhalf ${qhalf_SOURCES}) +target_link_libraries(qhalf qhull) + -- GitLab