Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 124 lines (102 sloc) 4.281 kb
6ccb657 use new catkin env hooks
Troy Straszheim authored
1 #
014c305 licensy stuff
Troy D. Straszheim authored
2 # Copyright (c) 2011, Willow Garage, Inc.
3 # All rights reserved.
6ccb657 use new catkin env hooks
Troy Straszheim authored
4 #
014c305 licensy stuff
Troy D. Straszheim authored
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are met:
7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above copyright
10 # notice, this list of conditions and the following disclaimer in the
11 # documentation and/or other materials provided with the distribution.
12 # * Neither the name of the Willow Garage, Inc. nor the names of its
13 # contributors may be used to endorse or promote products derived from
14 # this software without specific prior written permission.
6ccb657 use new catkin env hooks
Troy Straszheim authored
15 #
014c305 licensy stuff
Troy D. Straszheim authored
16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 # POSSIBILITY OF SUCH DAMAGE.
6ccb657 use new catkin env hooks
Troy Straszheim authored
27 #
0a7c5df Troy Straszheim first
straszheim authored
28 cmake_minimum_required(VERSION 2.8)
1b58eb9 Ethan Rublee adding plasm.
ethanrublee authored
29 project(ecto)
e919e9f Ethan Rublee Catkinizing ecto.
ethanrublee authored
30 find_package(catkin REQUIRED)
a383a68 Vincent Rabaud generate the boost config file automatically as it's supposed to be
vrabaud authored
31 catkin_stack()
e919e9f Ethan Rublee Catkinizing ecto.
ethanrublee authored
32
705b7ec Vincent Rabaud have catkin handle the Python install and make sure the tests pass
vrabaud authored
33 # configure and install Python
34 catkin_python_setup()
35
36
8b1beff Ethan Rublee Fixing env stuff for catkin.
ethanrublee authored
37 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
38 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
39 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
40
41
5bc3ae0 Ethan Rublee Standalone docs checkpoint. Modules are working again.
ethanrublee authored
42 set(${PROJECT_NAME}_GITHUB_URL https://github.com/plasmodic/ecto)
08e1265 meaningless commit
Troy D. Straszheim authored
43
fb843e9 Horrible hacks to get pretty formatting of exception diagnostics
Troy D. Straszheim authored
44 option(ECTO_TRACE_EXCEPTIONS "Trace ecto exceptions to stdout" OFF)
45
8b8794a working on this race condition... random waits, stress test mode
Troy Straszheim authored
46 option(ECTO_STRESS_TEST "Stress testing of ecto" OFF)
6eb5a22 more
Troy Straszheim authored
47 if(ECTO_STRESS_TEST)
48 message("ECTO_STRESS_TEST is ON")
49 endif()
8b8794a working on this race condition... random waits, stress test mode
Troy Straszheim authored
50
f799ea4 chasing race conditions
Troy Straszheim authored
51 if (CMAKE_BUILD_TYPE STREQUAL "Debug")
8b8794a working on this race condition... random waits, stress test mode
Troy Straszheim authored
52 option(ECTO_LOGGING "Ecto logging" ON)
53 else()
54 option(ECTO_LOGGING "Ecto logging" OFF)
f799ea4 chasing race conditions
Troy Straszheim authored
55 endif()
56
1534e6b coloriffic graphs. This is a checkpoint commit, I've just made a
Troy Straszheim authored
57 option(ECTO_WITH_INSTRUMENTATION "Instrument schedulers (for debugging)" OFF)
58
e919e9f Ethan Rublee Catkinizing ecto.
ethanrublee authored
59 #set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
60 #set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
61 list(APPEND CMAKE_MODULE_PATH ${ecto_SOURCE_DIR}/cmake)
8edec7a BA *BANG*
Troy Straszheim authored
62
9c97156 Vincent Rabaud make sure ecto itself uses the RPATH fix for Electric
vrabaud authored
63 include(cmake/ros_electric.cmake)
e919e9f Ethan Rublee Catkinizing ecto.
ethanrublee authored
64 #include(cmake/buildtype.cmake)
5d2fa73 Ethan Rublee Moving some stuff around in CMake so i can think.
ethanrublee authored
65 include(cmake/version.cmake)
66 include(cmake/git.cmake)
67 include(cmake/ectoMacros.cmake)
3a4ece7 Attempt to diagnose strange problems on lucid. No idea if this will wor...
Troy Straszheim authored
68 include(cmake/boost.cmake)
7425aca fix link errors provoked by having boost before FindDeps
Troy D. Straszheim authored
69 include(cmake/ectoFindDeps.cmake)
5d2fa73 Ethan Rublee Moving some stuff around in CMake so i can think.
ethanrublee authored
70 include(cmake/config.cmake)
29f3019 Ethan Rublee Working towards standalone docs for client projects.
ethanrublee authored
71 include(cmake/doc.cmake)
f8aa86a Ethan Rublee More declspec.
ethanrublee authored
72
705b7ec Vincent Rabaud have catkin handle the Python install and make sure the tests pass
vrabaud authored
73 set_ecto_install_package_name(ecto)
5d2fa73 Ethan Rublee Moving some stuff around in CMake so i can think.
ethanrublee authored
74 git_status(ecto)
33398c2 undo libecto -> libecto_cpp on linux, pending real windows fixes that
Troy Straszheim authored
75
5d2fa73 Ethan Rublee Moving some stuff around in CMake so i can think.
ethanrublee authored
76 include_directories(include)
d56d66e scheduler overhaul
Troy D. Straszheim authored
77 include_directories(src/lib)
95293b6 Vincent Rabaud fix the new includes that are actually not handled by catkin (because th...
vrabaud authored
78 include_directories(${CMAKE_BINARY_DIR}/gen/cpp/)
79 install(DIRECTORY ${CMAKE_BINARY_DIR}/gen/cpp/ecto/
80 DESTINATION include/ecto
81 COMPONENT main
82 )
83
84
c92699f reorg things a bit for cleanliness
Troy Straszheim authored
85 add_subdirectory(src)
50cdefa Ethan Rublee Refactoring and cmake doc targets. Module -> Cell. #57
ethanrublee authored
86 add_subdirectory(cmake)
5d2fa73 Ethan Rublee Moving some stuff around in CMake so i can think.
ethanrublee authored
87 add_subdirectory(python)
8e656b5 Ethan Rublee Make the docs optional.
ethanrublee authored
88
2a31a15 Vincent Rabaud try to bring back the sphinx macro
vrabaud authored
89 set(ecto_SPHINX_DIR ${CMAKE_CURRENT_SOURCE_DIR}/python/ecto/sphinx)
90 ecto_sphinx(${CMAKE_CURRENT_SOURCE_DIR}/doc/kitchen)
b68d524 docs
Troy Straszheim authored
91
8e656b5 Ethan Rublee Make the docs optional.
ethanrublee authored
92 option(BUILD_DOC "Build docs, this will build tests and samples as well." ON)
93 if(BUILD_DOC)
94 set(BUILD_TEST ON CACHE BOOL "Tests must be built if docs are expected to build." FORCE)
95 set(BUILD_SAMPLES ON CACHE BOOL "Samples must be built if docs are expected to build." FORCE)
96 add_subdirectory(doc)
e2e77f3 Vincent Rabaud safer bin checking
vrabaud authored
97 find_package(catkin-sphinx QUIET)
98 if (catkin-sphinx_FOUND)
99 catkin_sphinx(${CMAKE_CURRENT_SOURCE_DIR}/doc/source doc
100 ${CMAKE_CURRENT_SOURCE_DIR}
101 ${CMAKE_CURRENT_SOURCE_DIR}/samples
102 )
103 endif()
8e656b5 Ethan Rublee Make the docs optional.
ethanrublee authored
104 endif()
9622df4 Ethan Rublee Adding tutorials to docs, still needs work.
ethanrublee authored
105
94e4237 Merge branch 'master' of github.com:ethanrublee/ecto
Troy D. Straszheim authored
106 option(BUILD_TEST "Build tests" ON)
cc0f381 Ethan Rublee Adding unit tests to CMakeLists.txt
ethanrublee authored
107 if(BUILD_TEST)
2de8b0d nosetests -> ctest
Troy D. Straszheim authored
108 enable_testing()
94e4237 Merge branch 'master' of github.com:ethanrublee/ecto
Troy D. Straszheim authored
109 add_subdirectory(test)
cc0f381 Ethan Rublee Adding unit tests to CMakeLists.txt
ethanrublee authored
110 endif()
94e4237 Merge branch 'master' of github.com:ethanrublee/ecto
Troy D. Straszheim authored
111
112 option(BUILD_SAMPLES "Build samples." ON)
cc0f381 Ethan Rublee Adding unit tests to CMakeLists.txt
ethanrublee authored
113 if(BUILD_SAMPLES)
94e4237 Merge branch 'master' of github.com:ethanrublee/ecto
Troy D. Straszheim authored
114 add_subdirectory(samples)
cc0f381 Ethan Rublee Adding unit tests to CMakeLists.txt
ethanrublee authored
115 endif()
b7fda36 work work
Troy D. Straszheim authored
116
1bf9bdb Vincent Rabaud add PythonLibs dependency
vrabaud authored
117 catkin_project(ecto INCLUDE_DIRS include
118 LIBRARIES ecto
119 DEPENDS PythonLibs
120 CFG_EXTRAS ecto-extras.cmake
e919e9f Ethan Rublee Catkinizing ecto.
ethanrublee authored
121 )
6ccb657 use new catkin env hooks
Troy Straszheim authored
122
b68d524 docs
Troy Straszheim authored
123 catkin_doxygen(ecto-doxygen ${CMAKE_CURRENT_SOURCE_DIR}/include)
Something went wrong with that request. Please try again.