-
Notifications
You must be signed in to change notification settings - Fork 77
/
CMakeLists.txt
648 lines (582 loc) · 19.6 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
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Read the zproject/README.md for information about making permanent changes. #
################################################################################
########################################################################
# Project setup
########################################################################
cmake_minimum_required(VERSION 2.8.12)
project(malamute)
enable_language(C)
enable_testing()
set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
# Select flags
if(MSVC)
SET(CMAKE_C_FLAGS_RELEASE "/O2")
else()
SET(CMAKE_C_FLAGS_RELEASE "-O3")
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/builds/cmake/Modules)
# Will be used to add flags to pkg-config useful when apps want to statically link
set(pkg_config_libs_private "")
set(pkg_config_names_private "")
########################################################################
# options
########################################################################
if (NOT CMAKE_BUILD_TYPE)
if (EXISTS "${SOURCE_DIR}/.git")
set (CMAKE_BUILD_TYPE Debug)
else ()
# http://xit0.org/2013/04/cmake-use-git-branch-and-commit-details-in-project/
# http://stackoverflow.com/questions/6797395/cmake-execute-process-always-fails-with-no-such-file-or-directory-when-i-cal
execute_process(
COMMAND git rev-parse --show-toplevel
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
RESULT_VARIABLE git_result
OUTPUT_VARIABLE git_root
OUTPUT_STRIP_TRAILING_WHITESPACE
)
message(STATUS "git workspace root [${git_result}]: ${git_root}")
if ( "${git_result}" STREQUAL "0" )
set (CMAKE_BUILD_TYPE Debug)
else ()
set (CMAKE_BUILD_TYPE Release)
endif ()
endif ()
endif ()
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" ON)
else ()
OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" OFF)
endif ()
IF (ENABLE_DRAFTS)
ADD_DEFINITIONS (-DMLM_BUILD_DRAFT_API)
ENDIF (ENABLE_DRAFTS)
########################################################################
# platform.h
########################################################################
include(CheckIncludeFile)
CHECK_INCLUDE_FILE("linux/wireless.h" HAVE_LINUX_WIRELESS_H)
CHECK_INCLUDE_FILE("net/if_media.h" HAVE_NET_IF_MEDIA_H)
include(CheckFunctionExists)
CHECK_FUNCTION_EXISTS("getifaddrs" HAVE_GETIFADDRS)
CHECK_FUNCTION_EXISTS("freeifaddrs" HAVE_FREEIFADDRS)
include(CheckIncludeFiles)
check_include_files("sys/socket.h;net/if.h" HAVE_NET_IF_H)
if (NOT HAVE_NET_IF_H)
CHECK_INCLUDE_FILE("net/if.h" HAVE_NET_IF_H)
endif()
file(REMOVE "${SOURCE_DIR}/src/platform.h")
file(WRITE "${PROJECT_BINARY_DIR}/platform.h.in" "
#cmakedefine HAVE_LINUX_WIRELESS_H
#cmakedefine HAVE_NET_IF_H
#cmakedefine HAVE_NET_IF_MEDIA_H
#cmakedefine HAVE_GETIFADDRS
#cmakedefine HAVE_FREEIFADDRS
")
configure_file("${PROJECT_BINARY_DIR}/platform.h.in" "${PROJECT_BINARY_DIR}/platform.h")
if (WIN32)
#The MSVC C compiler is too out of date,
#so the sources have to be compiled as c++
if (MSVC AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
enable_language(CXX)
file(GLOB sources "${SOURCE_DIR}/src/*.c")
set_source_files_properties(
${sources}
PROPERTIES LANGUAGE CXX
)
endif()
set(MORE_LIBRARIES ws2_32 Rpcrt4 Iphlpapi)
endif()
# specific case of windows UWP
if( "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore" AND "${CMAKE_SYSTEM_VERSION}" STREQUAL "10.0")
ADD_DEFINITIONS(-DZMQ_HAVE_WINDOWS_UWP)
ADD_DEFINITIONS(-D_WIN32_WINNT=_WIN32_WINNT_WIN10)
endif()
# required libraries for mingw
if (MINGW)
set(MORE_LIBRARIES -lws2_32 -lrpcrt4 -liphlpapi)
endif()
# required libraries for cygwin
if (CYGWIN)
set(MORE_LIBRARIES)
endif()
list(APPEND CMAKE_MODULE_PATH "${SOURCE_DIR}")
set(OPTIONAL_LIBRARIES)
set(OPTIONAL_LIBRARIES_STATIC)
########################################################################
# LIBZMQ dependency
########################################################################
find_package(libzmq REQUIRED)
IF (libzmq_FOUND)
include_directories(${libzmq_INCLUDE_DIRS})
list(APPEND MORE_LIBRARIES ${libzmq_LIBRARIES})
IF (PC_LIBZMQ_FOUND)
set(pkg_config_names_private "${pkg_config_names_private} libzmq")
list(APPEND OPTIONAL_LIBRARIES_STATIC ${PC_LIBZMQ_STATIC_LDFLAGS})
ELSE (PC_LIBZMQ_FOUND)
set(pkg_config_libs_private "${pkg_config_libs_private} -lzmq")
ENDIF (PC_LIBZMQ_FOUND)
ELSE (libzmq_FOUND)
message( FATAL_ERROR "libzmq not found." )
ENDIF (libzmq_FOUND)
########################################################################
# CZMQ dependency
########################################################################
find_package(czmq REQUIRED)
IF (czmq_FOUND)
include_directories(${czmq_INCLUDE_DIRS})
list(APPEND MORE_LIBRARIES ${czmq_LIBRARIES})
IF (PC_CZMQ_FOUND)
set(pkg_config_names_private "${pkg_config_names_private} libczmq")
list(APPEND OPTIONAL_LIBRARIES_STATIC ${PC_CZMQ_STATIC_LDFLAGS})
ELSE (PC_CZMQ_FOUND)
set(pkg_config_libs_private "${pkg_config_libs_private} -lczmq")
ENDIF (PC_CZMQ_FOUND)
ELSE (czmq_FOUND)
message( FATAL_ERROR "czmq not found." )
ENDIF (czmq_FOUND)
########################################################################
# version
########################################################################
set(MLM_VERSION_MAJOR 1)
set(MLM_VERSION_MINOR 2)
set(MLM_VERSION_PATCH 0)
set(MLM_VERSION "${MLM_VERSION_MAJOR}.${MLM_VERSION_MINOR}.${MLM_VERSION_PATCH}")
message(STATUS "Detected MLM Version - ${MLM_VERSION}")
########################################################################
# includes
########################################################################
set (mlm_headers
include/mlm_library.h
include/malamute.h
include/mlm_proto.h
include/mlm_server.h
include/mlm_client.h
src/mlm_msg.h
src/mlm_stream_simple.h
src/mlm_mailbox_bounded.h
src/mlm_msgq.h
src/mlm_server_engine.inc
src/mlm_client_engine.inc
src/mlm_client_custom.xml
)
source_group ("Header Files" FILES ${mlm_headers})
install(FILES ${mlm_headers} DESTINATION include)
########################################################################
# library
########################################################################
include_directories("${SOURCE_DIR}/src" "${SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}")
set (mlm_sources
src/mlm_proto.c
src/mlm_server.c
src/mlm_client.c
src/mlm_msg.c
src/mlm_stream_simple.c
src/mlm_mailbox_bounded.c
src/mlm_msgq.c
)
IF (ENABLE_DRAFTS)
list (APPEND mlm_sources
src/mlm_private_selftest.c
)
ENDIF (ENABLE_DRAFTS)
source_group("Source Files" FILES ${mlm_sources})
option(MLM_BUILD_SHARED "Whether or not to build the shared object" ON)
option(MLM_BUILD_STATIC "Whether or not to build the static archive" ON)
if (NOT MLM_BUILD_SHARED AND NOT MLM_BUILD_STATIC)
message(FATAL_ERROR "Neither static nor shared library build enabled")
endif()
IF (NOT MSVC)
# avoid building everything twice for shared + static
# only on *nix, as Windows needs different preprocessor defines in static builds
add_library (mlm_objects OBJECT ${mlm_sources})
set_property(TARGET mlm_objects PROPERTY POSITION_INDEPENDENT_CODE ON)
ENDIF (NOT MSVC)
# shared
if (MLM_BUILD_SHARED)
IF (APPLE)
add_library(mlm SHARED ${mlm_sources})
ELSE (APPLE)
IF (MSVC)
add_library(mlm SHARED ${mlm_sources})
ELSE (MSVC)
add_library(mlm SHARED $<TARGET_OBJECTS:mlm_objects>)
ENDIF (MSVC)
ENDIF(APPLE)
set_target_properties (mlm PROPERTIES
PUBLIC_HEADER "${public_headers}"
DEFINE_SYMBOL "MLM_EXPORTS"
SOVERSION "1"
VERSION "${MLM_VERSION}"
COMPILE_DEFINITIONS "DLL_EXPORT"
OUTPUT_NAME "mlm"
PREFIX "lib"
)
target_link_libraries(mlm
PUBLIC ${MORE_LIBRARIES}
)
install(TARGETS mlm
EXPORT mlm-targets
LIBRARY DESTINATION "lib${LIB_SUFFIX}" # .so file
ARCHIVE DESTINATION "lib${LIB_SUFFIX}" # .lib file
RUNTIME DESTINATION bin # .dll file
)
target_include_directories(mlm
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
endif()
# static
if (MLM_BUILD_STATIC)
IF (APPLE)
add_library(mlm-static STATIC ${mlm_sources})
ELSE (APPLE)
IF (MSVC)
add_library(mlm-static STATIC ${mlm_sources})
ELSE (MSVC)
add_library(mlm-static STATIC $<TARGET_OBJECTS:mlm_objects>)
ENDIF (MSVC)
ENDIF (APPLE)
set_target_properties(mlm-static PROPERTIES
PUBLIC_HEADER "${public_headers}"
COMPILE_DEFINITIONS "MLM_STATIC"
OUTPUT_NAME "mlm"
PREFIX "lib"
)
target_link_libraries(mlm-static
PUBLIC ${MORE_LIBRARIES}
)
install(TARGETS mlm-static
EXPORT mlm-targets
LIBRARY DESTINATION "lib${LIB_SUFFIX}" # .so file
ARCHIVE DESTINATION "lib${LIB_SUFFIX}" # .lib file
RUNTIME DESTINATION bin # .dll file
)
target_include_directories(mlm-static
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
target_compile_definitions(mlm-static
PUBLIC MLM_STATIC
)
endif()
########################################################################
# pkgconfig
########################################################################
set (VERSION "1.2.0")
set (prefix "${CMAKE_INSTALL_PREFIX}")
set (exec_prefix "\${prefix}")
set (libdir "\${prefix}/lib${LIB_SUFFIX}")
set (includedir "\${prefix}/include")
IF (ENABLE_DRAFTS)
set (pkg_config_defines "-DMLM_BUILD_DRAFT_API=1")
ELSE (ENABLE_DRAFTS)
set (pkg_config_defines "")
ENDIF (ENABLE_DRAFTS)
configure_file(
"${SOURCE_DIR}/src/libmlm.pc.in"
"${SOURCE_DIR}/src/libmlm.pc"
@ONLY)
install(
FILES "${SOURCE_DIR}/src/libmlm.pc"
DESTINATION "lib${LIB_SUFFIX}/pkgconfig"
)
########################################################################
# installer
########################################################################
include(CMakePackageConfigHelpers)
if (WIN32)
set(CMAKECONFIG_INSTALL_DIR "CMake" CACHE STRING "install path for mlmConfig.cmake")
else()
# GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
set(CMAKECONFIG_INSTALL_DIR "share/cmake/mlm" CACHE STRING "install path for mlmConfig.cmake")
endif()
if (NOT CMAKE_VERSION VERSION_LESS 3.0)
export(EXPORT mlm-targets
FILE "${CMAKE_CURRENT_BINARY_DIR}/mlmTargets.cmake")
endif()
configure_package_config_file(builds/cmake/Config.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/mlmConfig.cmake"
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR})
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/mlmConfigVersion.cmake
VERSION ${MLM_VERSION}
COMPATIBILITY AnyNewerVersion)
install(EXPORT mlm-targets
FILE mlmTargets.cmake
DESTINATION ${CMAKECONFIG_INSTALL_DIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mlmConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/mlmConfigVersion.cmake
DESTINATION ${CMAKECONFIG_INSTALL_DIR})
########################################################################
# executables
########################################################################
add_executable(
malamute
"${SOURCE_DIR}/src/malamute.c"
)
if (TARGET mlm)
target_link_libraries(
malamute
mlm
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
)
endif()
if (NOT TARGET mlm AND TARGET mlm-static)
target_link_libraries(
malamute
mlm-static
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
${OPTIONAL_LIBRARIES_STATIC}
)
endif()
install(TARGETS malamute
RUNTIME DESTINATION bin
)
add_executable(
mshell
"${SOURCE_DIR}/src/mshell.c"
)
if (TARGET mlm)
target_link_libraries(
mshell
mlm
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
)
endif()
if (NOT TARGET mlm AND TARGET mlm-static)
target_link_libraries(
mshell
mlm-static
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
${OPTIONAL_LIBRARIES_STATIC}
)
endif()
install(TARGETS mshell
RUNTIME DESTINATION bin
)
add_executable(
mlm_tutorial
"${SOURCE_DIR}/src/mlm_tutorial.c"
)
if (TARGET mlm)
target_link_libraries(
mlm_tutorial
mlm
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
)
endif()
if (NOT TARGET mlm AND TARGET mlm-static)
target_link_libraries(
mlm_tutorial
mlm-static
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
${OPTIONAL_LIBRARIES_STATIC}
)
endif()
install(TARGETS mlm_tutorial
RUNTIME DESTINATION bin
)
add_executable(
mlm_perftest
"${SOURCE_DIR}/src/mlm_perftest.c"
)
if (TARGET mlm)
target_link_libraries(
mlm_perftest
mlm
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
)
endif()
if (NOT TARGET mlm AND TARGET mlm-static)
target_link_libraries(
mlm_perftest
mlm-static
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
${OPTIONAL_LIBRARIES_STATIC}
)
endif()
install(TARGETS mlm_perftest
RUNTIME DESTINATION bin
)
add_executable(
mlm_selftest
"${SOURCE_DIR}/src/mlm_selftest.c"
)
if (TARGET mlm)
target_link_libraries(
mlm_selftest
mlm
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
)
endif()
if (NOT TARGET mlm AND TARGET mlm-static)
target_link_libraries(
mlm_selftest
mlm-static
${LIBZMQ_LIBRARIES}
${CZMQ_LIBRARIES}
${OPTIONAL_LIBRARIES}
${OPTIONAL_LIBRARIES_STATIC}
)
endif()
########################################################################
# tests
########################################################################
set(CLASSTEST_TIMEOUT 60 CACHE STRING "Timeout of the selftest of a class")
set(TOTAL_TIMEOUT 600 CACHE STRING "Timout of the total testsuite")
if(UNIX)
find_program(MEMORYCHECK_COMMAND valgrind)
set(MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-reachable=yes
--error-exitcode=1
--suppressions=src/.valgrind.supp")
endif()
set(TEST_CLASSES
mlm_proto
mlm_server
mlm_client
)
IF (ENABLE_DRAFTS)
list (APPEND TEST_CLASSES
private_classes
)
ENDIF (ENABLE_DRAFTS)
if (NOT TARGET copy-selftest-ro)
add_custom_target(
copy-selftest-ro ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/src/selftest-ro ${PROJECT_BINARY_DIR}/src/selftest-ro
)
endif()
if (NOT TARGET make-selftest-rw)
add_custom_target(
make-selftest-rw ALL
COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/src/selftest-rw
)
endif()
set_directory_properties(
PROPERTIES
ADDITIONAL_MAKE_CLEAN_FILES "${PROJECT_BINARY_DIR}/src/selftest-ro;${PROJECT_BINARY_DIR}/src/selftest-rw"
)
foreach(TEST_CLASS ${TEST_CLASSES})
add_test(
NAME ${TEST_CLASS}
COMMAND mlm_selftest --continue --verbose --test ${TEST_CLASS}
)
IF (WIN32 AND CMAKE_PREFIX_PATH)
file(TO_NATIVE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH_WIN)
set_tests_properties(
${TEST_CLASS}
PROPERTIES ENVIRONMENT "PATH=%PATH%\;${CMAKE_PREFIX_PATH_WIN}\\bin"
)
ENDIF (WIN32 AND CMAKE_PREFIX_PATH)
set_tests_properties(
${TEST_CLASS}
PROPERTIES TIMEOUT ${CLASSTEST_TIMEOUT}
)
set_tests_properties(
${TEST_CLASS}
PROPERTIES DEPENDS "copy-selftest-ro;make-selftest-rw"
)
endforeach(TEST_CLASS)
include(CTest)
########################################################################
# cleanup
########################################################################
if (NOT TARGET distclean)
add_custom_target (distclean @echo Cleaning for source distribution)
endif()
set(cmake_generated ${PROJECT_BINARY_DIR}/CMakeCache.txt
${PROJECT_BINARY_DIR}/cmake_install.cmake
${PROJECT_BINARY_DIR}/Makefile
${PROJECT_BINARY_DIR}/CMakeFiles
${PROJECT_BINARY_DIR}/CTestTestfile.cmake
${PROJECT_BINARY_DIR}/DartConfiguration.tcl
${PROJECT_BINARY_DIR}/Testing
${PROJECT_BINARY_DIR}/compile_commands.json
${PROJECT_BINARY_DIR}/platform.h
${PROJECT_BINARY_DIR}/src/libmlm.pc
${PROJECT_BINARY_DIR}/src/libmlm.so
${PROJECT_BINARY_DIR}/src/malamute_selftest
${PROJECT_BINARY_DIR}/src/malamute
${PROJECT_BINARY_DIR}/src/mshell
${PROJECT_BINARY_DIR}/src/mlm_tutorial
${PROJECT_BINARY_DIR}/src/mlm_perftest
${PROJECT_BINARY_DIR}/src/mlm_selftest
)
add_custom_command(
DEPENDS clean
COMMENT "distribution clean"
COMMAND rm
ARGS -rf CMakeTmp ${cmake_generated}
TARGET distclean
)
include(ClangFormat OPTIONAL)
########################################################################
# summary
########################################################################
message ("")
message (STATUS "******************* Configuration Summary *******************")
message (STATUS "General:")
message (STATUS " Version : ${VERSION}")
message (STATUS " System : ${CMAKE_SYSTEM_NAME}")
message (STATUS " C compiler : ${CMAKE_C_COMPILER}")
message (STATUS " Debug C flags : ${CMAKE_C_FLAGS_DEBUG} ${CMAKE_C_FLAGS}")
message (STATUS " Release C flags : ${CMAKE_C_FLAGS_RELEASE} ${CMAKE_C_FLAGS}")
message (STATUS " Build type : ${CMAKE_BUILD_TYPE}")
message (STATUS " Static build : ${MLM_BUILD_STATIC}")
message (STATUS " Shared build : ${MLM_BUILD_SHARED}")
IF (ENABLE_DRAFTS)
message (STATUS " Draft API : Yes")
ELSE (ENABLE_DRAFTS)
message (STATUS " Draft API : No")
ENDIF (ENABLE_DRAFTS)
message (STATUS "")
message (STATUS "Dependencies:")
include(FeatureSummary)
feature_summary (WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
message (STATUS "")
message (STATUS "Install:")
message (STATUS " Install prefix :" "${CMAKE_INSTALL_PREFIX}")
message (STATUS "")
message (STATUS "************************* Options ***************************")
message (STATUS "Options:")
message (STATUS " Use the Draft API (default = yes):")
message (STATUS " -DENABLE-DRAFTS=[yes|no]")
message (STATUS "")
message (STATUS "*************************************************************")
message (STATUS "Configuration complete! Now procced with:")
message (STATUS " 'make' compile the project")
message (STATUS " 'make test' run the project's selftest")
message (STATUS " 'make install' install the project to ${CMAKE_INSTALL_PREFIX}")
message (STATUS "")
message (STATUS "Further options are:")
message (STATUS " 'ctest -V run test with verbose logging")
message (STATUS " 'ctest -R <test_name>' run a specific test")
message (STATUS " 'ctest -T memcheck' run the project's selftest with")
message (STATUS " valgrind to check for memory leaks")
message (STATUS "")
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Read the zproject/README.md for information about making permanent changes. #
################################################################################