-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
75 lines (61 loc) · 2.09 KB
/
CMakeLists.txt
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Isotropic surface remesher
# http://www.gris.informatik.tu-darmstadt.de/~sfuhrman/files/remesher-2010-11-01.tar.gz
cmake_minimum_required( VERSION 2.8 )
project( remesher )
# Project-specific settings
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}" )
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
#add_definitions( -DBUILD_TESTS )
# (UNIX only) Configure build targets to look for libraries relative to their
# install path.
if ( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" ) # This is how to check for Linux
set( CMAKE_SKIP_BUILD_RPATH FALSE )
set( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE )
set( CMAKE_INSTALL_RPATH "\$ORIGIN/../lib" )
set( CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
endif ( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
# Let the user set some options
#option( BUILD_TESTS "Build unit tests" OFF )
#option( BUILD_EXAMPLES "Build examples" OFF )
#if ( APPLE )
# option( BUILD_OSX_BUNDLE "Build OSX bundle" OFF )
#endif( )
option(BUILD_GTK_REMESHER "Build GUI application" OFF )
option(BUILD_CGAL_MODULE "Build CGAL mesh module" OFF )
# Define necessary packages
# sudo apt-get install libgmm++-dev
find_package( OpenGL REQUIRED )
message(STATUS ${OPENGL_INCLUDE_DIR})
find_package( Threads REQUIRED )
find_package( GMM REQUIRED )
include_directories( ${GMM_INCLUDE_DIR} )
if (BUILD_GTK_REMESHER)
# sudo apt-get install libgtkmm-2.4-dev libgtkglextmm-x11-1.2-dev
find_package( GTK2 2.4 REQUIRED gtk gtkmm )
find_package( GTKGLEXTMM REQUIRED )
endif()
if (BUILD_CGAL_MODULE)
find_package( CGAL REQUIRED )
include(${CGAL_USE_FILE})
endif()
#find_package( CGAL REQUIRED )
#include( ${CGAL_USE_FILE} )
# define build targets
#add_library( Foo SHARED Foo.cpp )
#add_library( FooStatic STATIC Foo.cpp )
#if (UNIX)
# set_target_properties( FooStatic PROPERTIES OUTPUT_NAME Foo )
#endif(UNIX)
add_subdirectory( libremesh )
add_subdirectory( libglstuff )
add_subdirectory( cmdremesher )
if (BUILD_GTK_REMESHER)
add_subdirectory( gtkremesher )
endif()
if (BUILD_CGAL_MODULE)
add_subdirectory( cgal )
endif()
#install( TARGETS test
# RUNTIME DESTINATION bin
# LIBRARY DESTINATION lib
#)