README_APPS.TXT 1.67 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1
Principe des applications dans CGoGN_Apps (english version below)
Sylvain Thery's avatar
Sylvain Thery committed
2 3 4 5 6 7 8 9

Faire un repertoire CGoGN_Apps ou on veut. Y mettre des sous répertoires
contenant chacun une application/

Le CMakeLists.txt a la racine de l'application doit commencer par

cmake_minimum_required(VERSION 2.8)

Sylvain Thery's avatar
Sylvain Thery committed
10
project(APPLICATION_NAME)
Sylvain Thery's avatar
Sylvain Thery committed
11

Sylvain Thery's avatar
Sylvain Thery committed
12 13
SET(CGoGN_ROOT_DIR ${CMAKE_SOURCE_DIR}/../../CGoGN CACHE STRING "CGoGN root dir")
include(${CGoGN_ROOT_DIR}/apps_cmake.txt)
Sylvain Thery's avatar
Sylvain Thery committed
14 15

include_directories(
Sylvain Thery's avatar
Sylvain Thery committed
16 17 18 19
	${CGoGN_ROOT_DIR}/include
	${COMMON_INCLUDES}
	${CMAKE_CURRENT_SOURCE_DIR}
	${CMAKE_CURRENT_BINARY_DIR}
20
)
Sylvain Thery's avatar
Sylvain Thery committed
21

Sylvain Thery's avatar
Sylvain Thery committed
22

Sylvain Thery's avatar
Sylvain Thery committed
23 24 25 26 27
Faire un repertoire build et buildDebug
Pour compiler en release
	cd build
	cmake ..
	make 
Sylvain Thery's avatar
Sylvain Thery committed
28

Sylvain Thery's avatar
Sylvain Thery committed
29 30 31 32
Pour compiler en debug:
	cd buildDebug
	cmake ..
	make 
Sylvain Thery's avatar
Sylvain Thery committed
33 34 35 36 37 38 39 40 41 42 43

=========================================================================================
                                ENGLISH VERSION
=========================================================================================

Create a directory CGoGN_Apps where you want. Inside create subdirectories, one for each application.

The CMakeLists.txt to the root of the application must begin with

cmake_minimum_required(VERSION 2.8)

Sylvain Thery's avatar
Sylvain Thery committed
44
project(APPLICATION_NAME)
Sylvain Thery's avatar
Sylvain Thery committed
45

Sylvain Thery's avatar
Sylvain Thery committed
46 47
SET(CGoGN_ROOT_DIR ${CMAKE_SOURCE_DIR}/../../CGoGN CACHE STRING "CGoGN root dir")
include(${CGoGN_ROOT_DIR}/apps_cmake.txt)
Sylvain Thery's avatar
Sylvain Thery committed
48 49

include_directories(
Sylvain Thery's avatar
Sylvain Thery committed
50 51 52 53
	${CGoGN_ROOT_DIR}/include
	${COMMON_INCLUDES}
	${CMAKE_CURRENT_SOURCE_DIR}
	${CMAKE_CURRENT_BINARY_DIR}
Sylvain Thery's avatar
Sylvain Thery committed
54 55
)

Sylvain Thery's avatar
Sylvain Thery committed
56 57
The .. / .. / CGoGN corresponds to the relative path to your version of CGoGN
(here placed at the same level as CGoGN_Apps)
Sylvain Thery's avatar
Sylvain Thery committed
58 59


Sylvain Thery's avatar
Sylvain Thery committed
60 61 62 63 64
Create directories build and buildDebug
To compile in release mode:
	cd build
	cmake ..
	make 
Sylvain Thery's avatar
Sylvain Thery committed
65

Sylvain Thery's avatar
Sylvain Thery committed
66 67 68 69
To compile in debug mode:
	cd buildDebug
	cmake ..
	make 
Sylvain Thery's avatar
Sylvain Thery committed
70 71 72 73 74