forked from zufuliu/notepad4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMake.cmake
2087 lines (2054 loc) · 44.9 KB
/
CMake.cmake
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
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# CMake 3.20 https://cmake.org/cmake/help/latest/index.html
#! Keywords ===========================================================
# https://cmake.org/cmake/help/latest/manual/cmake-language.7.html
if(NOT
AND
OR
# Existence Checks
COMMAND
POLICY
TARGET
TEST
DEFINED CACHE ENV
IN_LIST
# File Operations
EXISTS
IS_NEWER_THAN
IS_DIRECTORY
IS_SYMLINK
IS_ABSOLUTE
# Comparisons
MATCHES
LESS
GREATER
EQUAL
LESS_EQUAL
GREATER_EQUAL
STRLESS
STRGREATER
STREQUAL
STRLESS_EQUAL
STRGREATER_EQUAL
# Version Comparisons
VERSION_LESS
VERSION_GREATER
VERSION_EQUAL
VERSION_LESS_EQUAL
VERSION_GREATER_EQUAL
)
elseif()
else()
endif()
foreach(RANGE
IN LISTS ITEMS
ZIP_LISTS)
endforeach()
while()
endwhile()
break()
continue()
macro()
endmacro()
function(ARGC ARGV)
endfunction()
return()
#! Commands ===========================================================
# cmake --help-command-list
# https://cmake.org/cmake/help/latest/manual/cmake-commands.7.html
# Scripting Commands
cmake_host_system_information(RESULT QUERY)
cmake_language(CALL STATUS
EVAL CODE
DEFER
DIRECTORY
ID
ID_VAR
CALL
GET_CALL_IDS
GET_CALL
CANCEL_CALL
)
cmake_minimum_required(VERSION FATAL_ERROR)
cmake_parse_arguments(PARSE_ARGV)
cmake_path(
# Decomposition
GET
ROOT_NAME
ROOT_DIRECTORY
ROOT_PATH
FILENAME
EXTENSION LAST_ONLY
STEM LAST_ONLY
RELATIVE_PART
PARENT_PATH
# Query
HAS_ROOT_NAME
HAS_ROOT_DIRECTORY
HAS_ROOT_PATH
HAS_FILENAME
HAS_EXTENSION
HAS_STEM
HAS_RELATIVE_PART
HAS_PARENT_PATH
IS_ABSOLUTE
IS_RELATIVE
IS_PREFIX
COMPARE
# Modification
SET NORMALIZE
APPEND OUTPUT_VARIABLE
APPEND_STRING OUTPUT_VARIABLE
REMOVE_FILENAME OUTPUT_VARIABLE
REPLACE_FILENAME OUTPUT_VARIABLE
REMOVE_EXTENSION LAST_ONLY OUTPUT_VARIABLE
REPLACE_EXTENSION LAST_ONLY OUTPUT_VARIABLE
# Generation
NORMAL_PATH OUTPUT_VARIABLE
RELATIVE_PATH BASE_DIRECTORY OUTPUT_VARIABLE
ABSOLUTE_PATH BASE_DIRECTORY NORMALIZE OUTPUT_VARIABLE
# Native Conversion
NATIVE_PATH NORMALIZE
CONVERT TO_CMAKE_PATH_LIST NORMALIZE
CONVERT TO_NATIVE_PATH_LIST NORMALIZE
# Hashing
HASH
)
cmake_policy(VERSION
SET NEW OLD
GET
PUSH
POP)
configure_file(
NO_SOURCE_PERMISSIONS USE_SOURCE_PERMISSIONS FILE_PERMISSIONS
COPYONLY ESCAPE_QUOTES ONLY NEWLINE_STYLE
)
execute_process(COMMAND
WORKING_DIRECTORY
TIMEOUT
RESULT_VARIABLE
RESULTS_VARIABLE
OUTPUT_VARIABLE
ERROR_VARIABLE
INPUT_FILE
OUTPUT_FILE
ERROR_FILE
OUTPUT_QUIET
ERROR_QUIET
COMMAND_ECHO
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
ENCODING
ECHO_OUTPUT_VARIABLE
ECHO_ERROR_VARIABLE
COMMAND_ERROR_IS_FATAL ANY LAST
)
file(
# Reading
READ OFFSET LIMIT HEX
STRINGS
LENGTH_MAXIMUM
LENGTH_MINIMUM
LIMIT_COUNT
LIMIT_INPUT
LIMIT_OUTPUT
NEWLINE_CONSUME
NO_HEX_CONVERSION
REGEX
ENCODING
HASH
TIMESTAMP UTC
GET_RUNTIME_DEPENDENCIES
RESOLVED_DEPENDENCIES_VAR
UNRESOLVED_DEPENDENCIES_VAR
CONFLICTING_DEPENDENICES_PREFIX
EXECUTABLES
LIBRARIES
MODULES
DIRECTORIES
BUNDLE_EXECUTABLE
PRE_INCLUDE_REGEXES
PRE_EXCLUDE_REGEXES
POST_INCLUDE_REGEXES
POST_EXCLUDE_REGEXES
# Writing
WRITE
APPEND
TOUCH
TOUCH_NOCREATE
GENERATE
OUTPUT
INPUT
CONTENT
CONDITION
TARGET
NO_SOURCE_PERMISSIONS USE_SOURCE_PERMISSIONS FILE_PERMISSIONS
NEWLINE_STYLE
CONFIGURE
OUTPUT
CONTENT
ESCAPE_QUOTES ONLY
NEWLINE_STYLE
# Filesystem
GLOB
LIST_DIRECTORIES
RELATIVE
CONFIGURE_DEPENDS
GLOB_RECURSE
FOLLOW_SYMLINKS
LIST_DIRECTORIES
RELATIVE
CONFIGURE_DEPENDS
RENAME
REMOVE
REMOVE_RECURSE
MAKE_DIRECTORY
COPY INSTALL DESTINATION
NO_SOURCE_PERMISSIONS USE_SOURCE_PERMISSIONS FILE_PERMISSIONS
DIRECTORY_PERMISSIONS
FOLLOW_SYMLINK_CHAIN
FILES_MATCHING
PATTERN REGEX
EXCLUDE PERMISSIONS
SIZE
READ_SYMLINK
CREATE_LINK
RESULT
COPY_ON_ERROR
SYMBOLIC
CHMOD
PERMISSIONS FILE_PERMISSIONS DIRECTORY_PERMISSIONS
CHMOD_RECURSE
# Path Conversion
RELATIVE_PATH BASE_DIRECTORY
TO_CMAKE_PATH
TO_NATIVE_PATH
# Transfer
DOWNLOAD
INACTIVITY_TIMEOUT
LOG
SHOW_PROGRESS
STATUS
TIMEOUT
USERPWD
HTTPHEADER
NETRC
IGNORED OPTIONAL REQUIRED
NETRC_FILE
EXPECTED_HASH ALGO
EXPECTED_MD5
TLS_VERIFY
TLS_CAINFO
UPLOAD
# Locking
LOCK DIRECTORY RELEASE
GUARD FUNCTION FILE PROCESS
RESULT_VARIABLE
TIMEOUT
# Archiving
ARCHIVE_CREATE OUTPUT
PATHS
FORMAT
COMPRESSION
MTIME
VERBOSE
ARCHIVE_EXTRACT INPUT
DESTINATION
PATTERNS
LIST_ONLY
VERBOSE
)
find_file() # find_path()
find_library(NAMES_PER_DIR) # find_path()
find_package( # find_path()
EXACT
QUIET
COMPONENTS
OPTIONAL_COMPONENTS
CONFIG NO_MODULE
NO_POLICY_SCOPE
NAMES
CONFIGS
NO_CMAKE_PACKAGE_REGISTRY
NO_CMAKE_SYSTEM_PACKAGE_REGISTRY
)
find_path(
NAMES
HINTS ENV
PATHS ENV
PATH_SUFFIXES
DOC
REQUIRED
NO_DEFAULT_PATH
NO_PACKAGE_ROOT_PATH
NO_CMAKE_PATH
NO_CMAKE_ENVIRONMENT_PATH
NO_SYSTEM_ENVIRONMENT_PATH
NO_CMAKE_SYSTEM_PATH
CMAKE_FIND_ROOT_PATH_BOTH
ONLY_CMAKE_FIND_ROOT_PATH
NO_CMAKE_FIND_ROOT_PATH
)
find_program(NAMES_PER_DIR) # find_path()
get_cmake_property()
get_directory_property(DIRECTORY DEFINITION)
get_filename_component(CACHE
DIRECTORY NAME EXT NAME_WE LAST_EXT NAME_WLE
BASE_DIR ABSOLUTE REALPATH
PROGRAM PROGRAM_ARGS)
get_property(GLOBAL
DIRECTORY
TARGET
SOURCE
DIRECTORY TARGET_DIRECTORY
INSTALL
TEST
CACHE
VARIABLE
PROPERTY
SET DEFINED BRIEF_DOCS FULL_DOCS)
include(OPTIONAL RESULT_VARIABLE NO_POLICY_SCOPE)
include_guard(DIRECTORY GLOBAL)
list(
# Reading
LENGTH
GET
JOIN
SUBLIST
# Search
FIND
# Modification
APPEND
FILTER INCLUDE EXCLUDE REGEX
INSERT
POP_BACK
POP_FRONT
PREPEND
REMOVE_ITEM
REMOVE_AT
REMOVE_DUPLICATES
TRANSFORM OUTPUT_VARIABLE
AT FOR REGEX
# Ordering
REVERSE
SORT
COMPARE STRING FILE_BASENAME
CASE SENSITIVE INSENSITIVE
ORDER ASCENDING DESCENDING
)
mark_as_advanced(CLEAR FORCE)
math(EXPR OUTPUT_FORMAT HEXADECIMAL DECIMAL)
message(FATAL_ERROR SEND_ERROR WARNING AUTHOR_WARNING DEPRECATION NOTICE STATUS VERBOSE DEBUG TRACE
CHECK_START CHECK_PASS CHECK_FAIL
)
option()
separate_arguments(UNIX_COMMAND WINDOWS_COMMAND NATIVE_COMMAND PROGRAM SEPARATE_ARGS)
set(PARENT_SCOPE CACHE ENV FORCE
BOOL FILEPATH PATH STRING INTERNAL)
set_directory_properties(PROPERTIES)
set_property(GLOBAL
DIRECTORY
TARGET
SOURCE
DIRECTORY TARGET_DIRECTORY
INSTALL
TEST
CACHE
APPEND APPEND_STRING
PROPERTY)
site_name()
string(
# Search and Replace
FIND REVERSE
REPLACE
# Search and Replace With Regular Expressions
REGEX
MATCH
MATCHAL
REPLACE
# Manipulation
APPEND
PREPEND
CONCAT
JOIN
TOLOWER
TOUPPER
LENGTH
SUBSTRING
STRIP
GENEX_STRIP
REPEAT
# Comparison
COMPARE
LESS
GREATER
EQUAL
NOTEQUAL
LESS_EQUAL
GREATER_EQUAL
# Hashing
MD5 SHA1 SHA224 SHA256 SHA384 SHA512 SHA3_224 SHA3_256 SHA3_384 SHA3_512
# Generation
ASCII
HEX
CONFIGURE ESCAPE_QUOTES
MAKE_C_IDENTIFIER
RANDOM LENGTH ALPHABET RANDOM_SEED
TIMESTAMP UTC
UUID NAMESPACE NAME TYPE MD5 SHA1 UPPER
# JSON
JSON
ERROR_VARIABLE GET
ERROR_VARIABLE TYPE
ERROR_VARIABLE MEMBER
ERROR_VARIABLE LENGTH
ERROR_VARIABLE REMOVE
ERROR_VARIABLE SET
ERROR_VARIABLE EQUAL
)
unset(CACHE PARENT_SCOPE ENV)
variable_watch(READ_ACCESS UNKNOWN_READ_ACCESS MODIFIED_ACCESS UNKNOWN_MODIFIED_ACCESS REMOVED_ACCESS)
# Project Commands
add_compile_definitions()
add_compile_options()
add_custom_command(
# Generating Files
OUTPUT
COMMAND ARGS
MAIN_DEPENDENCY
DEPENDS
BYPRODUCTS
IMPLICIT_DEPENDS
WORKING_DIRECTORY
COMMENT
DEPFILE
JOB_POOL
VERBATIM
APPEND
USES_TERMINAL
COMMAND_EXPAND_LISTS
# Build Events
TARGET
PRE_BUILD PRE_LINK POST_BUILD
COMMAND ARGS
BYPRODUCTS
WORKING_DIRECTORY
COMMENT
VERBATIM
USES_TERMINAL
COMMAND_EXPAND_LISTS
)
add_custom_target(ALL
COMMAND
DEPENDS
BYPRODUCTS
WORKING_DIRECTORY
COMMENT
JOB_POOL
VERBATIM
USES_TERMINAL
COMMAND_EXPAND_LISTS
SOURCES)
add_definitions()
add_dependencies()
add_executable(
WIN32 MACOSX_BUNDLE EXCLUDE_FROM_ALL
IMPORTED GLOBAL
ALIAS)
add_library(
# Normal Libraries
STATIC SHARED MODULE
EXCLUDE_FROM_ALL
OBJECT
INTERFACE
# Imported Libraries
IMPORTED GLOBAL
ALIAS
)
add_link_options()
add_subdirectory(EXCLUDE_FROM_ALL)
add_test(NAME COMMAND
CONFIGURATIONS
WORKING_DIRECTORY
COMMAND_EXPAND_LISTS)
aux_source_directory()
build_command(CONFIGURATION TARGET PROJECT_NAME)
create_test_sourcelist(EXTRA_INCLUDE FUNCTION)
define_property(GLOBAL
DIRECTORY
TARGET
SOURCE
TEST
VARIABLE
CACHED_VARIABLE
PROPERTY INHERITED
BRIEF_DOCS
FULL_DOCS)
enable_language(OPTIONAL)
enable_testing()
export(EXPORT NAMESPACE FILE
TARGETS APPEND EXPORT_LINK_INTERFACE_LIBRARIES
PACKAGE
ANDROID_MK)
fltk_wrap_ui()
get_source_file_property(DIRECTORY TARGET_DIRECTORY)
get_target_property()
get_test_property()
include_directories(AFTER BEFORE SYSTEM)
include_external_msproject(TYPE GUID PLATFORM)
include_regular_expression()
install(
# Installing Targets
TARGETS
EXPORT
ARCHIVE LIBRARY RUNTIME OBJECTS FRAMEWORK BUNDLE PRIVATE_HEADER PUBLIC_HEADER RESOURCE
DESTINATION
PERMISSIONS
CONFIGURATIONS
COMPONENT
NAMELINK_COMPONENT
OPTIONAL
EXCLUDE_FROM_ALL
NAMELINK_ONLY NAMELINK_SKIP
INCLUDES DESTINATION
# Installing Files
FILES PROGRAMS
TYPE
DESTINATION
PERMISSIONS
CONFIGURATIONS
COMPONENT
RENAME
OPTIONAL
EXCLUDE_FROM_ALL
# Installing Directories
DIRECTORY
TYPE
DESTINATION
FILE_PERMISSIONS
DIRECTORY_PERMISSIONS
USE_SOURCE_PERMISSIONS
OPTIONAL
MESSAGE_NEVER
CONFIGURATIONS
COMPONENT
EXCLUDE_FROM_ALL
FILES_MATCHING
PATTERN REGEX
EXCLUDE
PERMISSIONS
# Custom Installation Logic
SCRIPT CODE
COMPONENT
EXCLUDE_FROM_ALL
# Installing Exports
EXPORT
DESTINATION
NAMESPACE
FILE
PERMISSIONS
CONFIGURATIONS
EXPORT_LINK_INTERFACE_LIBRARIES
COMPONENT
EXCLUDE_FROM_ALL
EXPORT_ANDROID_MK DESTINATION
)
link_directories(AFTER BEFORE)
link_libraries()
load_cache(READ_WITH_PREFIX
EXCLUDE INCLUDE_INTERNALS)
project(VERSION DESCRIPTION HOMEPAGE_URL LANGUAGES)
remove_definitions()
set_source_files_properties(DIRECTORY TARGET_DIRECTORY PROPERTIES)
set_target_properties(PROPERTIES)
set_tests_properties(PROPERTIES)
source_group(FILES REGULAR_EXPRESSION
TREE PREFIX FILES)
target_compile_definitions(INTERFACE PUBLIC PRIVATE)
target_compile_features()
target_compile_options(BEFORE)
target_include_directories(SYSTEM BEFORE)
target_link_directories(BEFORE)
target_link_libraries()
target_link_options(BEFORE)
target_precompile_headers(REUSE_FROM)
target_sources()
try_compile(
# Try Compiling Whole Projects
CMAKE_FLAGS OUTPUT_VARIABLE
# Try Compiling Source Files
SOURCES
CMAKE_FLAGS
COMPILE_DEFINITIONS
LINK_OPTIONS
LINK_LIBRARIES
OUTPUT_VARIABLE
COPY_FILE
COPY_FILE_ERROR)
try_run(CMAKE_FLAGS
COMPILE_DEFINITIONS
LINK_OPTIONS
LINK_LIBRARIES
COMPILE_OUTPUT_VARIABLE
RUN_OUTPUT_VARIABLE
OUTPUT_VARIABLE
ARGS)
# CTest Commands
ctest_build(BUILD
APPEND
CONFIGURATION
FLAGS
PROJECT_NAME
TARGET
NUMBER_ERRORS
NUMBER_WARNINGS
RETURN_VALUE
CAPTURE_CMAKE_ERROR
QUIET)
ctest_configure(BUILD
SOURCE
APPEND
OPTIONS
RETURN_VALUE
CAPTURE_CMAKE_ERROR
QUIET)
ctest_coverage(BUILD
APPEND
LABELS
RETURN_VALUE
CAPTURE_CMAKE_ERROR
QUIET)
ctest_empty_binary_directory()
ctest_memcheck(DEFECT_COUNT) # ctest_test()
ctest_read_custom_files()
ctest_run_script(NEW_PROCESS RETURN_VALUE)
ctest_sleep()
ctest_start(GROUP APPEND QUIET)
ctest_submit(
PARTS
FILES
CDASH_UPLOAD CDASH_UPLOAD_TYPE
SUBMIT_URL
BUILD_ID
HTTPHEADER
RETRY_COUNT
RETRY_DELAY
RETURN_VALUE
CAPTURE_CMAKE_ERROR
QUIET)
ctest_test(BUILD
APPEND
START
END
STRIDE
EXCLUDE
INCLUDE
EXCLUDE_LABEL
INCLUDE_LABEL
EXCLUDE_FIXTURE
EXCLUDE_FIXTURE_SETUP
EXCLUDE_FIXTURE_CLEANUP
PARALLEL_LEVEL
RESOURCE_SPEC_FILE
TEST_LOAD
SCHEDULE_RANDOM
STOP_ON_FAILURE
STOP_TIME
RETURN_VALUE
CAPTURE_CMAKE_ERROR
REPEAT
QUIET)
ctest_update(SOURCE RETURN_VALUE CAPTURE_CMAKE_ERROR QUIET)
ctest_upload(FILES QUIET CAPTURE_CMAKE_ERROR)
# Deprecated Commands
#! Generator Expressions ===================================================
# https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html
# Logical Operators
$<BOOL:string>
$<AND:conditions>
$<OR:conditions>
$<NOT:condition>
# String Comparisons
$<STREQUAL:string1, string2>
$<EQUAL:value1, value2>
$<IN_LIST:string, list>
$<VERSION_LESS:v1, v2>
$<VERSION_GREATER:v1, v2>
$<VERSION_EQUAL:v1, v2>
$<VERSION_LESS_EQUAL:v1, v2>
$<VERSION_GREATER_EQUAL:v1, v2>
# Variable Queries
$<TARGET_EXISTS:target>
$<CONFIG:cfg>
$<PLATFORM_ID:platform_ids>
$<C_COMPILER_ID:compiler_ids>
$<CXX_COMPILER_ID:compiler_ids>
$<CUDA_COMPILER_ID:compiler_ids>
$<OBJC_COMPILER_ID:compiler_ids>
$<OBJCXX_COMPILER_ID:compiler_ids>
$<Fortran_COMPILER_ID:compiler_ids>
$<ISPC_COMPILER_ID:compiler_ids>
$<C_COMPILER_VERSION:version>
$<CXX_COMPILER_VERSION:version>
$<CUDA_COMPILER_VERSION:version>
$<OBJC_COMPILER_VERSION:version>
$<OBJCXX_COMPILER_VERSION:version>
$<Fortran_COMPILER_VERSION:version>
$<ISPC_COMPILER_VERSION:version>
$<TARGET_POLICY:policy>
$<COMPILE_FEATURES:features>
$<COMPILE_LANG_AND_ID:language, compiler_ids>
$<COMPILE_LANGUAGE:languages>
$<LINK_LANG_AND_ID:language,compiler_ids>
$<LINK_LANGUAGE:languages>
$<DEVICE_LINK:list>
$<HOST_LINK:list>
# Escaped Characters
$<ANGLE-R>
$<COMMA>
$<SEMICOLON>
# Conditional Expressions
$<IF:condition, true_string, false_string>
# String Transformations
$<JOIN:list, string>
$<REMOVE_DUPLICATES:list>
$<FILTER:list, INCLUDE | EXCLUDE, regex>
$<LOWER_CASE:string>
$<UPPER_CASE:string>
$<GENEX_EVAL:expr>
$<TARGET_GENEX_EVAL:tgt, expr>
# Variable Queries
$<CONFIG>
$<CONFIGURATION>
$<PLATFORM_ID>
$<C_COMPILER_ID>
$<CXX_COMPILER_ID>
$<CUDA_COMPILER_ID>
$<OBJC_COMPILER_ID>
$<OBJCXX_COMPILER_ID>
$<Fortran_COMPILER_ID>
$<ISPC_COMPILER_ID>
$<C_COMPILER_VERSION>
$<CXX_COMPILER_VERSION>
$<CUDA_COMPILER_VERSION>
$<OBJC_COMPILER_VERSION>
$<OBJCXX_COMPILER_VERSION>
$<Fortran_COMPILER_VERSION>
$<ISPC_COMPILER_VERSION>
$<COMPILE_LANGUAGE>
$<LINK_LANGUAGE>
# Target-Dependent Queries
$<TARGET_NAME_IF_EXISTS:tgt>
$<TARGET_FILE:tgt>
$<TARGET_FILE_BASE_NAME:tgt>
$<TARGET_FILE_PREFIX:tgt>
$<TARGET_FILE_SUFFIX:tgt>
$<TARGET_FILE_NAME:tgt>
$<TARGET_FILE_DIR:tgt>
$<TARGET_LINKER_FILE:tgt>
$<TARGET_LINKER_FILE_BASE_NAME:tgt>
$<TARGET_LINKER_FILE_PREFIX:tgt>
$<TARGET_LINKER_FILE_SUFFIX:tgt>
$<TARGET_LINKER_FILE_NAME:tgt>
$<TARGET_LINKER_FILE_DIR:tgt>
$<TARGET_SONAME_FILE:tgt>
$<TARGET_SONAME_FILE_NAME:tgt>
$<TARGET_SONAME_FILE_DIR:tgt>
$<TARGET_PDB_FILE:tgt>
$<TARGET_PDB_FILE_BASE_NAME:tgt>
$<TARGET_PDB_FILE_NAME:tgt>
$<TARGET_PDB_FILE_DIR:tgt>
$<TARGET_BUNDLE_DIR:tgt>
$<TARGET_BUNDLE_CONTENT_DIR:tgt>
$<TARGET_PROPERTY:tgt,prop>
$<TARGET_PROPERTY:prop>
$<INSTALL_PREFIX>
# Output-Related Expressions
$<TARGET_NAME:...>
$<LINK_ONLY:...>
$<INSTALL_INTERFACE:...>
$<BUILD_INTERFACE:...>
$<MAKE_C_IDENTIFIER:...>
$<TARGET_OBJECTS:objLib>
$<SHELL_PATH:...>
$<OUTPUT_CONFIG:...>
$<COMMAND_CONFIG:...>
#! Properties ===========================================================
# cmake --help-property-list
# https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html
# Properties of Global Scope
ALLOW_DUPLICATE_CUSTOM_TARGETS
AUTOGEN_SOURCE_GROUP
AUTOGEN_TARGETS_FOLDER
AUTOMOC_SOURCE_GROUP
AUTOMOC_TARGETS_FOLDER
AUTORCC_SOURCE_GROUP
CMAKE_C_KNOWN_FEATURES
CMAKE_CUDA_KNOWN_FEATURES
CMAKE_CXX_KNOWN_FEATURES
CMAKE_ROLE
DEBUG_CONFIGURATIONS
DISABLED_FEATURES
ECLIPSE_EXTRA_CPROJECT_CONTENTS
ECLIPSE_EXTRA_NATURES
ENABLED_FEATURES
ENABLED_LANGUAGES
FIND_LIBRARY_USE_LIB32_PATHS
FIND_LIBRARY_USE_LIB64_PATHS
FIND_LIBRARY_USE_LIBX32_PATHS
FIND_LIBRARY_USE_OPENBSD_VERSIONING
GENERATOR_IS_MULTI_CONFIG
GLOBAL_DEPENDS_DEBUG_MODE
GLOBAL_DEPENDS_NO_CYCLES
IN_TRY_COMPILE
JOB_POOLS
PACKAGES_FOUND
PACKAGES_NOT_FOUND
PREDEFINED_TARGETS_FOLDER
REPORT_UNDEFINED_PROPERTIES
RULE_LAUNCH_COMPILE
RULE_LAUNCH_CUSTOM
RULE_LAUNCH_LINK
RULE_MESSAGES
TARGET_ARCHIVES_MAY_BE_SHARED_LIBS
TARGET_MESSAGES
TARGET_SUPPORTS_SHARED_LIBS
USE_FOLDERS
XCODE_EMIT_EFFECTIVE_PLATFORM_NAME
# Properties on Directories
ADDITIONAL_CLEAN_FILES
BINARY_DIR
BUILDSYSTEM_TARGETS
CACHE_VARIABLES
CLEAN_NO_CUSTOM
CMAKE_CONFIGURE_DEPENDS
COMPILE_DEFINITIONS
COMPILE_OPTIONS
DEFINITIONS
EXCLUDE_FROM_ALL
IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
INCLUDE_DIRECTORIES
INCLUDE_REGULAR_EXPRESSION
INTERPROCEDURAL_OPTIMIZATION_<CONFIG>
INTERPROCEDURAL_OPTIMIZATION
LABELS
LINK_DIRECTORIES
LINK_OPTIONS
LISTFILE_STACK
MACROS
PARENT_DIRECTORY
RULE_LAUNCH_COMPILE
RULE_LAUNCH_CUSTOM
RULE_LAUNCH_LINK
SOURCE_DIR
SUBDIRECTORIES
TESTS
TEST_INCLUDE_FILES
VARIABLES
VS_GLOBAL_SECTION_POST_<section>
VS_GLOBAL_SECTION_PRE_<section>
VS_STARTUP_PROJECT
# Properties on Targets
ADDITIONAL_CLEAN_FILES
AIX_EXPORT_ALL_SYMBOLS
ALIAS_GLOBAL
ALIASED_TARGET
ANDROID_ANT_ADDITIONAL_OPTIONS
ANDROID_API
ANDROID_API_MIN
ANDROID_ARCH
ANDROID_ASSETS_DIRECTORIES
ANDROID_GUI
ANDROID_JAR_DEPENDENCIES
ANDROID_JAR_DIRECTORIES
ANDROID_JAVA_SOURCE_DIR
ANDROID_NATIVE_LIB_DEPENDENCIES
ANDROID_NATIVE_LIB_DIRECTORIES
ANDROID_PROCESS_MAX
ANDROID_PROGUARD
ANDROID_PROGUARD_CONFIG_PATH
ANDROID_SECURE_PROPS_PATH
ANDROID_SKIP_ANT_STEP
ANDROID_STL_TYPE
ARCHIVE_OUTPUT_DIRECTORY_<CONFIG>
ARCHIVE_OUTPUT_DIRECTORY
ARCHIVE_OUTPUT_NAME_<CONFIG>
ARCHIVE_OUTPUT_NAME
AUTOGEN_BUILD_DIR
AUTOGEN_ORIGIN_DEPENDS
AUTOGEN_PARALLEL
AUTOGEN_TARGET_DEPENDS
AUTOMOC
AUTOMOC_COMPILER_PREDEFINES
AUTOMOC_DEPEND_FILTERS
AUTOMOC_EXECUTABLE
AUTOMOC_MACRO_NAMES
AUTOMOC_MOC_OPTIONS
AUTOMOC_PATH_PREFIX
AUTORCC
AUTORCC_EXECUTABLE
AUTORCC_OPTIONS
AUTOUIC
AUTOUIC_EXECUTABLE
AUTOUIC_OPTIONS
AUTOUIC_SEARCH_PATHS
BINARY_DIR
BUILD_RPATH
BUILD_RPATH_USE_ORIGIN
BUILD_WITH_INSTALL_NAME_DIR
BUILD_WITH_INSTALL_RPATH
BUNDLE_EXTENSION
BUNDLE
C_EXTENSIONS
C_STANDARD
C_STANDARD_REQUIRED
COMMON_LANGUAGE_RUNTIME
COMPATIBLE_INTERFACE_BOOL
COMPATIBLE_INTERFACE_NUMBER_MAX
COMPATIBLE_INTERFACE_NUMBER_MIN
COMPATIBLE_INTERFACE_STRING
COMPILE_DEFINITIONS
COMPILE_FEATURES
COMPILE_FLAGS
COMPILE_OPTIONS
COMPILE_PDB_NAME
COMPILE_PDB_NAME_<CONFIG>
COMPILE_PDB_OUTPUT_DIRECTORY
COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>
<CONFIG>_OUTPUT_NAME
<CONFIG>_POSTFIX
CROSSCOMPILING_EMULATOR
CUDA_ARCHITECTURES
CUDA_PTX_COMPILATION
CUDA_SEPARABLE_COMPILATION
CUDA_RESOLVE_DEVICE_SYMBOLS
CUDA_RUNTIME_LIBRARY
CUDA_EXTENSIONS
CUDA_STANDARD
CUDA_STANDARD_REQUIRED
CXX_EXTENSIONS
CXX_STANDARD
CXX_STANDARD_REQUIRED
DEBUG_POSTFIX
DEFINE_SYMBOL
DEPLOYMENT_REMOTE_DIRECTORY
DEPLOYMENT_ADDITIONAL_FILES
DEPRECATION
DISABLE_PRECOMPILE_HEADERS
DOTNET_TARGET_FRAMEWORK
DOTNET_TARGET_FRAMEWORK_VERSION
EchoString
ENABLE_EXPORTS
EXCLUDE_FROM_ALL
EXCLUDE_FROM_DEFAULT_BUILD_<CONFIG>
EXCLUDE_FROM_DEFAULT_BUILD
EXPORT_COMPILE_COMMANDS
EXPORT_NAME
EXPORT_PROPERTIES
FOLDER
Fortran_FORMAT
Fortran_MODULE_DIRECTORY
Fortran_PREPROCESS
FRAMEWORK
FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>
FRAMEWORK_VERSION
GENERATOR_FILE_NAME
GHS_INTEGRITY_APP
GHS_NO_SOURCE_GROUP_FILE
GNUtoMS
HAS_CXX
IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
IMPORTED
IMPORTED_COMMON_LANGUAGE_RUNTIME
IMPORTED_CONFIGURATIONS
IMPORTED_GLOBAL
IMPORTED_IMPLIB
IMPORTED_IMPLIB_<CONFIG>
IMPORTED_LIBNAME
IMPORTED_LIBNAME_<CONFIG>
IMPORTED_LINK_DEPENDENT_LIBRARIES
IMPORTED_LINK_DEPENDENT_LIBRARIES_<CONFIG>
IMPORTED_LINK_INTERFACE_LANGUAGES
IMPORTED_LINK_INTERFACE_LANGUAGES_<CONFIG>
IMPORTED_LINK_INTERFACE_LIBRARIES
IMPORTED_LINK_INTERFACE_LIBRARIES_<CONFIG>
IMPORTED_LINK_INTERFACE_MULTIPLICITY
IMPORTED_LINK_INTERFACE_MULTIPLICITY_<CONFIG>
IMPORTED_LOCATION
IMPORTED_LOCATION_<CONFIG>
IMPORTED_NO_SONAME
IMPORTED_NO_SONAME_<CONFIG>
IMPORTED_OBJECTS
IMPORTED_OBJECTS_<CONFIG>
IMPORTED_SONAME
IMPORTED_SONAME_<CONFIG>
IMPORT_PREFIX
IMPORT_SUFFIX
INCLUDE_DIRECTORIES
INSTALL_NAME_DIR
INSTALL_REMOVE_ENVIRONMENT_RPATH
INSTALL_RPATH
INSTALL_RPATH_USE_LINK_PATH
INTERFACE_AUTOUIC_OPTIONS