forked from jrl-umi3218/jrl-cmakemodules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
140 lines (133 loc) · 3.24 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
cmake_minimum_required(VERSION 3.10)
set(PROJECT_NAME "jrl-cmakemodules")
set(PROJECT_DESCRIPTION "CMake utility toolbox")
set(PROJECT_URL "http://github.com/jrl-umi3218/${PROJECT_NAME}")
project(
${PROJECT_NAME}
DESCRIPTION ${PROJECT_DESCRIPTION}
LANGUAGES CXX
VERSION 0.0.0
)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
# Generate CMake exports
include(GNUInstallDirs)
include(package-config.cmake)
set(PROJECT_JRL_CMAKE_MODULE_DIR ${CMAKE_CURRENT_LIST_DIR})
setup_project_package_finalize()
# Add a dummy library with a useful INTERFACE_INCLUDE_DIRECTORIES
add_library(${PROJECT_NAME} INTERFACE)
set(INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}")
target_include_directories(
${PROJECT_NAME}
INTERFACE $<INSTALL_INTERFACE:${INSTALL_DIR}>
)
# find . -maxdepth 1 -type d ! -path './.*' | sort
install(
DIRECTORY
./boost
./cython
./doxygen
./dynamic_graph
./find-external
./github
./gtest
./hpp
./image
./sphinx
./stubgen
./_unittests
DESTINATION ${INSTALL_DIR}
)
# find . -maxdepth 1 -type f ! -path './.*' | sort
install(
FILES
./announce-gen
./apple.cmake
./base.cmake
./boost.cmake
./catkin.cmake
./CMakeLists.txt
./cmake_reinstall.cmake.in
./cmake_uninstall.cmake.in
./compiler.cmake
./componentConfig.cmake.in
./Config.cmake.in
./config.h.cmake
./config.hh.cmake
./coverage.cmake
./cpack.cmake
./createshexe.cmake
./cxx11.cmake
./cxx-standard.cmake
./debian.cmake
./deprecated.hh.cmake
./distcheck.cmake
./dist.cmake
./doxygen.cmake
./eigen.cmake
./filefilter.txt
./fix-license.sh
./geometric-tools.cmake
./git-archive-all.py
./git-archive-all.sh
./gitlog-to-changelog
./GNUInstallDirs.cmake
./gtest.cmake
./header.cmake
./hpp.cmake
./ide.cmake
./idl.cmake
./idlrtc.cmake
./install-data.cmake
./install-helpers.cmake
./julia.cmake
./kineo.cmake
./lapack.cmake
./LICENSE
./logging.cmake
./man.cmake
./memorycheck_unit_test.cmake.in
./metapodfromurdf.cmake
./modernize-links.cmake
./msvc-specific.cmake
./msvc.vcxproj.user.in
./openhrp.cmake
./openhrpcontroller.cmake
./openrtm.cmake
./oscheck.cmake
./package-config.cmake
./package.xml
./pixi.py
./pkg-config.cmake
./pkg-config.pc.cmake
./portability.cmake
./post-project.cmake
./pthread.cmake
./pyproject.py
./python.cmake
./python-helpers.cmake
./qhull.cmake
./README.md
./release.cmake
./relpath.cmake
./ros2.cmake
./ros.cmake
./sdformat.cmake
./setup.cfg
./shared-library.cmake
./sphinx.cmake
./stubs.cmake
./swig.cmake
./test.cmake
./tracy.cmake
./tracy.hh.cmake
./uninstall.cmake
./version.cmake
./version-script.cmake
./version-script-test.lds
./warning.hh.cmake
./xacro.cmake
DESTINATION ${INSTALL_DIR}
)
install(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME})
endif()