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)
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)

10
project(APPLICATION_NAME)
11

12 13
SET(CGoGN_ROOT_DIR ${CMAKE_SOURCE_DIR}/../../CGoGN CACHE STRING "CGoGN root dir")
include(${CGoGN_ROOT_DIR}/apps_cmake.txt)
14 15

include_directories(
16 17 18 19
	${CGoGN_ROOT_DIR}/include
	${COMMON_INCLUDES}
	${CMAKE_CURRENT_SOURCE_DIR}
	${CMAKE_CURRENT_BINARY_DIR}
20
)
21

Sylvain Thery's avatar
Sylvain Thery committed
22

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

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)

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

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(
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
)

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


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

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