Commit bbdd9567f937a882715456e331dc46c6e3192aad

Authored by Francisco J. Santana Jorge
1 parent 02d0a8b0
Exists in master

Some minor changes(GNU files modified, find_package.cmake.template template modified,...)

INSTALL
... ... @@ -103,9 +103,9 @@ follows:
103 103  
104 104 1.4. Open ACE project properties to :
105 105  
106   - 1.4.1. change the configuration type, located in the General properties of the project,
  106 + 1.4.1. Change the configuration type, located in the General properties of the project,
107 107 from Dynamic library (.dll) to Static librar (.lib).
108   - 1.4.2. include the macro ACE_AS_STATIC_LIBS in the pre-processor configuration.
  108 + 1.4.2. Include the macro ACE_AS_STATIC_LIBS in the pre-processor configuration.
109 109  
110 110 1.5. Build ACE solution.
111 111  
... ... @@ -164,7 +164,14 @@ to your windows configuration:
164 164  
165 165 5. The CMake tool for installation and compilation facilities.
166 166  
167   -To compile and install the CoolBOT Project the procedure is as follows:
  167 +Proceed to download CMake tool from here:
  168 +
  169 +http://www.cmake.org/cmake/resources/software.html
  170 +
  171 +On this website, you can download the CMake source code or an installer for Ms-Windows.
  172 +
  173 +Finally, when we have solved the prerequisites, we will compile the project. To
  174 +compile and install the CoolBOT Project the procedure is as follows:
168 175  
169 176 1. Run the CMake executable, cmake-gui.exe, and specify the source (where the
170 177 CMakeLists.txt file) and build directories(<coolbot-project>/build).
... ...
coolbot-bundle/ChangeLog.txt
... ... @@ -0,0 +1,5 @@
  1 +coolbot-bundle version 1.1.0 date 16 11 2011
  2 +================================================================================
  3 +
  4 +- New directory structure and new implementation with CMake.
  5 +- Added install commands.
... ...
coolbot-bundle/TODO.txt
... ... @@ -0,0 +1,2 @@
  1 +TODO list
  2 +================================================================================
... ...
coolbot-bundle/src/cblMain.cpp
1 1 /*
2   - cblMain.h - Main program of coolbot-bundle tool.
  2 + cblMain.cpp - Main program of coolbot-bundle tool.
3 3  
4 4 Author: Francisco J. Santana Jorge
5 5 <francisco dot santana102 arroba estudiantes dot ulpgc dot es>, 2011
... ...
coolbot-c/ChangeLog.txt
... ... @@ -6,4 +6,5 @@ Release candidate version available:
6 6  
7 7 - Obsolete code detection and removal.
8 8 - Compilable on MS-Windows platform (MS Visual C++ compiler).
9   -- Fixed some bugs
  9 +- Fixed some bugs.
  10 +- Added SWIG support.
... ...
coolbot-c/TODO.txt
... ... @@ -4,4 +4,3 @@ TODO list
4 4 1. Made to test as extensively as possible the compiler.
5 5 2. Remove global variables.
6 6 3. Optimize code generation.
7   -4. Integrate the tool coolbot-ske.
... ...
coolbot-c/examples/component/firstcomponent.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: firstcomponent.coolbot
3 3 * Description: The First component
4 4 * Date: 01 December 2007
5   - * Generated by coolbot 1.1.0
6 5 */
7 6  
8 7 component FirstComponent
... ...
coolbot-c/examples/component/grid-map-c.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: grid-map-c.coolbot
3 3 * Description: description file for GridMapC component.
4 4 * Date: 23 October 2007
5   - * Generated by coolbot 1.1.0
6 5 */
7 6  
8 7 component GridMapC
... ...
coolbot-c/examples/component/nd-navigation-c.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: nd-navigation-c.coolbot
3 3 * Description: description language file for NDNavigationC component.
4 4 * Date: 23 October 2007
5   - * Generated by coolbot 1.1.0
6 5 */
7 6  
8 7 component NDNavigationC
... ...
coolbot-c/examples/component/player-robot-c.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: player-robot-c.coolbot
3 3 * Description: description file for PlayerRobotC component.
4 4 * Date: 23 October 2007
5   - * Generated by coolbot 1.1.0
6 5 */
7 6  
8 7 component PlayerRobotC
... ...
coolbot-c/examples/component/short-term-planner-c.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: short-term-planner-c.coolbot
3 3 * Description: description language file for ShortTermPlannerC component.
4 4 * Date: 23 October 2007
5   - * Generated by coolbot 1.1.0
6 5 */
7 6  
8 7 component ShortTermPlannerC
... ...
coolbot-c/examples/component/threaded.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: threaded.coolbot
3 3 * Description: skeleton write on Description Language for Threaded component.
4 4 * Date: 08 November 2007
5   - * Generated by coolbot 1.1.0
6 5 */
7 6  
8 7 component Threaded
... ...
coolbot-c/examples/component/watchdog-testing.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: watchdog-testing.coolbotWatchDogTime
3 3 * Description: description file for WatchdogTesting components
4 4 * Date: 01 December 2007
5   - * Generated by coolbot 1.1.0
6 5 */
7 6  
8 7 component WatchdogTesting
... ...
coolbot-c/examples/integration/coolbot_sns.coolbot
1   -/**
2   - ** The CoolBOT Project (<http://www.coolbotproject.org>)
3   - ** Copyright (C) 2003,2007,2009,2010
4   - ** Universidad de Las Palmas de Gran Canaria (ULPGC) (<http://www.ulpgc.es>)
5   - **
6   - ** This software is a collective project which has been designed, developed and
7   - ** written, and is maintained by members, students and collaborators of the División
8   - ** de Inteligencia Artificial y Sistemas (DIAS) at the Instituto Universitario de
9   - ** Sistemas Inteligentes y Aplicaciones Numéricas en Ingeniería (SIANI)
10   - ** (<http://www.siani.es/>), and also of the Departamento de Informática y Sistemas
11   - ** (DIS) (<http://www.dis.ulpgc.es>) both at ULPGC. The AUTHOR file lists all
12   - ** developers and contributors.The particular authors of each file are explicitly
13   - ** specified on each one of them.
14   - **
15   - ** This file is part of the CoolBOT Project.
16   - ** The CoolBOT Project is free software: you can redistribute it and/or modify
17   - ** it under the terms of the GNU General Public License as published by
18   - ** the Free Software Foundation, either version 3 of the License, or any
19   - ** later version.
20   - **
21   - ** The CoolBOT Project is distributed in the hope that it will be useful,
22   - ** but WITHOUT ANY WARRANTY; without even the implied warranty of
23   - ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24   - ** GNU General Public License for more details.
25   - **
26   - ** You should have received a copy (COPYING file) of the GNU General Public License
27   - ** along with the CoolBOT Project . If not, see <http://www.gnu.org/licenses/>.
28   - **
29   - ** In addition to the GNU General Public License, the CoolBOT Project Compiler License
30   - ** Exception is applicable to the C++ skeletons generated by the CoolBOT Compiler
31   - ** (coolbot-c). The purpose of this Exception is to allow distribution of CoolBOT
32   - ** Compiler's (coolbot-c) typical output under terms of the recipient's choice
33   - ** (including proprietary). You should have received a copy of the CoolBOT Project
34   - ** Compiler License Exception (COPYING.EXCEPTION file) along with the CoolBOT Project.
35   - ** If not see <http://www.coolbotproject.org>.
36   - **/
37 1 /*
38 2 * File: coolbot_sns.coolbot-integration
39 3 * Description: description file for coolbot_sns integration.
40 4 * Date: 04 July 2010
41   - * Generated by coolbot-ske
42 5 */
43 6  
44 7 integration coolbot_sns
... ... @@ -57,7 +20,6 @@ integration coolbot_sns
57 20 /*
58 21 * Machine addresses definition.
59 22 */
60   -// local dis172ac: "dis172ac.dis.ulpgc.es";
61 23 local dis172ac: "127.0.0.1";
62 24 };
63 25  
... ...
coolbot-c/examples/integration/coolbot_sns_all.coolbot
1   -/**
2   - ** The CoolBOT Project (<http://www.coolbotproject.org>)
3   - ** Copyright (C) 2003,2007,2009,2010
4   - ** Universidad de Las Palmas de Gran Canaria (ULPGC) (<http://www.ulpgc.es>)
5   - **
6   - ** This software is a collective project which has been designed, developed and
7   - ** written, and is maintained by members, students and collaborators of the División
8   - ** de Inteligencia Artificial y Sistemas (DIAS) at the Instituto Universitario de
9   - ** Sistemas Inteligentes y Aplicaciones Numéricas en Ingeniería (SIANI)
10   - ** (<http://www.siani.es/>), and also of the Departamento de Informática y Sistemas
11   - ** (DIS) (<http://www.dis.ulpgc.es>) both at ULPGC. The AUTHOR file lists all
12   - ** developers and contributors.The particular authors of each file are explicitly
13   - ** specified on each one of them.
14   - **
15   - ** This file is part of the CoolBOT Project.
16   - ** The CoolBOT Project is free software: you can redistribute it and/or modify
17   - ** it under the terms of the GNU General Public License as published by
18   - ** the Free Software Foundation, either version 3 of the License, or any
19   - ** later version.
20   - **
21   - ** The CoolBOT Project is distributed in the hope that it will be useful,
22   - ** but WITHOUT ANY WARRANTY; without even the implied warranty of
23   - ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24   - ** GNU General Public License for more details.
25   - **
26   - ** You should have received a copy (COPYING file) of the GNU General Public License
27   - ** along with the CoolBOT Project . If not, see <http://www.gnu.org/licenses/>.
28   - **
29   - ** In addition to the GNU General Public License, the CoolBOT Project Compiler License
30   - ** Exception is applicable to the C++ skeletons generated by the CoolBOT Compiler
31   - ** (coolbot-c). The purpose of this Exception is to allow distribution of CoolBOT
32   - ** Compiler's (coolbot-c) typical output under terms of the recipient's choice
33   - ** (including proprietary). You should have received a copy of the CoolBOT Project
34   - ** Compiler License Exception (COPYING.EXCEPTION file) along with the CoolBOT Project.
35   - ** If not see <http://www.coolbotproject.org>.
36   - **/
37 1 /*
38 2 * File: coolbot_sns_all.coolbot-integration
39 3 * Description: description file for coolbot_sns_all integration.
40 4 * Date: 04 July 2010
41   - * Generated by coolbot-ske
42 5 */
43 6  
44 7 integration coolbot_sns_all
... ...
coolbot-c/examples/integration/coolbot_sns_views.coolbot
1   -/**
2   - ** The CoolBOT Project (<http://www.coolbotproject.org>)
3   - ** Copyright (C) 2003,2007,2009,2010
4   - ** Universidad de Las Palmas de Gran Canaria (ULPGC) (<http://www.ulpgc.es>)
5   - **
6   - ** This software is a collective project which has been designed, developed and
7   - ** written, and is maintained by members, students and collaborators of the División
8   - ** de Inteligencia Artificial y Sistemas (DIAS) at the Instituto Universitario de
9   - ** Sistemas Inteligentes y Aplicaciones Numéricas en Ingeniería (SIANI)
10   - ** (<http://www.siani.es/>), and also of the Departamento de Informática y Sistemas
11   - ** (DIS) (<http://www.dis.ulpgc.es>) both at ULPGC. The AUTHOR file lists all
12   - ** developers and contributors.The particular authors of each file are explicitly
13   - ** specified on each one of them.
14   - **
15   - ** This file is part of the CoolBOT Project.
16   - ** The CoolBOT Project is free software: you can redistribute it and/or modify
17   - ** it under the terms of the GNU General Public License as published by
18   - ** the Free Software Foundation, either version 3 of the License, or any
19   - ** later version.
20   - **
21   - ** The CoolBOT Project is distributed in the hope that it will be useful,
22   - ** but WITHOUT ANY WARRANTY; without even the implied warranty of
23   - ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24   - ** GNU General Public License for more details.
25   - **
26   - ** You should have received a copy (COPYING file) of the GNU General Public License
27   - ** along with the CoolBOT Project . If not, see <http://www.gnu.org/licenses/>.
28   - **
29   - ** In addition to the GNU General Public License, the CoolBOT Project Compiler License
30   - ** Exception is applicable to the C++ skeletons generated by the CoolBOT Compiler
31   - ** (coolbot-c). The purpose of this Exception is to allow distribution of CoolBOT
32   - ** Compiler's (coolbot-c) typical output under terms of the recipient's choice
33   - ** (including proprietary). You should have received a copy of the CoolBOT Project
34   - ** Compiler License Exception (COPYING.EXCEPTION file) along with the CoolBOT Project.
35   - ** If not see <http://www.coolbotproject.org>.
36   - **/
37 1 /*
38 2 * File: coolbot_sns_views.coolbot-integration
39 3 * Description: description file for coolbot_sns_views integration.
40 4 * Date: 04 July 2010
41   - * Generated by coolbot-ske
42 5 */
43 6  
44 7 integration coolbot_sns_views
... ...
coolbot-c/examples/newpackets/player-robot-packets.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: player-robot-packets.packet
3 3 * Description: description file for new packets.
4 4 * Date: 29 April 2010
5   - * Generated by coolbot-ske
6 5 */
7 6  
8 7 packets PlayerRobot
... ...
coolbot-c/examples/view/grid-gtk.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: grid-gtk.view.
3 3 * Description: description file for GridGtk view
4 4 * Date: 29 April 2010
5   - * Generated by coolbot-ske
6 5 */
7 6  
8 7 view GridGtk
... ...
coolbot-c/examples/view/nd-navigation-gtk.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: nd-navigation-gtk.view.
3 3 * Description: description file for NDNavigationGtk view
4 4 * Date: 29 April 2010
5   - * Generated by coolbot-ske
6 5 */
7 6  
8 7 view NDNavigationGtk
... ...
coolbot-c/examples/view/planner-gtk.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: planner-gtk.view.
3 3 * Description: description file for PlannerGtk view
4 4 * Date: 29 April 2010
5   - * Generated by coolbot-ske
6 5 */
7 6  
8 7 view PlannerGtk
... ...
coolbot-c/examples/view/player-robot-gtk.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: player-robot-gtk.view.
3 3 * Description: description file for PlayerRobotGtk view
4 4 * Date: 29 April 2010
5   - * Generated by coolbot-ske
6 5 */
7 6  
8 7 view PlayerRobotGtk
... ...
coolbot-c/examples/view/raster-gtk.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: raster-gtk.view.
3 3 * Description: description file for RasterGtk view
4 4 * Date: 29 April 2010
5   - * Generated by coolbot-ske
6 5 */
7 6  
8 7 view RasterGtk
... ...
coolbot-c/examples/view/sphere-gtk.coolbot
... ... @@ -2,7 +2,6 @@
2 2 * File: sphere-gtk.view.
3 3 * Description: description file for SphereGtk view
4 4 * Date: 29 April 2010
5   - * Generated by coolbot-ske
6 5 */
7 6  
8 7 view SphereGtk
... ...
coolbot-config/ChangeLog.txt
... ... @@ -0,0 +1,5 @@
  1 +
  2 +coolbot-config version 1.0.0 date 06 11 2011
  3 +================================================================================
  4 +
  5 +Release candidate version available.
0 6 \ No newline at end of file
... ...
coolbot-config/TODO.txt
... ... @@ -0,0 +1,2 @@
  1 +TODO list
  2 +================================================================================
... ...
coolbot-env/TODO.txt
... ... @@ -0,0 +1,4 @@
  1 +TODO list
  2 +================================================================================
  3 +
  4 +1. More tests on Ms-Windows.
0 5 \ No newline at end of file
... ...
coolbot-env/src/envMain.cpp
1 1 /*
2   - envMain.h - Main program of coolbot-env tool.
  2 + envMain.cpp - Main program of coolbot-env tool.
3 3  
4 4 Author: Francisco J. Santana Jorge
5 5 <francisco dot santana102 arroba estudiantes dot ulpgc dot es>, 2011
... ...
coolbot-project-license-header
... ... @@ -2,7 +2,7 @@
2 2 ** The CoolBOT Project (<http://www.coolbotproject.org>)
3 3 ** Copyright (C) 2003,2007,2009,2010,2011
4 4 ** Universidad de Las Palmas de Gran Canaria (ULPGC) (<http://www.ulpgc.es>)
5   - **
  5 + **
6 6 ** This software is a collective project which has been designed, developed and
7 7 ** written, and is maintained by members, students and collaborators of the División
8 8 ** de Inteligencia Artificial y Sistemas (DIAS) at the Instituto Universitario de
... ... @@ -11,18 +11,18 @@
11 11 ** (DIS) (<http://www.dis.ulpgc.es>) both at ULPGC. The AUTHOR file lists all
12 12 ** developers and contributors.The particular authors of each file are explicitly
13 13 ** specified on each one of them.
14   - **
  14 + **
15 15 ** This file is part of the CoolBOT Project.
16 16 ** The CoolBOT Project is free software: you can redistribute it and/or modify
17 17 ** it under the terms of the GNU General Public License as published by
18 18 ** the Free Software Foundation, either version 3 of the License, or any
19 19 ** later version.
20   - **
  20 + **
21 21 ** The CoolBOT Project is distributed in the hope that it will be useful,
22 22 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
23 23 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 24 ** GNU General Public License for more details.
25   - **
  25 + **
26 26 ** You should have received a copy (COPYING file) of the GNU General Public License
27 27 ** along with the CoolBOT Project . If not, see <http://www.gnu.org/licenses/>.
28 28 **
... ...
coolbot/ChangeLog.txt 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +
  2 +coolbot version 1.1.0 date 11 11 2011
  3 +================================================================================
  4 +
  5 +- Added SWIG support.
  6 +- Added support to build DLLs on Ms-Windows.
... ...
coolbot/TODO.txt 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +TODO list
  2 +================================================================================
... ...
examples/my-first-bundle/resources/modules/FindMY_FIRST_COMPONENT.cmake
... ... @@ -11,8 +11,23 @@
11 11 #=============================================================================
12 12 SET(MY_FIRST_COMPONENT_FOUND FALSE CACHE STRING "Indicates if the my-first-component package was found")
13 13  
14   -FIND_PATH(MY_FIRST_COMPONENT_INCLUDE_DIRS NAMES my-first-component.h
  14 +#
  15 +# Here, we search the header file specified. The header file is searched in the
  16 +# paths that you have specified.
  17 +#
  18 +# Remember, the search is not recursive.
  19 +#
  20 +FIND_PATH(MY_FIRST_COMPONENT_INCLUDE_DIRS
  21 + NAMES
  22 + #
  23 + # Here adds the headers file to find.
  24 + #
  25 + my-first-component.h
15 26 PATHS
  27 + #
  28 + # Here adds the paths where you want to search for. You can also set environment
  29 + # variables. For example: $ENV{PATH}
  30 + #
16 31 /usr/include
17 32 /usr/local/include
18 33 /usr/include/my-first-component-1.0.0
... ... @@ -21,19 +36,51 @@ FIND_PATH(MY_FIRST_COMPONENT_INCLUDE_DIRS NAMES my-first-component.h
21 36 $ENV{PATH}
22 37 DOC "MY_FIRST_COMPONENT: include dirs.")
23 38  
24   -FIND_LIBRARY(MY_FIRST_COMPONENT_LIBRARIES NAMES my-first-component
  39 +#
  40 +# Here, we search the library specified. The library is searched in the paths that
  41 +# you have specified.
  42 +#
  43 +# Remember, the search is not recursive.
  44 +#
  45 +FIND_LIBRARY(MY_FIRST_COMPONENT_LIBRARIES
  46 + NAMES
  47 + #
  48 + # Here adds the libraries name to find.
  49 + #
  50 + my-first-component
25 51 PATHS
  52 + #
  53 + # Here adds the paths where you want to search for. You can also set environment
  54 + # variables. For example, in GNU/Linux: $ENV{LD_LIBRARY_PATH}
  55 + #
26 56 /usr/lib
27 57 /usr/local/lib
28 58 /usr/lib/my-first-component
29 59 /usr/local/lib/my-first-component
30 60 /usr/local/my-first-component/lib
31 61 ${PROJECT_SOURCE_DIR}/lib
  62 + $ENV{LD_LIBRARY_PATH}
32 63 $ENV{PATH}
33 64 DOC "MY_FIRST_COMPONENT: package libraries.")
34 65  
35   -FIND_PATH(MY_FIRST_COMPONENT_PKG_CONFIG_PATH NAMES my-first-component.pc
  66 +#
  67 +# Here, we search the pkg-config file specified (files with pc extension). The
  68 +# pkg-config file is searched in the paths by default of pkg-config tool and those
  69 +# specified by the user.
  70 +#
  71 +# Remember, the search is not recursive.
  72 +#
  73 +FIND_PATH(MY_FIRST_COMPONENT_PKG_CONFIG_PATH
  74 + NAMES
  75 + #
  76 + # Here adds the pkg-config file name to find.
  77 + #
  78 + my-first-component.pc
36 79 PATHS
  80 + #
  81 + # Here adds the paths where you want to search for. You can also set environment
  82 + # variables. For example: $ENV{PKG_CONFIG_PATH}
  83 + #
37 84 /usr/lib/pkgconfig
38 85 /usr/local/lib/pkgconfig
39 86 /usr/share/pkgconfig
... ...
examples/my-first-bundle/resources/modules/FindMY_FIRST_VIEW.cmake
... ... @@ -11,8 +11,23 @@
11 11 #=============================================================================
12 12 SET(MY_FIRST_VIEW_FOUND FALSE CACHE STRING "Indicates if the my-first-view package was found")
13 13  
14   -FIND_PATH(MY_FIRST_VIEW_INCLUDE_DIRS NAMES my-first-view.h
  14 +#
  15 +# Here, we search the header file specified. The header file is searched in the
  16 +# paths that you have specified.
  17 +#
  18 +# Remember, the search is not recursive.
  19 +#
  20 +FIND_PATH(MY_FIRST_VIEW_INCLUDE_DIRS
  21 + NAMES
  22 + #
  23 + # Here adds the headers file to find.
  24 + #
  25 + my-first-view.h
15 26 PATHS
  27 + #
  28 + # Here adds the paths where you want to search for. You can also set environment
  29 + # variables. For example: $ENV{PATH}
  30 + #
16 31 /usr/include
17 32 /usr/local/include
18 33 /usr/include/my-first-view-1.0.0
... ... @@ -21,19 +36,51 @@ FIND_PATH(MY_FIRST_VIEW_INCLUDE_DIRS NAMES my-first-view.h
21 36 $ENV{PATH}
22 37 DOC "MY_FIRST_VIEW: include dirs.")
23 38  
24   -FIND_LIBRARY(MY_FIRST_VIEW_LIBRARIES NAMES my-first-view
  39 +#
  40 +# Here, we search the library specified. The library is searched in the paths that
  41 +# you have specified.
  42 +#
  43 +# Remember, the search is not recursive.
  44 +#
  45 +FIND_LIBRARY(MY_FIRST_VIEW_LIBRARIES
  46 + NAMES
  47 + #
  48 + # Here adds the libraries name to find.
  49 + #
  50 + my-first-view
25 51 PATHS
  52 + #
  53 + # Here adds the paths where you want to search for. You can also set environment
  54 + # variables. For example, in GNU/Linux: $ENV{LD_LIBRARY_PATH}
  55 + #
26 56 /usr/lib
27 57 /usr/local/lib
28 58 /usr/lib/my-first-view
29 59 /usr/local/lib/my-first-view
30 60 /usr/local/my-first-view/lib
31 61 ${PROJECT_SOURCE_DIR}/lib
  62 + $ENV{LD_LIBRARY_PATH}
32 63 $ENV{PATH}
33 64 DOC "MY_FIRST_VIEW: package libraries.")
34 65  
35   -FIND_PATH(MY_FIRST_VIEW_PKG_CONFIG_PATH NAMES my-first-view.pc
  66 +#
  67 +# Here, we search the pkg-config file specified (files with pc extension). The
  68 +# pkg-config file is searched in the paths by default of pkg-config tool and those
  69 +# specified by the user.
  70 +#
  71 +# Remember, the search is not recursive.
  72 +#
  73 +FIND_PATH(MY_FIRST_VIEW_PKG_CONFIG_PATH
  74 + NAMES
  75 + #
  76 + # Here adds the pkg-config file name to find.
  77 + #
  78 + my-first-view.pc
36 79 PATHS
  80 + #
  81 + # Here adds the paths where you want to search for. You can also set environment
  82 + # variables. For example: $ENV{PKG_CONFIG_PATH}
  83 + #
37 84 /usr/lib/pkgconfig
38 85 /usr/local/lib/pkgconfig
39 86 /usr/share/pkgconfig
... ...
resources/coolbot-bundle/cmake/find_package.cmake.template
... ... @@ -11,8 +11,23 @@
11 11 #=============================================================================
12 12 SET(@PROJECTNAME_UPPER@_FOUND FALSE CACHE STRING "Indicates if the @PROJECTNAME@ package was found")
13 13  
14   -FIND_PATH(@PROJECTNAME_UPPER@_INCLUDE_DIRS NAMES @PROJECTNAME_HEADER_FILENAME@
  14 +#
  15 +# Here, we search the header file specified. The header file is searched in the
  16 +# paths that you have specified.
  17 +#
  18 +# Remember, the search is not recursive.
  19 +#
  20 +FIND_PATH(@PROJECTNAME_UPPER@_INCLUDE_DIRS
  21 + NAMES
  22 + #
  23 + # Here adds the headers file to find.
  24 + #
  25 + @PROJECTNAME_HEADER_FILENAME@
15 26 PATHS
  27 + #
  28 + # Here adds the paths where you want to search for. You can also set environment
  29 + # variables. For example: $ENV{PATH}
  30 + #
16 31 /usr/include
17 32 /usr/local/include
18 33 /usr/include/@PROJECTNAME@-1.0.0
... ... @@ -21,19 +36,51 @@ FIND_PATH(@PROJECTNAME_UPPER@_INCLUDE_DIRS NAMES @PROJECTNAME_HEADER_FILENAME@
21 36 $ENV{PATH}
22 37 DOC "@PROJECTNAME_UPPER@: include dirs.")
23 38  
24   -FIND_LIBRARY(@PROJECTNAME_UPPER@_LIBRARIES NAMES @PROJECTNAME@
  39 +#
  40 +# Here, we search the library specified. The library is searched in the paths that
  41 +# you have specified.
  42 +#
  43 +# Remember, the search is not recursive.
  44 +#
  45 +FIND_LIBRARY(@PROJECTNAME_UPPER@_LIBRARIES
  46 + NAMES
  47 + #
  48 + # Here adds the libraries name to find.
  49 + #
  50 + @PROJECTNAME@
25 51 PATHS
  52 + #
  53 + # Here adds the paths where you want to search for. You can also set environment
  54 + # variables. For example, in GNU/Linux: $ENV{LD_LIBRARY_PATH}
  55 + #
26 56 /usr/lib
27 57 /usr/local/lib
28 58 /usr/lib/@PROJECTNAME@
29 59 /usr/local/lib/@PROJECTNAME@
30 60 /usr/local/@PROJECTNAME@/lib
31 61 ${PROJECT_SOURCE_DIR}/lib
  62 + $ENV{LD_LIBRARY_PATH}
32 63 $ENV{PATH}
33 64 DOC "@PROJECTNAME_UPPER@: package libraries.")
34 65  
35   -FIND_PATH(@PROJECTNAME_UPPER@_PKG_CONFIG_PATH NAMES @PROJECTNAME@.pc
  66 +#
  67 +# Here, we search the pkg-config file specified (files with pc extension). The
  68 +# pkg-config file is searched in the paths by default of pkg-config tool and those
  69 +# specified by the user.
  70 +#
  71 +# Remember, the search is not recursive.
  72 +#
  73 +FIND_PATH(@PROJECTNAME_UPPER@_PKG_CONFIG_PATH
  74 + NAMES
  75 + #
  76 + # Here adds the pkg-config file name to find.
  77 + #
  78 + @PROJECTNAME@.pc
36 79 PATHS
  80 + #
  81 + # Here adds the paths where you want to search for. You can also set environment
  82 + # variables. For example: $ENV{PKG_CONFIG_PATH}
  83 + #
37 84 /usr/lib/pkgconfig
38 85 /usr/local/lib/pkgconfig
39 86 /usr/share/pkgconfig
... ...