-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
468 lines (385 loc) · 16.4 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
cmake_minimum_required (VERSION 2.8.11)
project(gretl)
#################################
## Avoid source tree pollution ##
#################################
if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
message(FATAL_ERROR "In-source builds are not permitted. Make a separate folder for building:\nmkdir build; cd build; cmake ..\nBefore that, remove the files already created:\nrm -rf CMakeCache.txt CMakeFiles")
endif(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")
####################
## Create build.h ##
####################
string(TIMESTAMP DATE "%Y-%m-%d")
file(WRITE "${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/build.h" "\#define BUILD_DATE \"${DATE}\"")
##################
## DEPENDENCIES ##
##################
find_package(GTK2)
if(GTK2_FOUND)
include_directories(${GTK2_INCLUDE_DIRS})
set(GRETL_LIBS ${GRETL_LIBS} ${GTK2_LIBRARIES})
else(GTK2_FOUND)
find_package(GTK3)
if(GTK3_FOUND)
include_directories(${GTK3_INCLUDE_DIRS})
set(USE_GTK3 ON)
endif(GTK3_FOUND)
endif(GTK2_FOUND)
find_package(LIBDL)
if(LIBDL_FOUND)
include_directories(${LIBDL_INCLUDE_DIR})
set(GRETL_LIBS ${GRETL_LIBS} ${LIBDL_LIBRARIES})
endif(LIBDL_FOUND)
find_package(Gtksourceview2)
if(Gtksourceview2_FOUND)
include_directories(${Gtksourceview2_INCLUDE_DIRS})
set(GRETL_LIBS ${GRETL_LIBS} ${Gtksourceview2_LIBRARIES})
set(USE_GTKSOURCEVIEW_2 ON)
else(Gtksourceview2_FOUND)
find_package(Gtksourceview3)
if(Gtksourceview3_FOUND)
include_directories(${Gtksourceview3_INCLUDE_DIRS})
set(GRETL_LIBS ${GRETL_LIBS} ${Gtksourceview3_LIBRARIES})
set(USE_GTKSOURCEVIEW_3 ON)
endif(Gtksourceview3_FOUND)
endif(Gtksourceview2_FOUND)
find_package(MPFR)
if(MPFR_FOUND)
include_directories(${MPFR_INCLUDES})
set(GRETL_LIBS ${GRETL_LIBS} ${MPFR_LIBRARIES})
set(HAVE_MPFR ON)
endif(MPFR_FOUND)
find_package(LibXML2)
if(LIBXML2_FOUND)
include_directories(${LibXML2_INCLUDE_DIR})
set(GRETL_LIBS ${GRETL_LIBS} ${LibXML2_LIBRARIES})
endif(LIBXML2_FOUND)
find_package(Flite QUIET)
if(FLITE_FOUND)
include_directories(${FLITE_INCLUDE_DIR})
set(GRETL_LIBS ${GRETL_LIBS} ${FLITE_LIBRARIES})
set(HAVE_FLITE ON)
endif(FLITE_FOUND)
find_package(CURL)
if(CURL_FOUND)
include_directories(${CURL_INCLUDE_DIRS})
set(USE_CURL ON)
set(GRETL_LIBS ${GRETL_LIBS} ${CURL_LIBRARIES})
endif(CURL_FOUND)
find_package(MPI)
if(MPI_C_FOUND)
include_directories(${MPI_C_INCLUDE_DIRS})
set(GRETL_LIBS ${GRETL_LIBS} ${MPI_C_LIBRARIES})
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} ${MPI_C_COMPILE_FLAGS})
set(HAVE_MPI ON)
endif(MPI_C_FOUND)
if(MPI_CXX_FOUND)
include_directories(${MPI_CXX_INCLUDE_DIRS})
set(GRETL_LIBS ${GRETL_LIBS} ${MPI_CXX_LIBRARIES})
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${MPI_CXX_COMPILE_FLAGS})
endif(MPI_CXX_FOUND)
find_package(R)
if(R_FOUND)
include_directories(${R_INCLUDE_DIR})
set(USE_RLIB ON)
set(RLIBPATH ON)
set(GRETL_LIBS ${GRETL_LIBS} ${R_LIBRARIES})
message(STATUS "R libraries are ${R_LIBRARIES}")
endif(R_FOUND)
find_package(OpenMP)
if(OPENMP_FOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(OPENMP_BUILD ON)
endif(OPENMP_FOUND)
find_package(ZLIB)
if(ZLIB_FOUND)
include_directories(${ZLIB_INCLUDE_DIRS})
set(GRETL_LIBS ${GRETL_LIBS} ${ZLIB_LIBRARIES})
set(HAVE_ZLIB ON)
endif(ZLIB_FOUND)
find_package(Readline)
if(READLINE_FOUND)
include_directories(${Readline_INCLUDE_DIR})
set(GRETL_LIBS ${GRETL_LIBS} ${Readline_LIBRARY})
set(HAVE_READLINE ON)
endif(READLINE_FOUND)
find_package(LATEX)
if(LATEX_FOUND)
set(HAVE_LATEX ON)
endif(LATEX_FOUND)
find_package(UnixODBC)
if(UnixODBC_FOUND)
include_directories(${UnixODBC_INCLUDE_DIRS})
set(GRETL_LIBS ${GRETL_LIBS} ${UnixODBC_LIBRARIES})
endif(UnixODBC_FOUND)
find_package(LAPACK REQUIRED)
if(LAPACK_FOUND)
set(GRETL_LIBS ${GRETL_LIBS} ${LAPACK_LIBRARIES})
endif(LAPACK_FOUND)
find_package(FFTW REQUIRED)
if(FFTW_FOUND)
include_directories(${FFTW_INCLUDES})
set(GRETL_LIBS ${GRETL_LIBS} ${FFTW_LIBRARIES})
endif(FFTW_FOUND)
find_package(GMP)
if(GMP_FOUND)
include_directories(${GMP_INCLUDE_DIR})
set(GRETL_LIBS ${GRETL_LIBS} ${GMP_LIBRARIES})
endif(GMP_FOUND)
find_package(StandardMathLibrary)
if(STANDARD_MATH_LIBRARY_FOUND)
set(GRETL_LIBS ${GRETL_LIBS} -l${STANDARD_MATH_LIBRARY})
endif(STANDARD_MATH_LIBRARY_FOUND)
set(GRETL_PREFIX "${CMAKE_INSTALL_PREFIX}")
include(${PROJECT_SOURCE_DIR}/cmake/Modules/CheckHeaders.cmake)
configure_file(config.h.in ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/config.h)
# Localization
find_package(Gettext)
find_package(Msgfmt)
if(Gettext_FOUND AND Msgfmt_FOUND)
message(STATUS "Localization enabled: Building and installing .mo files")
add_subdirectory(lang)
else()
message(STATUS "Localization disabled: Gettext or Msgfmt missing")
endif()
include_directories(
include
)
# Create .lang file for syntax highlighting
add_custom_command(OUTPUT gretl.lang
POST_BUILD
COMMAND mklang > gretl.lang
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
COMMENT "Creating the language file"
DEPENDS mklang
VERBATIM)
add_custom_target(CreateTheLangFile ALL
DEPENDS gretl.lang
)
add_custom_target(CopyTheLangFile ALL
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/share/${PROJECT_NAME}/gnuplot.lang ${PROJECT_BINARY_DIR}/gnuplot.lang
)
###########
## FILES ##
###########
file(GLOB_RECURSE ALL_HEADERS ${PROJECT_SOURCE_DIR}/include/*.h)
file(GLOB_RECURSE ALL_SOURCES ${PROJECT_SOURCE_DIR}/src/*.c)
file(GLOB_RECURSE RNG_H ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/rng/*.h)
file(GLOB_RECURSE RNG_C ${PROJECT_SOURCE_DIR}/src/rng/*.c)
file(GLOB_RECURSE PLUGIN_H ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/plugin/*.h)
file(GLOB_RECURSE PLUGIN_C ${PROJECT_SOURCE_DIR}/src/plugin/*.c)
file(GLOB_RECURSE MINPACK_H ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/minpack/*.h)
file(GLOB_RECURSE MINPACK_C ${PROJECT_SOURCE_DIR}/src/minpack/*.c)
file(GLOB_RECURSE GRETL_LIB_H ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/lib/*.h)
file(GLOB_RECURSE GRETL_LIB_C ${PROJECT_SOURCE_DIR}/src/lib/*.c)
file(GLOB_RECURSE GUI2_H ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/gui2/*.h)
file(GLOB_RECURSE GUI2_C ${PROJECT_SOURCE_DIR}/src/gui2/*.c)
file(GLOB_RECURSE CEPHES_H ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/cephes/*.h)
file(GLOB_RECURSE CEPHES_C ${PROJECT_SOURCE_DIR}/src/cephes/*.c)
file(GLOB_RECURSE DCMT_H ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/dcmt/*.h)
file(GLOB_RECURSE DCMT_C ${PROJECT_SOURCE_DIR}/src/dcmt/*.c)
file(GLOB_RECURSE EXTRA_C ${PROJECT_SOURCE_DIR}/src/extra/*.c)
#################
## Documenting ##
#################
# Documentation
option(BUILD_DOCS "Use Doxygen to create the HTML based API documentation" OFF)
if(BUILD_DOCS)
find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(${PROJECT_SOURCE_DIR}/doc/Doxyfile.in ${PROJECT_BINARY_DIR}/doc/doxygen/Doxyfile @ONLY)
add_custom_target(docs
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/doc/doxygen/Doxyfile
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/doc/doxygen/
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
endif(DOXYGEN_FOUND)
endif(BUILD_DOCS)
option(BUILD_SPHINX "Use sphinx to create the HTML based API documentation" OFF)
if(BUILD_SPHINX)
find_package(Sphinx)
# configured documentation tools and intermediate build results
set(BINARY_BUILD_DIR "${CMAKE_CURRENT_SOURCE_DIR}/doc")
# Sphinx cache with pickled ReST documents
set(SPHINX_CACHE_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc/sphinx/_doctrees")
# HTML output directory
set(SPHINX_HTML_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc/sphinx/html")
# Copy the configured files for READTHEDOCS
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/doc/conf.py.in" "${CMAKE_CURRENT_SOURCE_DIR}/doc/conf.py" @ONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/doc/index.rst.in" "${CMAKE_CURRENT_SOURCE_DIR}/doc/index.rst" @ONLY)
add_custom_target(sphinx
COMMAND ${SPHINX_EXECUTABLE}
-q -b html
-c "${BINARY_BUILD_DIR}"
-d "${SPHINX_CACHE_DIR}"
"${BINARY_BUILD_DIR}"
"${SPHINX_HTML_DIR}"
COMMENT "Building HTML documentation with Sphinx")
endif(BUILD_SPHINX)
##############
## Building ##
##############
list(REMOVE_DUPLICATES GRETL_LIBS)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
add_library(rng SHARED ${RNG_H} ${RNG_C})
add_library(rng_static STATIC ${RNG_H} ${RNG_C})
add_library(plugin SHARED ${PLUGIN_H} ${PLUGIN_C})
target_link_libraries(plugin ${GRETL_LIBS})
add_library(plugin_static STATIC ${PLUGIN_H} ${PLUGIN_C})
target_link_libraries(plugin_static ${GRETL_LIBS})
add_library(minpack SHARED ${MINPACK_H} ${MINPACK_C})
add_library(minpack_static STATIC ${MINPACK_H} ${MINPACK_C})
add_library(cephes SHARED ${CEPHES_H} ${CEPHES_C})
add_library(cephes_static STATIC ${CEPHES_H} ${CEPHES_C})
add_library(dcmt SHARED ${DCMT_H} ${DCMT_C})
add_library(dcmt_static STATIC ${DCMT_H} ${DCMT_C})
add_library(gretl SHARED ${GRETL_LIB_H} ${GRETL_LIB_C})
target_link_libraries(gretl rng dcmt cephes minpack ${GRETL_LIBS})
add_library(gretl_static STATIC ${GRETL_LIB_H} ${GRETL_LIB_C})
target_link_libraries(gretl_static rng_static dcmt_static cephes_static minpack_static ${GRETL_LIBS})
add_library(gui2 SHARED ${GUI2_H} ${GUI2_C})
add_library(gui2_static STATIC ${GUI2_H} ${GUI2_C})
add_library(complete SHARED ${PROJECT_SOURCE_DIR}/src/executables/complete.c)
add_library(complete_static STATIC ${PROJECT_SOURCE_DIR}/src/executables/complete.c)
foreach(ITEM ${EXTRA_C})
get_filename_component(filename ${ITEM} NAME_WE)
add_executable(${filename} ${ITEM})
target_link_libraries(${filename} gretl_static)
endforeach()
add_executable(gretlcli ${PROJECT_SOURCE_DIR}/src/executables/gretlcli.c)
target_link_libraries(gretlcli gretl_static complete_static plugin_static)
if(MPI_C_FOUND)
add_executable(gretlcli-mpi ${PROJECT_SOURCE_DIR}/src/executables/gretlcli-mpi.c)
target_link_libraries(gretlcli-mpi gretl_static plugin_static)
if(MPI_C_COMPILE_FLAGS)
set_target_properties(gretlcli-mpi PROPERTIES COMPILE_FLAGS "${MPI_COMPILE_FLAGS}")
endif()
if(MPI_C_LINK_FLAGS)
set_target_properties(gretlcli-mpi PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
endif()
endif(MPI_C_FOUND)
add_executable(gretl_gui ${PROJECT_SOURCE_DIR}/src/executables/gretl_gui.c)
set_property(TARGET gretl_gui PROPERTY OUTPUT_NAME gretl)
target_link_libraries(gretl_gui gui2_static gretl_static plugin_static)
add_executable(mklang ${PROJECT_SOURCE_DIR}/src/executables/mklang.c)
target_link_libraries(mklang gui2_static gretl_static)
add_executable(mknews ${PROJECT_SOURCE_DIR}/src/executables/mknews.c)
target_link_libraries(mknews gui2_static gretl_static)
#############
## Testing ##
#############
option(BUILD_TESTS "Use Gtest to create the test cases for the code" OFF)
if(BUILD_TESTS OR ENABLE_COVERAGE)
enable_testing()
find_package(Threads REQUIRED)
add_subdirectory(cmake/gtest)
add_executable(nistcheck ${PROJECT_SOURCE_DIR}/test/nist/nistcheck.c)
set_target_properties(nistcheck PROPERTIES
COMPILE_DEFINITIONS "STANDALONE")
target_link_libraries(nistcheck gui2_static gretl_static ${GRETL_LIBS})
add_custom_command(TARGET nistcheck PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/test/nist ${PROJECT_BINARY_DIR})
add_test(NAME nistcheck
COMMAND nistcheck)
add_executable(nist-nls-test ${PROJECT_SOURCE_DIR}/test/nist-nls/nist-nls-test.c)
target_link_libraries(nist-nls-test gui2_static gretl_static ${GRETL_LIBS})
add_custom_command(TARGET nist-nls-test PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/test/nist-nls ${PROJECT_BINARY_DIR}
COMMAND ${PROJECT_BINARY_DIR}/get_data.sh
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
VERBATIM)
add_test(NAME nist-nls-test
COMMAND ${PROJECT_BINARY_DIR}/run_tests.sh)
# Depends on TestU01 and gcc
if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
find_package(TestU01 QUIET)
if(NOT TestU01_FOUND)
add_subdirectory(cmake/testu01)
endif(NOT TestU01_FOUND)
include_directories(${TestU01_INCLUDE_DIR})
add_executable(rng-test ${PROJECT_SOURCE_DIR}/test/rng/gretltest.c)
add_dependencies(rng-test TestU01)
target_link_libraries(rng-test gui2_static gretl_static ${TestU01_LIBRARIES} ${GRETL_LIBS})
add_test(NAME rng-test
COMMAND rng-test)
endif()
file(GLOB_RECURSE GOOGLE_TESTS ${PROJECT_SOURCE_DIR}/test/gtests/*.cpp)
include_directories(${GTEST_INCLUDE_DIRS})
foreach(ITEM ${GOOGLE_TESTS})
get_filename_component(filename ${ITEM} NAME_WE)
add_executable(${filename} ${ITEM})
add_dependencies(${filename} googletest)
target_link_libraries(${filename} ${GTEST_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
gretl_static)
add_test(NAME ${filename}
COMMAND ${filename})
add_custom_command(TARGET ${filename} PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/test/gtests/dataset.gdt ${PROJECT_BINARY_DIR}/dataset.gdt)
endforeach()
endif(BUILD_TESTS OR ENABLE_COVERAGE)
##############
## Coverage ##
##############
option(ENABLE_COVERAGE "Enable code coverage generation" OFF)
if(${ENABLE_COVERAGE} AND "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_BUILD_TYPE "Debug")
add_definitions(-fprofile-arcs -ftest-coverage)
# link gretl libraries to support coverage
target_link_libraries(gui2_static -fprofile-arcs -ftest-coverage)
target_link_libraries(gretl_static -fprofile-arcs -ftest-coverage)
target_link_libraries(plugin -fprofile-arcs -ftest-coverage)
target_link_libraries(nistcheck -fprofile-arcs -ftest-coverage)
target_link_libraries(nist-nls-test -fprofile-arcs -ftest-coverage)
target_link_libraries(rng-test -fprofile-arcs -ftest-coverage)
foreach(ITEM ${GOOGLE_TESTS})
get_filename_component(filename ${ITEM} NAME_WE)
target_link_libraries(${filename} -fprofile-arcs -ftest-coverage)
endforeach()
endif()
################
## Installing ##
################
message(STATUS "${PROJECT_NAME} will be installed in ${CMAKE_INSTALL_PREFIX}")
if(CMAKE_INSTALL_PREFIX STREQUAL "/usr/local" OR CMAKE_INSTALL_PREFIX STREQUAL "/usr")
# Installing system wide
if(Gtksourceview2_FOUND)
set(GTK_SYNTAX "gtksourceview-2.0/language-specs/")
else(Gtksourceview2_FOUND)
if(Gtksourceview3_FOUND)
set(GTK_SYNTAX "gtksourceview-3.0/language-specs/")
endif(Gtksourceview3_FOUND)
endif(Gtksourceview2_FOUND)
install(FILES ${PROJECT_BINARY_DIR}/gretl.lang ${PROJECT_BINARY_DIR}/gnuplot.lang
DESTINATION share/${GTK_SYNTAX})
else()
# Installing in user space
if(Gtksourceview2_FOUND)
set(GTK_SYNTAX "$ENV{HOME}/.local/share/gtksourceview-2.0/language-specs/")
else(Gtksourceview2_FOUND)
if(Gtksourceview3_FOUND)
set(GTK_SYNTAX "$ENV{HOME}/.local/share/gtksourceview-3.0/language-specs/")
endif(Gtksourceview3_FOUND)
endif(Gtksourceview2_FOUND)
install(FILES ${PROJECT_BINARY_DIR}/gretl.lang ${PROJECT_BINARY_DIR}/gnuplot.lang
DESTINATION ${GTK_SYNTAX})
endif()
install(TARGETS gretlcli gretl_gui gretlcli-mpi
rng plugin minpack cephes dcmt gretl gui2 complete
rng_static plugin_static minpack_static cephes_static
dcmt_static gretl_static gui2_static complete_static
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
DESTINATION include
)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/share/
DESTINATION share
)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/etc/
DESTINATION etc
)