Commit 7c5dafa8 authored by Robert Blake's avatar Robert Blake
Browse files

Adding a CMakefile for meshalyzer.

parent d07ad19b
cmake_minimum_required(VERSION 2.6)
PROJECT(Meshalyzer)
set(FLTK_SKIP_FLUID, ON)
set(FLTK_SKIP_FORMS, ON)
set(FLTK_SKIP_IMAGES, ON)
include(FindFLTK)
if (FLTK_FOUND)
include_directories(${FLTK_INCLUDE_DIR})
link_libraries(${FLTK_LIBRARIES})
else (FLTK_FOUND)
message(FATAL_ERROR "Couldn't find FLTK 1")
endif (FLTK_FOUND)
include(FindZLIB)
if (ZLIB_FOUND)
include_directories(${ZLIB_INCLUDE_DIR})
link_libraries(${ZLIB_LIBRARIES})
else (ZLIB_FOUND)
message(FATAL_ERROR "Couldn't find development files for zlib")
endif (ZLIB_FOUND)
include(FindPNG)
if (PNG_FOUND)
include_directories(${PNG_INCLUDE_DIR})
link_libraries(${PNG_LIBRARIES})
add_definitions(${PNG_DEFINITIONS})
else (PNG_FOUND)
message(FATAL_ERROR "Couldn't find development files for PNG")
endif (PNG_FOUND)
if (CYGWIN)
add_definitions(-DNOMINMAX)
endif (CYGWIN)
# No common library for pthreads yet.
find_library(PTHREAD_LIB pthread)
if (PTHREAD_LIB)
link_libraries(${PTHREAD_LIB})
else (PTHREAD_LIB)
message(FATAL_ERROR "Couldn't find pthread library")
endif (PTHREAD_LIB)
# ok, now adding everything else
add_definitions(
-DOBJ_CLASS
-D_REENTRANT
)
include_directories(.)
add_executable(meshalyzer
ClipPlane.cc
colourchoice.cc
Colourscale.cc
Connection.cc
ContCable.cc
CutSurfaces.cc
DataOpacity.cc
DrawingObj.cc
FileType.cc
Fl_Gl_Tb_Window.C
gl2ps.c
Graph.cc
Hexahedron.cc
HiLiteWinInfo.cc
IGBheader.cc
main.cc
Matrix4x4.C
Model.cc
ModInt.C
Mouse.C
Myslider.cc
MyValueInput.cc
plottingwin.cc
PlotWin.cc
PNGwrite.cc
Point.cc
PolyGon.cc
Prism.cc
Pyramid.cc
Quadrilateral.cc
Region.cc
Sequence.cc
Surfaces.cc
TBmeshWin.cc
Tetrahedral.cc
Trackball.C
Triangle.cc
trimesh.cc
VecData.cc
Vector3D.C
Vector4D.C
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment