CMakeLists.txt 1.71 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
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
61
DrawingObjects.cc
62 63 64 65 66 67
FileType.cc
Fl_Gl_Tb_Window.C
gl2ps.c
Graph.cc
Hexahedron.cc
HiLiteWinInfo.cc
68 69
IsoLines.cc
IsoSurface.cc
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
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
97
isosurf.cc
98
)