This file is indexed.

/usr/share/doc/cmake-data/cmake.html is in cmake-doc 2.8.12.2-0ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>cmake - cmake</title></head><body>
<h2><a name="section_Index"></a>Master Index CMake 2.8.12.2</h2>
<ul>
  <li><a href="#section_Name"><b>Name</b></a></li>
  <li><a href="#section_Usage"><b>Usage</b></a></li>
  <li><a href="#section_Description"><b>Description</b></a></li>
  <li><a href="#section_Options"><b>Options</b></a></li>
  <li><a href="#section_Generators"><b>Generators</b></a></li>
  <li><a href="#section_Commands"><b>Commands</b></a></li>
  <li><a href="#section_Properties"><b>Properties</b></a></li>
  <li><a href="#section_PropertiesofGlobalScope"><b>Properties of Global Scope</b></a></li>
  <li><a href="#section_PropertiesonDirectories"><b>Properties on Directories</b></a></li>
  <li><a href="#section_PropertiesonTargets"><b>Properties on Targets</b></a></li>
  <li><a href="#section_PropertiesonTests"><b>Properties on Tests</b></a></li>
  <li><a href="#section_PropertiesonSourceFiles"><b>Properties on Source Files</b></a></li>
  <li><a href="#section_PropertiesonCacheEntries"><b>Properties on Cache Entries</b></a></li>
  <li><a href="#section_CompatibilityCommands"><b>Compatibility Commands</b></a></li>
  <li><a href="#section_StandardCMakeModules"><b>Standard CMake Modules</b></a></li>
  <li><a href="#section_Policies"><b>Policies</b></a></li>
  <li><a href="#section_Variables"><b>Variables</b></a></li>
  <li><a href="#section_VariablesThatChangeBehavior"><b>Variables That Change Behavior</b></a></li>
  <li><a href="#section_VariablesThatDescribetheSystem"><b>Variables That Describe the System</b></a></li>
  <li><a href="#section_VariablesforLanguages"><b>Variables for Languages</b></a></li>
  <li><a href="#section_VariablesthatControltheBuild"><b>Variables that Control the Build</b></a></li>
  <li><a href="#section_VariablesthatProvideInformation"><b>Variables that Provide Information</b></a></li>
  <li><a href="#section_Copyright"><b>Copyright</b></a></li>
  <li><a href="#section_SeeAlso"><b>See Also</b></a></li>
</ul>
<h2><a name="section_Name"></a>Name</h2>
<pre>  cmake - Cross-Platform Makefile Generator.</pre>
    
<h2><a name="section_Usage"></a>Usage</h2>
<pre>  cmake [options] &lt;path-to-source&gt;<br />  cmake [options] &lt;path-to-existing-build&gt;</pre>
    
<h2><a name="section_Description"></a>Description</h2>
<p>The "cmake" executable is the CMake command-line interface.  It may be used to configure projects in scripts.  Project configuration settings may be specified on the command line with the -D option.  The -i option will cause cmake to interactively prompt for such settings.</p>

<p>CMake is a cross-platform build system generator.  Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.</p>

<h2><a name="section_Options"></a>Options</h2>
<ul>
    <li><a href="#opt:-Cinitial-cache"><b><code>-C &lt;initial-cache&gt;</code></b></a></li>
    <li><a href="#opt:-Dvar:typevalue"><b><code>-D &lt;var&gt;:&lt;type&gt;=&lt;value&gt;</code></b></a></li>
    <li><a href="#opt:-Uglobbing_expr"><b><code>-U &lt;globbing_expr&gt;</code></b></a></li>
    <li><a href="#opt:-Ggenerator-name"><b><code>-G &lt;generator-name&gt;</code></b></a></li>
    <li><a href="#opt:-Ttoolset-name"><b><code>-T &lt;toolset-name&gt;</code></b></a></li>
    <li><a href="#opt:-Wno-dev"><b><code>-Wno-dev</code></b></a></li>
    <li><a href="#opt:-Wdev"><b><code>-Wdev</code></b></a></li>
    <li><a href="#opt:-E"><b><code>-E</code></b></a></li>
    <li><a href="#opt:-i"><b><code>-i</code></b></a></li>
    <li><a href="#opt:-LAH"><b><code>-L[A][H]</code></b></a></li>
    <li><a href="#opt:--builddir"><b><code>--build &lt;dir&gt;</code></b></a></li>
    <li><a href="#opt:-N"><b><code>-N</code></b></a></li>
    <li><a href="#opt:-Pfile"><b><code>-P &lt;file&gt;</code></b></a></li>
    <li><a href="#opt:--find-package"><b><code>--find-package</code></b></a></li>
    <li><a href="#opt:--graphvizfile"><b><code>--graphviz=[file]</code></b></a></li>
    <li><a href="#opt:--system-informationfile"><b><code>--system-information [file]</code></b></a></li>
    <li><a href="#opt:--debug-trycompile"><b><code>--debug-trycompile</code></b></a></li>
    <li><a href="#opt:--debug-output"><b><code>--debug-output</code></b></a></li>
    <li><a href="#opt:--trace"><b><code>--trace</code></b></a></li>
    <li><a href="#opt:--warn-uninitialized"><b><code>--warn-uninitialized</code></b></a></li>
    <li><a href="#opt:--warn-unused-vars"><b><code>--warn-unused-vars</code></b></a></li>
    <li><a href="#opt:--no-warn-unused-cli"><b><code>--no-warn-unused-cli</code></b></a></li>
    <li><a href="#opt:--check-system-vars"><b><code>--check-system-vars</code></b></a></li>
    <li><a href="#opt:--help-commandcmdfile"><b><code>--help-command cmd [file]</code></b></a></li>
    <li><a href="#opt:--help-command-listfile"><b><code>--help-command-list [file]</code></b></a></li>
    <li><a href="#opt:--help-commandsfile"><b><code>--help-commands [file]</code></b></a></li>
    <li><a href="#opt:--help-compatcommandsfile"><b><code>--help-compatcommands [file]</code></b></a></li>
    <li><a href="#opt:--help-modulemodulefile"><b><code>--help-module module [file]</code></b></a></li>
    <li><a href="#opt:--help-module-listfile"><b><code>--help-module-list [file]</code></b></a></li>
    <li><a href="#opt:--help-modulesfile"><b><code>--help-modules [file]</code></b></a></li>
    <li><a href="#opt:--help-custom-modulesfile"><b><code>--help-custom-modules [file]</code></b></a></li>
    <li><a href="#opt:--help-policycmpfile"><b><code>--help-policy cmp [file]</code></b></a></li>
    <li><a href="#opt:--help-policiesfile"><b><code>--help-policies [file]</code></b></a></li>
    <li><a href="#opt:--help-propertypropfile"><b><code>--help-property prop [file]</code></b></a></li>
    <li><a href="#opt:--help-property-listfile"><b><code>--help-property-list [file]</code></b></a></li>
    <li><a href="#opt:--help-propertiesfile"><b><code>--help-properties [file]</code></b></a></li>
    <li><a href="#opt:--help-variablevarfile"><b><code>--help-variable var [file]</code></b></a></li>
    <li><a href="#opt:--help-variable-listfile"><b><code>--help-variable-list [file]</code></b></a></li>
    <li><a href="#opt:--help-variablesfile"><b><code>--help-variables [file]</code></b></a></li>
    <li><a href="#opt:--copyrightfile"><b><code>--copyright [file]</code></b></a></li>
    <li><a href="#opt:--help-help-usage-h-H"><b><code>--help,-help,-usage,-h,-H,/?</code></b></a></li>
    <li><a href="#opt:--help-fullfile"><b><code>--help-full [file]</code></b></a></li>
    <li><a href="#opt:--help-htmlfile"><b><code>--help-html [file]</code></b></a></li>
    <li><a href="#opt:--help-manfile"><b><code>--help-man [file]</code></b></a></li>
    <li><a href="#opt:--version-versionVfile"><b><code>--version,-version,/V [file]</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="opt:-Cinitial-cache"></a><b><code>-C &lt;initial-cache&gt;</code></b>: Pre-load a script to populate the cache.<br />
    <p>When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project.  This option may be used to specify a file from which to load cache entries before the first pass through the project's cmake listfiles.  The loaded entries take priority over the project's default values.  The given file should be a CMake script containing SET commands that use the CACHE option, not a cache-format file.</p>

  </li>
  <li>
    <a name="opt:-Dvar:typevalue"></a><b><code>-D &lt;var&gt;:&lt;type&gt;=&lt;value&gt;</code></b>: Create a cmake cache entry.<br />
    <p>When cmake is first run in an empty build tree, it creates a CMakeCache.txt file and populates it with customizable settings for the project.  This option may be used to specify a setting that takes priority over the project's default value.  The option may be repeated for as many cache entries as desired.</p>

  </li>
  <li>
    <a name="opt:-Uglobbing_expr"></a><b><code>-U &lt;globbing_expr&gt;</code></b>: Remove matching entries from CMake cache.<br />
    <p>This option may be used to remove one or more variables from the CMakeCache.txt file, globbing expressions using * and ? are supported. The option may be repeated for as many cache entries as desired.<br /></p>
<p>Use with care, you can make your CMakeCache.txt non-working.</p>

  </li>
  <li>
    <a name="opt:-Ggenerator-name"></a><b><code>-G &lt;generator-name&gt;</code></b>: Specify a build system generator.<br />
    <p>CMake may support multiple native build systems on certain platforms.  A generator is responsible for generating a particular build system.  Possible generator names are specified in the Generators section.</p>

  </li>
  <li>
    <a name="opt:-Ttoolset-name"></a><b><code>-T &lt;toolset-name&gt;</code></b>: Specify toolset name if supported by generator.<br />
    <p>Some CMake generators support a toolset name to be given to the native build system to choose a compiler.  This is supported only on specific generators:<br /></p>
<pre>  Visual Studio &gt;= 10<br />  Xcode &gt;= 3.0<br /></pre>
    <p>See native build system documentation for allowed toolset names.</p>

  </li>
  <li>
    <a name="opt:-Wno-dev"></a><b><code>-Wno-dev</code></b>: Suppress developer warnings.<br />
    <p>Suppress warnings that are meant for the author of the CMakeLists.txt files.</p>

  </li>
  <li>
    <a name="opt:-Wdev"></a><b><code>-Wdev</code></b>: Enable developer warnings.<br />
    <p>Enable warnings that are meant for the author of the CMakeLists.txt files.</p>

  </li>
  <li>
    <a name="opt:-E"></a><b><code>-E</code></b>: CMake command mode.<br />
    <p>For true platform independence, CMake provides a list of commands that can be used on all systems. Run with -E help for the usage information. Commands available are: chdir, compare_files, copy, copy_directory, copy_if_different, echo, echo_append, environment, make_directory, md5sum, remove, remove_directory, rename, tar, time, touch, touch_nocreate. In addition, some platform specific commands are available. On Windows: comspec, delete_regv, write_regv. On UNIX: create_symlink.</p>

  </li>
  <li>
    <a name="opt:-i"></a><b><code>-i</code></b>: Run in wizard mode.<br />
    <p>Wizard mode runs cmake interactively without a GUI.  The user is prompted to answer questions about the project configuration.  The answers are used to set cmake cache values.</p>

  </li>
  <li>
    <a name="opt:-LAH"></a><b><code>-L[A][H]</code></b>: List non-advanced cached variables.<br />
    <p>List cache variables will run CMake and list all the variables from the CMake cache that are not marked as INTERNAL or ADVANCED. This will effectively display current CMake settings, which can then be changed with -D option. Changing some of the variables may result in more variables being created. If A is specified, then it will display also advanced variables. If H is specified, it will also display help for each variable.</p>

  </li>
  <li>
    <a name="opt:--builddir"></a><b><code>--build &lt;dir&gt;</code></b>: Build a CMake-generated project binary tree.<br />
    <p>This abstracts a native build tool's command-line interface with the following options:<br /></p>
<pre>  &lt;dir&gt;          = Project binary directory to be built.<br />  --target &lt;tgt&gt; = Build &lt;tgt&gt; instead of default targets.<br />  --config &lt;cfg&gt; = For multi-configuration tools, choose &lt;cfg&gt;.<br />  --clean-first  = Build target 'clean' first, then build.<br />                   (To clean only, use --target 'clean'.)<br />  --use-stderr   = Don't merge stdout/stderr output and pass the<br />                   original stdout/stderr handles to the native<br />                   tool so it can use the capabilities of the<br />                   calling terminal (e.g. colored output).<br />  --             = Pass remaining options to the native tool.<br /></pre>
    <p>Run cmake --build with no options for quick help.</p>

  </li>
  <li>
    <a name="opt:-N"></a><b><code>-N</code></b>: View mode only.<br />
    <p>Only load the cache. Do not actually run configure and generate steps.</p>

  </li>
  <li>
    <a name="opt:-Pfile"></a><b><code>-P &lt;file&gt;</code></b>: Process script mode.<br />
    <p>Process the given cmake file as a script written in the CMake language.  No configure or generate step is performed and the cache is not modified. If variables are defined using -D, this must be done before the -P argument.</p>

  </li>
  <li>
    <a name="opt:--find-package"></a><b><code>--find-package</code></b>: Run in pkg-config like mode.<br />
    <p>Search a package using find_package() and print the resulting flags to stdout. This can be used to use cmake instead of pkg-config to find installed libraries in plain Makefile-based projects or in autoconf-based projects (via share/aclocal/cmake.m4).</p>

  </li>
  <li>
    <a name="opt:--graphvizfile"></a><b><code>--graphviz=[file]</code></b>: Generate graphviz of dependencies, see CMakeGraphVizOptions.cmake for more.<br />
    <p>Generate a graphviz input file that will contain all the library and executable dependencies in the project. See the documentation for CMakeGraphVizOptions.cmake for more details. </p>

  </li>
  <li>
    <a name="opt:--system-informationfile"></a><b><code>--system-information [file]</code></b>: Dump information about this system.<br />
    <p>Dump a wide range of information about the current system. If run from the top of a binary tree for a CMake project it will dump additional information such as the cache, log files etc.</p>

  </li>
  <li>
    <a name="opt:--debug-trycompile"></a><b><code>--debug-trycompile</code></b>: Do not delete the try_compile build tree. Only useful on one try_compile at a time.<br />
    <p>Do not delete the files and directories created for try_compile calls. This is useful in debugging failed try_compiles. It may however change the results of the try-compiles as old junk from a previous try-compile may cause a different test to either pass or fail incorrectly.  This option is best used for one try-compile at a time, and only when debugging.</p>

  </li>
  <li>
    <a name="opt:--debug-output"></a><b><code>--debug-output</code></b>: Put cmake in a debug mode.<br />
    <p>Print extra stuff during the cmake run like stack traces with message(send_error ) calls.</p>

  </li>
  <li>
    <a name="opt:--trace"></a><b><code>--trace</code></b>: Put cmake in trace mode.<br />
    <p>Print a trace of all calls made and from where with message(send_error ) calls.</p>

  </li>
  <li>
    <a name="opt:--warn-uninitialized"></a><b><code>--warn-uninitialized</code></b>: Warn about uninitialized values.<br />
    <p>Print a warning when an uninitialized variable is used.</p>

  </li>
  <li>
    <a name="opt:--warn-unused-vars"></a><b><code>--warn-unused-vars</code></b>: Warn about unused variables.<br />
    <p>Find variables that are declared or set, but not used.</p>

  </li>
  <li>
    <a name="opt:--no-warn-unused-cli"></a><b><code>--no-warn-unused-cli</code></b>: Don't warn about command line options.<br />
    <p>Don't find variables that are declared on the command line, but not used.</p>

  </li>
  <li>
    <a name="opt:--check-system-vars"></a><b><code>--check-system-vars</code></b>: Find problems with variable usage in system files.<br />
    <p>Normally, unused and uninitialized variables are searched for only in CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR. This flag tells CMake to warn about other files as well.</p>

  </li>
  <li>
    <a name="opt:--help-commandcmdfile"></a><b><code>--help-command cmd [file]</code></b>: Print help for a single command and exit.<br />
    <p>Full documentation specific to the given command is displayed. If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-command-listfile"></a><b><code>--help-command-list [file]</code></b>: List available listfile commands and exit.<br />
    <p>The list contains all commands for which help may be obtained by using the --help-command argument followed by a command name. If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-commandsfile"></a><b><code>--help-commands [file]</code></b>: Print help for all commands and exit.<br />
    <p>Full documentation specific for all current commands is displayed.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-compatcommandsfile"></a><b><code>--help-compatcommands [file]</code></b>: Print help for compatibility commands. <br />
    <p>Full documentation specific for all compatibility commands is displayed.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-modulemodulefile"></a><b><code>--help-module module [file]</code></b>: Print help for a single module and exit.<br />
    <p>Full documentation specific to the given module is displayed.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-module-listfile"></a><b><code>--help-module-list [file]</code></b>: List available modules and exit.<br />
    <p>The list contains all modules for which help may be obtained by using the --help-module argument followed by a module name. If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-modulesfile"></a><b><code>--help-modules [file]</code></b>: Print help for all modules and exit.<br />
    <p>Full documentation for all modules is displayed. If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-custom-modulesfile"></a><b><code>--help-custom-modules [file]</code></b>: Print help for all custom modules and exit.<br />
    <p>Full documentation for all custom modules is displayed. If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-policycmpfile"></a><b><code>--help-policy cmp [file]</code></b>: Print help for a single policy and exit.<br />
    <p>Full documentation specific to the given policy is displayed.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-policiesfile"></a><b><code>--help-policies [file]</code></b>: Print help for all policies and exit.<br />
    <p>Full documentation for all policies is displayed.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-propertypropfile"></a><b><code>--help-property prop [file]</code></b>: Print help for a single property and exit.<br />
    <p>Full documentation specific to the given property is displayed.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-property-listfile"></a><b><code>--help-property-list [file]</code></b>: List available properties and exit.<br />
    <p>The list contains all properties for which help may be obtained by using the --help-property argument followed by a property name.  If a file is specified, the help is written into it.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-propertiesfile"></a><b><code>--help-properties [file]</code></b>: Print help for all properties and exit.<br />
    <p>Full documentation for all properties is displayed.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-variablevarfile"></a><b><code>--help-variable var [file]</code></b>: Print help for a single variable and exit.<br />
    <p>Full documentation specific to the given variable is displayed.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-variable-listfile"></a><b><code>--help-variable-list [file]</code></b>: List documented variables and exit.<br />
    <p>The list contains all variables for which help may be obtained by using the --help-variable argument followed by a variable name.  If a file is specified, the help is written into it.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--help-variablesfile"></a><b><code>--help-variables [file]</code></b>: Print help for all variables and exit.<br />
    <p>Full documentation for all variables is displayed.If a file is specified, the documentation is written into and the output format is determined depending on the filename suffix. Supported are man page, HTML, DocBook and plain text.</p>

  </li>
  <li>
    <a name="opt:--copyrightfile"></a><b><code>--copyright [file]</code></b>: Print the CMake copyright and exit.<br />
    <p>If a file is specified, the copyright is written into it.</p>

  </li>
  <li>
    <a name="opt:--help-help-usage-h-H"></a><b><code>--help,-help,-usage,-h,-H,/?</code></b>: Print usage information and exit.<br />
    <p>Usage describes the basic command line interface and its options.</p>

  </li>
  <li>
    <a name="opt:--help-fullfile"></a><b><code>--help-full [file]</code></b>: Print full help and exit.<br />
    <p>Full help displays most of the documentation provided by the UNIX man page.  It is provided for use on non-UNIX platforms, but is also convenient if the man page is not installed.  If a file is specified, the help is written into it.</p>

  </li>
  <li>
    <a name="opt:--help-htmlfile"></a><b><code>--help-html [file]</code></b>: Print full help in HTML format.<br />
    <p>This option is used by CMake authors to help produce web pages.  If a file is specified, the help is written into it.</p>

  </li>
  <li>
    <a name="opt:--help-manfile"></a><b><code>--help-man [file]</code></b>: Print full help as a UNIX man page and exit.<br />
    <p>This option is used by the cmake build to generate the UNIX man page.  If a file is specified, the help is written into it.</p>

  </li>
  <li>
    <a name="opt:--version-versionVfile"></a><b><code>--version,-version,/V [file]</code></b>: Show program name/version banner and exit.<br />
    <p>If a file is specified, the version is written into it.</p>

  </li>
</ul>
<h2><a name="section_Generators"></a>Generators</h2>
<ul>
    <li><a href="#gen:UnixMakefiles"><b><code>Unix Makefiles</code></b></a></li>
    <li><a href="#gen:Ninja"><b><code>Ninja</code></b></a></li>
    <li><a href="#gen:CodeBlocks-Ninja"><b><code>CodeBlocks - Ninja</code></b></a></li>
    <li><a href="#gen:CodeBlocks-UnixMakefiles"><b><code>CodeBlocks - Unix Makefiles</code></b></a></li>
    <li><a href="#gen:EclipseCDT4-Ninja"><b><code>Eclipse CDT4 - Ninja</code></b></a></li>
    <li><a href="#gen:EclipseCDT4-UnixMakefiles"><b><code>Eclipse CDT4 - Unix Makefiles</code></b></a></li>
    <li><a href="#gen:KDevelop3"><b><code>KDevelop3</code></b></a></li>
    <li><a href="#gen:KDevelop3-UnixMakefiles"><b><code>KDevelop3 - Unix Makefiles</code></b></a></li>
    <li><a href="#gen:SublimeText2-Ninja"><b><code>Sublime Text 2 - Ninja</code></b></a></li>
    <li><a href="#gen:SublimeText2-UnixMakefiles"><b><code>Sublime Text 2 - Unix Makefiles</code></b></a></li>
</ul>
<p>The following generators are available on this platform:</p>

<ul>
  <li>
    <a name="gen:UnixMakefiles"></a><b><code>Unix Makefiles</code></b>: Generates standard UNIX makefiles.<br />
    <p>A hierarchy of UNIX makefiles is generated into the build tree.  Any standard UNIX-style make program can build the project through the default make target.  A "make install" target is also provided.</p>

  </li>
  <li>
    <a name="gen:Ninja"></a><b><code>Ninja</code></b>: Generates build.ninja files (experimental).<br />
    <p>A build.ninja file is generated into the build tree. Recent versions of the ninja program can build the project through the "all" target.  An "install" target is also provided.</p>

  </li>
  <li>
    <a name="gen:CodeBlocks-Ninja"></a><b><code>CodeBlocks - Ninja</code></b>: Generates CodeBlocks project files.<br />
    <p>Project files for CodeBlocks will be created in the top directory and in every subdirectory which features a CMakeLists.txt file containing a PROJECT() call. Additionally a hierarchy of makefiles is generated into the build tree.  The appropriate make program can build the project through the default make target.  A "make install" target is also provided.</p>

  </li>
  <li>
    <a name="gen:CodeBlocks-UnixMakefiles"></a><b><code>CodeBlocks - Unix Makefiles</code></b>: Generates CodeBlocks project files.<br />
    <p>Project files for CodeBlocks will be created in the top directory and in every subdirectory which features a CMakeLists.txt file containing a PROJECT() call. Additionally a hierarchy of makefiles is generated into the build tree.  The appropriate make program can build the project through the default make target.  A "make install" target is also provided.</p>

  </li>
  <li>
    <a name="gen:EclipseCDT4-Ninja"></a><b><code>Eclipse CDT4 - Ninja</code></b>: Generates Eclipse CDT 4.0 project files.<br />
    <p>Project files for Eclipse will be created in the top directory. In out of source builds, a linked resource to the top level source directory will be created. Additionally a hierarchy of makefiles is generated into the build tree. The appropriate make program can build the project through the default make target. A "make install" target is also provided.</p>

  </li>
  <li>
    <a name="gen:EclipseCDT4-UnixMakefiles"></a><b><code>Eclipse CDT4 - Unix Makefiles</code></b>: Generates Eclipse CDT 4.0 project files.<br />
    <p>Project files for Eclipse will be created in the top directory. In out of source builds, a linked resource to the top level source directory will be created. Additionally a hierarchy of makefiles is generated into the build tree. The appropriate make program can build the project through the default make target. A "make install" target is also provided.</p>

  </li>
  <li>
    <a name="gen:KDevelop3"></a><b><code>KDevelop3</code></b>: Generates KDevelop 3 project files.<br />
    <p>Project files for KDevelop 3 will be created in the top directory and in every subdirectory which features a CMakeLists.txt file containing a PROJECT() call. If you change the settings using KDevelop cmake will try its best to keep your changes when regenerating the project files. Additionally a hierarchy of UNIX makefiles is generated into the build tree.  Any standard UNIX-style make program can build the project through the default make target.  A "make install" target is also provided.</p>

  </li>
  <li>
    <a name="gen:KDevelop3-UnixMakefiles"></a><b><code>KDevelop3 - Unix Makefiles</code></b>: Generates KDevelop 3 project files.<br />
    <p>Project files for KDevelop 3 will be created in the top directory and in every subdirectory which features a CMakeLists.txt file containing a PROJECT() call. If you change the settings using KDevelop cmake will try its best to keep your changes when regenerating the project files. Additionally a hierarchy of UNIX makefiles is generated into the build tree.  Any standard UNIX-style make program can build the project through the default make target.  A "make install" target is also provided.</p>

  </li>
  <li>
    <a name="gen:SublimeText2-Ninja"></a><b><code>Sublime Text 2 - Ninja</code></b>: Generates Sublime Text 2 project files.<br />
    <p>Project files for Sublime Text 2 will be created in the top directory and in every subdirectory which features a CMakeLists.txt file containing a PROJECT() call. Additionally Makefiles (or build.ninja files) are generated into the build tree.  The appropriate make program can build the project through the default make target.  A "make install" target is also provided.</p>

  </li>
  <li>
    <a name="gen:SublimeText2-UnixMakefiles"></a><b><code>Sublime Text 2 - Unix Makefiles</code></b>: Generates Sublime Text 2 project files.<br />
    <p>Project files for Sublime Text 2 will be created in the top directory and in every subdirectory which features a CMakeLists.txt file containing a PROJECT() call. Additionally Makefiles (or build.ninja files) are generated into the build tree.  The appropriate make program can build the project through the default make target.  A "make install" target is also provided.</p>

  </li>
</ul>
<h2><a name="section_Commands"></a>Commands</h2>
<ul>
    <li><a href="#command:add_compile_options"><b><code>add_compile_options</code></b></a></li>
    <li><a href="#command:add_custom_command"><b><code>add_custom_command</code></b></a></li>
    <li><a href="#command:add_custom_target"><b><code>add_custom_target</code></b></a></li>
    <li><a href="#command:add_definitions"><b><code>add_definitions</code></b></a></li>
    <li><a href="#command:add_dependencies"><b><code>add_dependencies</code></b></a></li>
    <li><a href="#command:add_executable"><b><code>add_executable</code></b></a></li>
    <li><a href="#command:add_library"><b><code>add_library</code></b></a></li>
    <li><a href="#command:add_subdirectory"><b><code>add_subdirectory</code></b></a></li>
    <li><a href="#command:add_test"><b><code>add_test</code></b></a></li>
    <li><a href="#command:aux_source_directory"><b><code>aux_source_directory</code></b></a></li>
    <li><a href="#command:break"><b><code>break</code></b></a></li>
    <li><a href="#command:build_command"><b><code>build_command</code></b></a></li>
    <li><a href="#command:cmake_host_system_information"><b><code>cmake_host_system_information</code></b></a></li>
    <li><a href="#command:cmake_minimum_required"><b><code>cmake_minimum_required</code></b></a></li>
    <li><a href="#command:cmake_policy"><b><code>cmake_policy</code></b></a></li>
    <li><a href="#command:configure_file"><b><code>configure_file</code></b></a></li>
    <li><a href="#command:create_test_sourcelist"><b><code>create_test_sourcelist</code></b></a></li>
    <li><a href="#command:define_property"><b><code>define_property</code></b></a></li>
    <li><a href="#command:else"><b><code>else</code></b></a></li>
    <li><a href="#command:elseif"><b><code>elseif</code></b></a></li>
    <li><a href="#command:enable_language"><b><code>enable_language</code></b></a></li>
    <li><a href="#command:enable_testing"><b><code>enable_testing</code></b></a></li>
    <li><a href="#command:endforeach"><b><code>endforeach</code></b></a></li>
    <li><a href="#command:endfunction"><b><code>endfunction</code></b></a></li>
    <li><a href="#command:endif"><b><code>endif</code></b></a></li>
    <li><a href="#command:endmacro"><b><code>endmacro</code></b></a></li>
    <li><a href="#command:endwhile"><b><code>endwhile</code></b></a></li>
    <li><a href="#command:execute_process"><b><code>execute_process</code></b></a></li>
    <li><a href="#command:export"><b><code>export</code></b></a></li>
    <li><a href="#command:file"><b><code>file</code></b></a></li>
    <li><a href="#command:find_file"><b><code>find_file</code></b></a></li>
    <li><a href="#command:find_library"><b><code>find_library</code></b></a></li>
    <li><a href="#command:find_package"><b><code>find_package</code></b></a></li>
    <li><a href="#command:find_path"><b><code>find_path</code></b></a></li>
    <li><a href="#command:find_program"><b><code>find_program</code></b></a></li>
    <li><a href="#command:fltk_wrap_ui"><b><code>fltk_wrap_ui</code></b></a></li>
    <li><a href="#command:foreach"><b><code>foreach</code></b></a></li>
    <li><a href="#command:function"><b><code>function</code></b></a></li>
    <li><a href="#command:get_cmake_property"><b><code>get_cmake_property</code></b></a></li>
    <li><a href="#command:get_directory_property"><b><code>get_directory_property</code></b></a></li>
    <li><a href="#command:get_filename_component"><b><code>get_filename_component</code></b></a></li>
    <li><a href="#command:get_property"><b><code>get_property</code></b></a></li>
    <li><a href="#command:get_source_file_property"><b><code>get_source_file_property</code></b></a></li>
    <li><a href="#command:get_target_property"><b><code>get_target_property</code></b></a></li>
    <li><a href="#command:get_test_property"><b><code>get_test_property</code></b></a></li>
    <li><a href="#command:if"><b><code>if</code></b></a></li>
    <li><a href="#command:include"><b><code>include</code></b></a></li>
    <li><a href="#command:include_directories"><b><code>include_directories</code></b></a></li>
    <li><a href="#command:include_external_msproject"><b><code>include_external_msproject</code></b></a></li>
    <li><a href="#command:include_regular_expression"><b><code>include_regular_expression</code></b></a></li>
    <li><a href="#command:install"><b><code>install</code></b></a></li>
    <li><a href="#command:link_directories"><b><code>link_directories</code></b></a></li>
    <li><a href="#command:list"><b><code>list</code></b></a></li>
    <li><a href="#command:load_cache"><b><code>load_cache</code></b></a></li>
    <li><a href="#command:load_command"><b><code>load_command</code></b></a></li>
    <li><a href="#command:macro"><b><code>macro</code></b></a></li>
    <li><a href="#command:mark_as_advanced"><b><code>mark_as_advanced</code></b></a></li>
    <li><a href="#command:math"><b><code>math</code></b></a></li>
    <li><a href="#command:message"><b><code>message</code></b></a></li>
    <li><a href="#command:option"><b><code>option</code></b></a></li>
    <li><a href="#command:project"><b><code>project</code></b></a></li>
    <li><a href="#command:qt_wrap_cpp"><b><code>qt_wrap_cpp</code></b></a></li>
    <li><a href="#command:qt_wrap_ui"><b><code>qt_wrap_ui</code></b></a></li>
    <li><a href="#command:remove_definitions"><b><code>remove_definitions</code></b></a></li>
    <li><a href="#command:return"><b><code>return</code></b></a></li>
    <li><a href="#command:separate_arguments"><b><code>separate_arguments</code></b></a></li>
    <li><a href="#command:set"><b><code>set</code></b></a></li>
    <li><a href="#command:set_directory_properties"><b><code>set_directory_properties</code></b></a></li>
    <li><a href="#command:set_property"><b><code>set_property</code></b></a></li>
    <li><a href="#command:set_source_files_properties"><b><code>set_source_files_properties</code></b></a></li>
    <li><a href="#command:set_target_properties"><b><code>set_target_properties</code></b></a></li>
    <li><a href="#command:set_tests_properties"><b><code>set_tests_properties</code></b></a></li>
    <li><a href="#command:site_name"><b><code>site_name</code></b></a></li>
    <li><a href="#command:source_group"><b><code>source_group</code></b></a></li>
    <li><a href="#command:string"><b><code>string</code></b></a></li>
    <li><a href="#command:target_compile_definitions"><b><code>target_compile_definitions</code></b></a></li>
    <li><a href="#command:target_compile_options"><b><code>target_compile_options</code></b></a></li>
    <li><a href="#command:target_include_directories"><b><code>target_include_directories</code></b></a></li>
    <li><a href="#command:target_link_libraries"><b><code>target_link_libraries</code></b></a></li>
    <li><a href="#command:try_compile"><b><code>try_compile</code></b></a></li>
    <li><a href="#command:try_run"><b><code>try_run</code></b></a></li>
    <li><a href="#command:unset"><b><code>unset</code></b></a></li>
    <li><a href="#command:variable_watch"><b><code>variable_watch</code></b></a></li>
    <li><a href="#command:while"><b><code>while</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="command:add_compile_options"></a><b><code>add_compile_options</code></b>: Adds options to the compilation of source files.<br />
    <pre>  add_compile_options(&lt;option&gt; ...)<br /></pre>
    <p>Adds options to the compiler command line for sources in the current directory and below.  This command can be used to add any options, but alternative commands exist to add preprocessor definitions or include directories.  See documentation of the directory and target COMPILE_OPTIONS properties for details.  Arguments to add_compile_options may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="command:add_custom_command"></a><b><code>add_custom_command</code></b>: Add a custom build rule to the generated build system.<br />
    <p>There are two main signatures for add_custom_command The first signature is for adding a custom command to produce an output.<br /></p>
<pre>  add_custom_command(OUTPUT output1 [output2 ...]<br />                     COMMAND command1 [ARGS] [args1...]<br />                     [COMMAND command2 [ARGS] [args2...] ...]<br />                     [MAIN_DEPENDENCY depend]<br />                     [DEPENDS [depends...]]<br />                     [IMPLICIT_DEPENDS &lt;lang1&gt; depend1<br />                                      [&lt;lang2&gt; depend2] ...]<br />                     [WORKING_DIRECTORY dir]<br />                     [COMMENT comment] [VERBATIM] [APPEND])<br /></pre>
    <p>This defines a command to generate specified OUTPUT file(s).  A target created in the same directory (CMakeLists.txt file) that specifies any output of the custom command as a source file is given a rule to generate the file using the command at build time.  Do not list the output in more than one independent target that may build in parallel or the two instances of the rule may conflict (instead use add_custom_target to drive the command and make the other targets depend on that one).  If an output name is a relative path it will be interpreted relative to the build tree directory corresponding to the current source directory. Note that MAIN_DEPENDENCY is completely optional and is used as a suggestion to visual studio about where to hang the custom command. In makefile terms this creates a new target in the following form:<br /></p>
<pre>  OUTPUT: MAIN_DEPENDENCY DEPENDS<br />          COMMAND<br /></pre>
    <p>If more than one command is specified they will be executed in order. The optional ARGS argument is for backward compatibility and will be ignored.<br /></p>
<p>The second signature adds a custom command to a target such as a library or executable. This is useful for performing an operation before or after building the target. The command becomes part of the target and will only execute when the target itself is built.  If the target is already built, the command will not execute.<br /></p>
<pre>  add_custom_command(TARGET target<br />                     PRE_BUILD | PRE_LINK | POST_BUILD<br />                     COMMAND command1 [ARGS] [args1...]<br />                     [COMMAND command2 [ARGS] [args2...] ...]<br />                     [WORKING_DIRECTORY dir]<br />                     [COMMENT comment] [VERBATIM])<br /></pre>
    <p>This defines a new command that will be associated with building the specified target. When the command will happen is determined by which of the following is specified:<br /></p>
<pre>  PRE_BUILD - run before all other dependencies<br />  PRE_LINK - run after other dependencies<br />  POST_BUILD - run after the target has been built<br /></pre>
    <p>Note that the PRE_BUILD option is only supported on Visual Studio 7 or later. For all other generators PRE_BUILD will be treated as PRE_LINK.<br /></p>
<p>If WORKING_DIRECTORY is specified the command will be executed in the directory given. If it is a relative path it will be interpreted relative to the build tree directory corresponding to the current source directory. If COMMENT is set, the value will be displayed as a message before the commands are executed at build time. If APPEND is specified the COMMAND and DEPENDS option values are appended to the custom command for the first output specified. There must have already been a previous call to this command with the same output. The COMMENT, WORKING_DIRECTORY, and MAIN_DEPENDENCY options are currently ignored when APPEND is given, but may be used in the future.<br /></p>
<p>If VERBATIM is given then all arguments to the commands will be escaped properly for the build tool so that the invoked command receives each argument unchanged.  Note that one level of escapes is still used by the CMake language processor before add_custom_command even sees the arguments. Use of VERBATIM is recommended as it enables correct behavior. When VERBATIM is not given the behavior is platform specific because there is no protection of tool-specific special characters.<br /></p>
<p>If the output of the custom command is not actually created as a file on disk it should be marked as SYMBOLIC with SET_SOURCE_FILES_PROPERTIES.<br /></p>
<p>The IMPLICIT_DEPENDS option requests scanning of implicit dependencies of an input file.  The language given specifies the programming language whose corresponding dependency scanner should be used.  Currently only C and CXX language scanners are supported. The language has to be specified for every file in the IMPLICIT_DEPENDS list. Dependencies discovered from the scanning are added to those of the custom command at build time.  Note that the IMPLICIT_DEPENDS option is currently supported only for Makefile generators and will be ignored by other generators.<br /></p>
<p>If COMMAND specifies an executable target (created by ADD_EXECUTABLE) it will automatically be replaced by the location of the executable created at build time.  Additionally a target-level dependency will be added so that the executable target will be built before any target using this custom command.  However this does NOT add a file-level dependency that would cause the custom command to re-run whenever the executable is recompiled.<br /></p>
<p>Arguments to COMMAND may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    <p>References to target names in generator expressions imply target-level dependencies, but NOT file-level dependencies.  List target names with the DEPENDS option to add file dependencies.<br /></p>
<p>The DEPENDS option specifies files on which the command depends.  If any dependency is an OUTPUT of another custom command in the same directory (CMakeLists.txt file) CMake automatically brings the other custom command into the target in which this command is built.  If DEPENDS is not specified the command will run whenever the OUTPUT is missing; if the command does not actually create the OUTPUT then the rule will always run.  If DEPENDS specifies any target (created by an ADD_* command) a target-level dependency is created to make sure the target is built before any target using this custom command.  Additionally, if the target is an executable or library a file-level dependency is created to cause the custom command to re-run whenever the target is recompiled.<br /></p>

  </li>
  <li>
    <a name="command:add_custom_target"></a><b><code>add_custom_target</code></b>: Add a target with no output so it will always be built.<br />
    <pre>  add_custom_target(Name [ALL] [command1 [args1...]]<br />                    [COMMAND command2 [args2...] ...]<br />                    [DEPENDS depend depend depend ... ]<br />                    [WORKING_DIRECTORY dir]<br />                    [COMMENT comment] [VERBATIM]<br />                    [SOURCES src1 [src2...]])<br /></pre>
    <p>Adds a target with the given name that executes the given commands. The target has no output file and is ALWAYS CONSIDERED OUT OF DATE even if the commands try to create a file with the name of the target. Use ADD_CUSTOM_COMMAND to generate a file with dependencies. By default nothing depends on the custom target. Use ADD_DEPENDENCIES to add dependencies to or from other targets. If the ALL option is specified it indicates that this target should be added to the default build target so that it will be run every time (the command cannot be called ALL). The command and arguments are optional and if not specified an empty target will be created. If WORKING_DIRECTORY is set, then the command will be run in that directory. If it is a relative path it will be interpreted relative to the build tree directory corresponding to the current source directory. If COMMENT is set, the value will be displayed as a message before the commands are executed at build time. Dependencies listed with the DEPENDS argument may reference files and outputs of custom commands created with add_custom_command() in the same directory (CMakeLists.txt file).<br /></p>
<p>If VERBATIM is given then all arguments to the commands will be escaped properly for the build tool so that the invoked command receives each argument unchanged.  Note that one level of escapes is still used by the CMake language processor before add_custom_target even sees the arguments. Use of VERBATIM is recommended as it enables correct behavior. When VERBATIM is not given the behavior is platform specific because there is no protection of tool-specific special characters.<br /></p>
<p>The SOURCES option specifies additional source files to be included in the custom target.  Specified source files will be added to IDE project files for convenience in editing even if they have not build rules.</p>

  </li>
  <li>
    <a name="command:add_definitions"></a><b><code>add_definitions</code></b>: Adds -D define flags to the compilation of source files.<br />
    <pre>  add_definitions(-DFOO -DBAR ...)<br /></pre>
    <p>Adds flags to the compiler command line for sources in the current directory and below.  This command can be used to add any flags, but it was originally intended to add preprocessor definitions.  Flags beginning in -D or /D that look like preprocessor definitions are automatically added to the COMPILE_DEFINITIONS property for the current directory.  Definitions with non-trivial values may be left in the set of flags instead of being converted for reasons of backwards compatibility.  See documentation of the directory, target, and source file COMPILE_DEFINITIONS properties for details on adding preprocessor definitions to specific scopes and configurations.</p>

  </li>
  <li>
    <a name="command:add_dependencies"></a><b><code>add_dependencies</code></b>: Add a dependency between top-level targets.<br />
    <pre>  add_dependencies(target-name depend-target1<br />                   depend-target2 ...)<br /></pre>
    <p>Make a top-level target depend on other top-level targets.  A top-level target is one created by ADD_EXECUTABLE, ADD_LIBRARY, or ADD_CUSTOM_TARGET.  Adding dependencies with this command can be used to make sure one target is built before another target.  Dependencies added to an IMPORTED target are followed transitively in its place since the target itself does not build.  See the DEPENDS option of ADD_CUSTOM_TARGET and ADD_CUSTOM_COMMAND for adding file-level dependencies in custom rules.  See the OBJECT_DEPENDS option in SET_SOURCE_FILES_PROPERTIES to add file-level dependencies to object files.</p>

  </li>
  <li>
    <a name="command:add_executable"></a><b><code>add_executable</code></b>: Add an executable to the project using the specified source files.<br />
    <pre>  add_executable(&lt;name&gt; [WIN32] [MACOSX_BUNDLE]<br />                 [EXCLUDE_FROM_ALL]<br />                 source1 source2 ... sourceN)<br /></pre>
    <p>Adds an executable target called &lt;name&gt; to be built from the source files listed in the command invocation.  The &lt;name&gt; corresponds to the logical target name and must be globally unique within a project.  The actual file name of the executable built is constructed based on conventions of the native platform (such as &lt;name&gt;.exe or just &lt;name&gt;).  <br /></p>
<p>By default the executable file will be created in the build tree directory corresponding to the source tree directory in which the command was invoked.  See documentation of the RUNTIME_OUTPUT_DIRECTORY target property to change this location.  See documentation of the OUTPUT_NAME target property to change the &lt;name&gt; part of the final file name.  <br /></p>
<p>If WIN32 is given the property WIN32_EXECUTABLE will be set on the target created.  See documentation of that target property for details.<br /></p>
<p>If MACOSX_BUNDLE is given the corresponding property will be set on the created target.  See documentation of the MACOSX_BUNDLE target property for details.<br /></p>
<p>If EXCLUDE_FROM_ALL is given the corresponding property will be set on the created target.  See documentation of the EXCLUDE_FROM_ALL target property for details.<br /></p>
<p>The add_executable command can also create IMPORTED executable targets using this signature:<br /></p>
<pre>  add_executable(&lt;name&gt; IMPORTED [GLOBAL])<br /></pre>
    <p>An IMPORTED executable target references an executable file located outside the project.  No rules are generated to build it.  The target name has scope in the directory in which it is created and below, but the GLOBAL option extends visibility.  It may be referenced like any target built within the project.  IMPORTED executables are useful for convenient reference from commands like add_custom_command.  Details about the imported executable are specified by setting properties whose names begin in "IMPORTED_".  The most important such property is IMPORTED_LOCATION (and its per-configuration version IMPORTED_LOCATION_&lt;CONFIG&gt;) which specifies the location of the main executable file on disk.  See documentation of the IMPORTED_* properties for more information.<br /></p>
<p>The signature<br /></p>
<pre>  add_executable(&lt;name&gt; ALIAS &lt;target&gt;)<br /></pre>
    <p>creates an alias, such that &lt;name&gt; can be used to refer to &lt;target&gt; in subsequent commands.  The &lt;name&gt; does not appear in the generated buildsystem as a make target.  The &lt;target&gt; may not be an IMPORTED target or an ALIAS.  Alias targets can be used as linkable targets, targets to read properties from, executables for custom commands and custom targets.  They can also be tested for existance with the regular if(TARGET) subcommand.  The &lt;name&gt; may not be used to modify properties of &lt;target&gt;, that is, it may not be used as the operand of set_property, set_target_properties, target_link_libraries etc.  An ALIAS target may not be installed of exported.</p>

  </li>
  <li>
    <a name="command:add_library"></a><b><code>add_library</code></b>: Add a library to the project using the specified source files.<br />
    <pre>  add_library(&lt;name&gt; [STATIC | SHARED | MODULE]<br />              [EXCLUDE_FROM_ALL]<br />              source1 source2 ... sourceN)<br /></pre>
    <p>Adds a library target called &lt;name&gt; to be built from the source files listed in the command invocation.  The &lt;name&gt; corresponds to the logical target name and must be globally unique within a project.  The actual file name of the library built is constructed based on conventions of the native platform (such as lib&lt;name&gt;.a or &lt;name&gt;.lib).<br /></p>
<p>STATIC, SHARED, or MODULE may be given to specify the type of library to be created.  STATIC libraries are archives of object files for use when linking other targets.  SHARED libraries are linked dynamically and loaded at runtime.  MODULE libraries are plugins that are not linked into other targets but may be loaded dynamically at runtime using dlopen-like functionality.  If no type is given explicitly the type is STATIC or SHARED based on whether the current value of the variable BUILD_SHARED_LIBS is true.  For SHARED and MODULE libraries the POSITION_INDEPENDENT_CODE target property is set to TRUE automatically.<br /></p>
<p>By default the library file will be created in the build tree directory corresponding to the source tree directory in which the command was invoked.  See documentation of the ARCHIVE_OUTPUT_DIRECTORY, LIBRARY_OUTPUT_DIRECTORY, and RUNTIME_OUTPUT_DIRECTORY target properties to change this location.  See documentation of the OUTPUT_NAME target property to change the &lt;name&gt; part of the final file name.  <br /></p>
<p>If EXCLUDE_FROM_ALL is given the corresponding property will be set on the created target.  See documentation of the EXCLUDE_FROM_ALL target property for details.<br /></p>
<p>The add_library command can also create IMPORTED library targets using this signature:<br /></p>
<pre>  add_library(&lt;name&gt; &lt;SHARED|STATIC|MODULE|UNKNOWN&gt; IMPORTED<br />              [GLOBAL])<br /></pre>
    <p>An IMPORTED library target references a library file located outside the project.  No rules are generated to build it.  The target name has scope in the directory in which it is created and below, but the GLOBAL option extends visibility.  It may be referenced like any target built within the project.  IMPORTED libraries are useful for convenient reference from commands like target_link_libraries.  Details about the imported library are specified by setting properties whose names begin in "IMPORTED_".  The most important such property is IMPORTED_LOCATION (and its per-configuration version IMPORTED_LOCATION_&lt;CONFIG&gt;) which specifies the location of the main library file on disk.  See documentation of the IMPORTED_* properties for more information.<br /></p>
<p>The signature<br /></p>
<pre>  add_library(&lt;name&gt; OBJECT &lt;src&gt;...)<br /></pre>
    <p>creates a special "object library" target.  An object library compiles source files but does not archive or link their object files into a library.  Instead other targets created by add_library or add_executable may reference the objects using an expression of the form $&lt;TARGET_OBJECTS:objlib&gt; as a source, where "objlib" is the object library name.  For example:<br /></p>
<pre>  add_library(... $&lt;TARGET_OBJECTS:objlib&gt; ...)<br />  add_executable(... $&lt;TARGET_OBJECTS:objlib&gt; ...)<br /></pre>
    <p>will include objlib's object files in a library and an executable along with those compiled from their own sources.  Object libraries may contain only sources (and headers) that compile to object files.  They may contain custom commands generating such sources, but not PRE_BUILD, PRE_LINK, or POST_BUILD commands.  Object libraries cannot be imported, exported, installed, or linked.  Some native build systems may not like targets that have only object files, so consider adding at least one real source file to any target that references $&lt;TARGET_OBJECTS:objlib&gt;.<br /></p>
<p>The signature<br /></p>
<pre>  add_library(&lt;name&gt; ALIAS &lt;target&gt;)<br /></pre>
    <p>creates an alias, such that &lt;name&gt; can be used to refer to &lt;target&gt; in subsequent commands.  The &lt;name&gt; does not appear in the generated buildsystem as a make target.  The &lt;target&gt; may not be an IMPORTED target or an ALIAS.  Alias targets can be used as linkable targets, targets to read properties from.  They can also be tested for existance with the regular if(TARGET) subcommand.  The &lt;name&gt; may not be used to modify properties of &lt;target&gt;, that is, it may not be used as the operand of set_property, set_target_properties, target_link_libraries etc.  An ALIAS target may not be installed of exported.</p>

  </li>
  <li>
    <a name="command:add_subdirectory"></a><b><code>add_subdirectory</code></b>: Add a subdirectory to the build.<br />
    <pre>  add_subdirectory(source_dir [binary_dir] <br />                   [EXCLUDE_FROM_ALL])<br /></pre>
    <p>Add a subdirectory to the build. The source_dir specifies the directory in which the source CMakeLists.txt and code files are located. If it is a relative path it will be evaluated with respect to the current directory (the typical usage), but it may also be an absolute path. The binary_dir specifies the directory in which to place the output files. If it is a relative path it will be evaluated with respect to the current output directory, but it may also be an absolute path. If binary_dir is not specified, the value of source_dir, before expanding any relative path, will be used (the typical usage). The CMakeLists.txt file in the specified source directory will be processed immediately by CMake before processing in the current input file continues beyond this command.<br /></p>
<p>If the EXCLUDE_FROM_ALL argument is provided then targets in the subdirectory will not be included in the ALL target of the parent directory by default, and will be excluded from IDE project files.  Users must explicitly build targets in the subdirectory.  This is meant for use when the subdirectory contains a separate part of the project that is useful but not necessary, such as a set of examples.  Typically the subdirectory should contain its own project() command invocation so that a full build system will be generated in the subdirectory (such as a VS IDE solution file).  Note that inter-target dependencies supercede this exclusion.  If a target built by the parent project depends on a target in the subdirectory, the dependee target will be included in the parent project build system to satisfy the dependency.</p>

  </li>
  <li>
    <a name="command:add_test"></a><b><code>add_test</code></b>: Add a test to the project with the specified arguments.<br />
    <pre>  add_test(testname Exename arg1 arg2 ... )<br /></pre>
    <p>If the ENABLE_TESTING command has been run, this command adds a test target to the current directory. If ENABLE_TESTING has not been run, this command does nothing.  The tests are run by the testing subsystem by executing Exename with the specified arguments.  Exename can be either an executable built by this project or an arbitrary executable on the system (like tclsh).  The test will be run with the current working directory set to the CMakeList.txt files corresponding directory in the binary tree.<br /></p>
<p><br /></p>
<pre>  add_test(NAME &lt;name&gt; [CONFIGURATIONS [Debug|Release|...]]<br />           [WORKING_DIRECTORY dir]<br />           COMMAND &lt;command&gt; [arg1 [arg2 ...]])<br /></pre>
    <p>Add a test called &lt;name&gt;.  The test name may not contain spaces, quotes, or other characters special in CMake syntax.  If COMMAND specifies an executable target (created by add_executable) it will automatically be replaced by the location of the executable created at build time.  If a CONFIGURATIONS option is given then the test will be executed only when testing under one of the named configurations.  If a WORKING_DIRECTORY option is given then the test will be executed in the given directory.<br /></p>
<p>Arguments after COMMAND may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Example usage:<br /></p>
<pre>  add_test(NAME mytest<br />           COMMAND testDriver --config $&lt;CONFIGURATION&gt;<br />                              --exe $&lt;TARGET_FILE:myexe&gt;)<br /></pre>
    <p>This creates a test "mytest" whose command runs a testDriver tool passing the configuration name and the full path to the executable file produced by target "myexe".</p>

  </li>
  <li>
    <a name="command:aux_source_directory"></a><b><code>aux_source_directory</code></b>: Find all source files in a directory.<br />
    <pre>  aux_source_directory(&lt;dir&gt; &lt;variable&gt;)<br /></pre>
    <p>Collects the names of all the source files in the specified directory and stores the list in the &lt;variable&gt; provided.  This command is intended to be used by projects that use explicit template instantiation.  Template instantiation files can be stored in a "Templates" subdirectory and collected automatically using this command to avoid manually listing all instantiations.<br /></p>
<p>It is tempting to use this command to avoid writing the list of source files for a library or executable target.  While this seems to work, there is no way for CMake to generate a build system that knows when a new source file has been added.  Normally the generated build system knows when it needs to rerun CMake because the CMakeLists.txt file is modified to add a new source.  When the source is just added to the directory without modifying this file, one would have to manually rerun CMake to generate a build system incorporating the new file.</p>

  </li>
  <li>
    <a name="command:break"></a><b><code>break</code></b>: Break from an enclosing foreach or while loop.<br />
    <pre>  break()<br /></pre>
    <p>Breaks from an enclosing foreach loop or while loop</p>

  </li>
  <li>
    <a name="command:build_command"></a><b><code>build_command</code></b>: Get the command line to build this project.<br />
    <pre>  build_command(&lt;variable&gt;<br />                [CONFIGURATION &lt;config&gt;]<br />                [PROJECT_NAME &lt;projname&gt;]<br />                [TARGET &lt;target&gt;])<br /></pre>
    <p>Sets the given &lt;variable&gt; to a string containing the command line for building one configuration of a target in a project using the build tool appropriate for the current CMAKE_GENERATOR.<br /></p>
<p>If CONFIGURATION is omitted, CMake chooses a reasonable default value  for multi-configuration generators.  CONFIGURATION is ignored for single-configuration generators.<br /></p>
<p>If PROJECT_NAME is omitted, the resulting command line will build the top level PROJECT in the current build tree.<br /></p>
<p>If TARGET is omitted, the resulting command line will build everything, effectively using build target 'all' or 'ALL_BUILD'.<br /></p>
<pre>  build_command(&lt;cachevariable&gt; &lt;makecommand&gt;)<br /></pre>
    <p>This second signature is deprecated, but still available for backwards compatibility. Use the first signature instead.<br /></p>
<p>Sets the given &lt;cachevariable&gt; to a string containing the command to build this project from the root of the build tree using the build tool given by &lt;makecommand&gt;.  &lt;makecommand&gt; should be the full path to msdev, devenv, nmake, make or one of the end user build tools.</p>

  </li>
  <li>
    <a name="command:cmake_host_system_information"></a><b><code>cmake_host_system_information</code></b>: Query host system specific information.<br />
    <pre>  cmake_host_system_information(RESULT &lt;variable&gt; QUERY &lt;key&gt; ...)<br /></pre>
    <p>Queries system information of the host system on which cmake runs. One or more &lt;key&gt; can be provided to select the information to be queried. The list of queried values is stored in &lt;variable&gt;.<br /></p>
<p>&lt;key&gt; can be one of the following values:<br /></p>
<pre>  NUMBER_OF_LOGICAL_CORES   = Number of logical cores.<br />  NUMBER_OF_PHYSICAL_CORES  = Number of physical cores.<br />  HOSTNAME                  = Hostname.<br />  FQDN                      = Fully qualified domain name.<br />  TOTAL_VIRTUAL_MEMORY      = Total virtual memory in megabytes.<br />  AVAILABLE_VIRTUAL_MEMORY  = Available virtual memory in megabytes.<br />  TOTAL_PHYSICAL_MEMORY     = Total physical memory in megabytes.<br />  AVAILABLE_PHYSICAL_MEMORY = Available physical memory in megabytes.<br /></pre>
    
  </li>
  <li>
    <a name="command:cmake_minimum_required"></a><b><code>cmake_minimum_required</code></b>: Set the minimum required version of cmake for a project.<br />
    <pre>  cmake_minimum_required(VERSION major[.minor[.patch[.tweak]]]<br />                         [FATAL_ERROR])<br /></pre>
    <p>If the current version of CMake is lower than that required it will stop processing the project and report an error.  When a version higher than 2.4 is specified the command implicitly invokes<br /></p>
<pre>  cmake_policy(VERSION major[.minor[.patch[.tweak]]])<br /></pre>
    <p>which sets the cmake policy version level to the version specified.  When version 2.4 or lower is given the command implicitly invokes<br /></p>
<pre>  cmake_policy(VERSION 2.4)<br /></pre>
    <p>which enables compatibility features for CMake 2.4 and lower.<br /></p>
<p>The FATAL_ERROR option is accepted but ignored by CMake 2.6 and higher.  It should be specified so CMake versions 2.4 and lower fail with an error instead of just a warning.</p>

  </li>
  <li>
    <a name="command:cmake_policy"></a><b><code>cmake_policy</code></b>: Manage CMake Policy settings.<br />
    <p>As CMake evolves it is sometimes necessary to change existing behavior in order to fix bugs or improve implementations of existing features.  The CMake Policy mechanism is designed to help keep existing projects building as new versions of CMake introduce changes in behavior.  Each new policy (behavioral change) is given an identifier of the form "CMP&lt;NNNN&gt;" where "&lt;NNNN&gt;" is an integer index.  Documentation associated with each policy describes the OLD and NEW behavior and the reason the policy was introduced.  Projects may set each policy to select the desired behavior.  When CMake needs to know which behavior to use it checks for a setting specified by the project.  If no setting is available the OLD behavior is assumed and a warning is produced requesting that the policy be set.<br /></p>
<p>The cmake_policy command is used to set policies to OLD or NEW behavior.  While setting policies individually is supported, we encourage projects to set policies based on CMake versions.<br /></p>
<pre>  cmake_policy(VERSION major.minor[.patch[.tweak]])<br /></pre>
    <p>Specify that the current CMake list file is written for the given version of CMake.  All policies introduced in the specified version or earlier will be set to use NEW behavior.  All policies introduced after the specified version will be unset (unless variable CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt; sets a default).  This effectively requests behavior preferred as of a given CMake version and tells newer CMake versions to warn about their new policies.  The policy version specified must be at least 2.4 or the command will report an error.  In order to get compatibility features supporting versions earlier than 2.4 see documentation of policy CMP0001.<br /></p>
<pre>  cmake_policy(SET CMP&lt;NNNN&gt; NEW)<br />  cmake_policy(SET CMP&lt;NNNN&gt; OLD)<br /></pre>
    <p>Tell CMake to use the OLD or NEW behavior for a given policy.  Projects depending on the old behavior of a given policy may silence a policy warning by setting the policy state to OLD.  Alternatively one may fix the project to work with the new behavior and set the policy state to NEW.<br /></p>
<pre>  cmake_policy(GET CMP&lt;NNNN&gt; &lt;variable&gt;)<br /></pre>
    <p>Check whether a given policy is set to OLD or NEW behavior.  The output variable value will be "OLD" or "NEW" if the policy is set, and empty otherwise.<br /></p>
<p>CMake keeps policy settings on a stack, so changes made by the cmake_policy command affect only the top of the stack.  A new entry on the policy stack is managed automatically for each subdirectory to protect its parents and siblings.  CMake also manages a new entry for scripts loaded by include() and find_package() commands except when invoked with the NO_POLICY_SCOPE option (see also policy CMP0011).  The cmake_policy command provides an interface to manage custom entries on the policy stack:<br /></p>
<pre>  cmake_policy(PUSH)<br />  cmake_policy(POP)<br /></pre>
    <p>Each PUSH must have a matching POP to erase any changes.  This is useful to make temporary changes to policy settings.<br /></p>
<p>Functions and macros record policy settings when they are created and use the pre-record policies when they are invoked.  If the function or macro implementation sets policies, the changes automatically propagate up through callers until they reach the closest nested policy stack entry.</p>

  </li>
  <li>
    <a name="command:configure_file"></a><b><code>configure_file</code></b>: Copy a file to another location and modify its contents.<br />
    <pre>  configure_file(&lt;input&gt; &lt;output&gt;<br />                 [COPYONLY] [ESCAPE_QUOTES] [@ONLY] <br />                 [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])<br /></pre>
    <p>Copies a file &lt;input&gt; to file &lt;output&gt; and substitutes variable values referenced in the file content.  If &lt;input&gt; is a relative path it is evaluated with respect to the current source directory.  The &lt;input&gt; must be a file, not a directory.  If &lt;output&gt; is a relative path it is evaluated with respect to the current binary directory.  If &lt;output&gt; names an existing directory the input file is placed in that directory with its original name.  <br /></p>
<p>If the &lt;input&gt; file is modified the build system will re-run CMake to re-configure the file and generate the build system again.<br /></p>
<p>This command replaces any variables in the input file referenced as ${VAR} or @VAR@ with their values as determined by CMake.  If a variable is not defined, it will be replaced with nothing.  If COPYONLY is specified, then no variable expansion will take place.  If ESCAPE_QUOTES is specified then any substituted quotes will be C-style escaped.  The file will be configured with the current values of CMake variables. If @ONLY is specified, only variables of the form @VAR@ will be replaced and ${VAR} will be ignored.  This is useful for configuring scripts that use ${VAR}.<br /></p>
<p>Input file lines of the form "#cmakedefine VAR ..." will be replaced with either "#define VAR ..." or "/* #undef VAR */" depending on whether VAR is set in CMake to any value not considered a false constant by the if() command. (Content of "...", if any, is processed as above.) Input file lines of the form "#cmakedefine01 VAR" will be replaced with either "#define VAR 1" or "#define VAR 0" similarly.<br /></p>
<p>With NEWLINE_STYLE the line ending could be adjusted: <br /></p>
<pre>    'UNIX' or 'LF' for \n, 'DOS', 'WIN32' or 'CRLF' for \r\n.<br /></pre>
    <p>COPYONLY must not be used with NEWLINE_STYLE.<br /></p>

  </li>
  <li>
    <a name="command:create_test_sourcelist"></a><b><code>create_test_sourcelist</code></b>: Create a test driver and source list for building test programs.<br />
    <pre>  create_test_sourcelist(sourceListName driverName<br />                         test1 test2 test3<br />                         EXTRA_INCLUDE include.h<br />                         FUNCTION function)<br /></pre>
    <p>A test driver is a program that links together many small tests into a single executable.  This is useful when building static executables with large libraries to shrink the total required size.  The list of source files needed to build the test driver will be in sourceListName.  DriverName is the name of the test driver program.  The rest of the arguments consist of a list of test source files, can be semicolon separated.  Each test source file should have a function in it that is the same name as the file with no extension (foo.cxx should have int foo(int, char*[]);) DriverName will be able to call each of the tests by name on the command line. If EXTRA_INCLUDE is specified, then the next argument is included into the generated file. If FUNCTION is specified, then the next argument is taken as a function name that is passed a pointer to ac and av.  This can be used to add extra command line processing to each test. The cmake variable CMAKE_TESTDRIVER_BEFORE_TESTMAIN can be set to have code that will be placed directly before calling the test main function.   CMAKE_TESTDRIVER_AFTER_TESTMAIN can be set to have code that will be placed directly after the call to the test main function.</p>

  </li>
  <li>
    <a name="command:define_property"></a><b><code>define_property</code></b>: Define and document custom properties.<br />
    <pre>  define_property(&lt;GLOBAL | DIRECTORY | TARGET | SOURCE |<br />                   TEST | VARIABLE | CACHED_VARIABLE&gt;<br />                   PROPERTY &lt;name&gt; [INHERITED]<br />                   BRIEF_DOCS &lt;brief-doc&gt; [docs...]<br />                   FULL_DOCS &lt;full-doc&gt; [docs...])<br /></pre>
    <p>Define one property in a scope for use with the set_property and get_property commands.  This is primarily useful to associate documentation with property names that may be retrieved with the get_property command.  The first argument determines the kind of scope in which the property should be used.  It must be one of the following:<br /></p>
<pre>  GLOBAL    = associated with the global namespace<br />  DIRECTORY = associated with one directory<br />  TARGET    = associated with one target<br />  SOURCE    = associated with one source file<br />  TEST      = associated with a test named with add_test<br />  VARIABLE  = documents a CMake language variable<br />  CACHED_VARIABLE = documents a CMake cache variable<br /></pre>
    <p>Note that unlike set_property and get_property no actual scope needs to be given; only the kind of scope is important.<br /></p>
<p>The required PROPERTY option is immediately followed by the name of the property being defined.<br /></p>
<p>If the INHERITED option then the get_property command will chain up to the next higher scope when the requested property is not set in the scope given to the command.  DIRECTORY scope chains to GLOBAL.  TARGET, SOURCE, and TEST chain to DIRECTORY.<br /></p>
<p>The BRIEF_DOCS and FULL_DOCS options are followed by strings to be associated with the property as its brief and full documentation.  Corresponding options to the get_property command will retrieve the documentation.</p>

  </li>
  <li>
    <a name="command:else"></a><b><code>else</code></b>: Starts the else portion of an if block.<br />
    <pre>  else(expression)<br /></pre>
    <p>See the if command.</p>

  </li>
  <li>
    <a name="command:elseif"></a><b><code>elseif</code></b>: Starts the elseif portion of an if block.<br />
    <pre>  elseif(expression)<br /></pre>
    <p>See the if command.</p>

  </li>
  <li>
    <a name="command:enable_language"></a><b><code>enable_language</code></b>: Enable a language (CXX/C/Fortran/etc)<br />
    <pre>  enable_language(&lt;lang&gt; [OPTIONAL] )<br /></pre>
    <p>This command enables support for the named language in CMake. This is the same as the project command but does not create any of the extra variables that are created by the project command. Example languages are CXX, C, Fortran. <br /></p>
<p>This command must be called in file scope, not in a function call.  Furthermore, it must be called in the highest directory common to all targets using the named language directly for compiling sources or indirectly through link dependencies.  It is simplest to enable all needed languages in the top-level directory of a project.<br /></p>
<p>The OPTIONAL keyword is a placeholder for future implementation and does not currently work.</p>

  </li>
  <li>
    <a name="command:enable_testing"></a><b><code>enable_testing</code></b>: Enable testing for current directory and below.<br />
    <pre>  enable_testing()<br /></pre>
    <p>Enables testing for this directory and below.  See also the add_test command.  Note that ctest expects to find a test file in the build directory root.  Therefore, this command should be in the source directory root.</p>

  </li>
  <li>
    <a name="command:endforeach"></a><b><code>endforeach</code></b>: Ends a list of commands in a FOREACH block.<br />
    <pre>  endforeach(expression)<br /></pre>
    <p>See the FOREACH command.</p>

  </li>
  <li>
    <a name="command:endfunction"></a><b><code>endfunction</code></b>: Ends a list of commands in a function block.<br />
    <pre>  endfunction(expression)<br /></pre>
    <p>See the function command.</p>

  </li>
  <li>
    <a name="command:endif"></a><b><code>endif</code></b>: Ends a list of commands in an if block.<br />
    <pre>  endif(expression)<br /></pre>
    <p>See the if command.</p>

  </li>
  <li>
    <a name="command:endmacro"></a><b><code>endmacro</code></b>: Ends a list of commands in a macro block.<br />
    <pre>  endmacro(expression)<br /></pre>
    <p>See the macro command.</p>

  </li>
  <li>
    <a name="command:endwhile"></a><b><code>endwhile</code></b>: Ends a list of commands in a while block.<br />
    <pre>  endwhile(expression)<br /></pre>
    <p>See the while command.</p>

  </li>
  <li>
    <a name="command:execute_process"></a><b><code>execute_process</code></b>: Execute one or more child processes.<br />
    <pre>  execute_process(COMMAND &lt;cmd1&gt; [args1...]]<br />                  [COMMAND &lt;cmd2&gt; [args2...] [...]]<br />                  [WORKING_DIRECTORY &lt;directory&gt;]<br />                  [TIMEOUT &lt;seconds&gt;]<br />                  [RESULT_VARIABLE &lt;variable&gt;]<br />                  [OUTPUT_VARIABLE &lt;variable&gt;]<br />                  [ERROR_VARIABLE &lt;variable&gt;]<br />                  [INPUT_FILE &lt;file&gt;]<br />                  [OUTPUT_FILE &lt;file&gt;]<br />                  [ERROR_FILE &lt;file&gt;]<br />                  [OUTPUT_QUIET]<br />                  [ERROR_QUIET]<br />                  [OUTPUT_STRIP_TRAILING_WHITESPACE]<br />                  [ERROR_STRIP_TRAILING_WHITESPACE])<br /></pre>
    <p>Runs the given sequence of one or more commands with the standard output of each process piped to the standard input of the next.  A single standard error pipe is used for all processes.  If WORKING_DIRECTORY is given the named directory will be set as the current working directory of the child processes.  If TIMEOUT is given the child processes will be terminated if they do not finish in the specified number of seconds (fractions are allowed).  If RESULT_VARIABLE is given the variable will be set to contain the result of running the processes.  This will be an integer return code from the last child or a string describing an error condition.  If OUTPUT_VARIABLE or ERROR_VARIABLE are given the variable named will be set with the contents of the standard output and standard error pipes respectively.  If the same variable is named for both pipes their output will be merged in the order produced.  If INPUT_FILE, OUTPUT_FILE, or ERROR_FILE is given the file named will be attached to the standard input of the first process, standard output of the last process, or standard error of all processes respectively.  If OUTPUT_QUIET or ERROR_QUIET is given then the standard output or standard error results will be quietly ignored.  If more than one OUTPUT_* or ERROR_* option is given for the same pipe the precedence is not specified.  If no OUTPUT_* or ERROR_* options are given the output will be shared with the corresponding pipes of the CMake process itself.<br /></p>
<p>The execute_process command is a newer more powerful version of exec_program, but the old command has been kept for compatibility.</p>

  </li>
  <li>
    <a name="command:export"></a><b><code>export</code></b>: Export targets from the build tree for use by outside projects.<br />
    <pre>  export(TARGETS [target1 [target2 [...]]] [NAMESPACE &lt;namespace&gt;]<br />         [APPEND] FILE &lt;filename&gt; [EXPORT_LINK_INTERFACE_LIBRARIES])<br /></pre>
    <p>Create a file &lt;filename&gt; that may be included by outside projects to import targets from the current project's build tree.  This is useful during cross-compiling to build utility executables that can run on the host platform in one project and then import them into another project being compiled for the target platform.  If the NAMESPACE option is given the &lt;namespace&gt; string will be prepended to all target names written to the file.  If the APPEND option is given the generated code will be appended to the file instead of overwriting it.  The EXPORT_LINK_INTERFACE_LIBRARIES keyword, if present, causes the contents of the properties matching (IMPORTED_)?LINK_INTERFACE_LIBRARIES(_&lt;CONFIG&gt;)? to be exported, when policy CMP0022 is NEW.  If a library target is included in the export but a target to which it links is not included the behavior is unspecified.<br /></p>
<p>The file created by this command is specific to the build tree and should never be installed.  See the install(EXPORT) command to export targets from an installation tree.<br /></p>
<p>Do not set properties that affect the location of a target after passing it to this command.  These include properties whose names match "(RUNTIME|LIBRARY|ARCHIVE)_OUTPUT_(NAME|DIRECTORY)(_&lt;CONFIG&gt;)?", "(IMPLIB_)?(PREFIX|SUFFIX)", or "LINKER_LANGUAGE".  Failure to follow this rule is not diagnosed and leaves the location of the target undefined.<br /></p>
<pre>  export(PACKAGE &lt;name&gt;)<br /></pre>
    <p>Store the current build directory in the CMake user package registry for package &lt;name&gt;.  The find_package command may consider the directory while searching for package &lt;name&gt;.  This helps dependent projects find and use a package from the current project's build tree without help from the user.  Note that the entry in the package registry that this command creates works only in conjunction with a package configuration file (&lt;name&gt;Config.cmake) that works with the build tree.</p>

  </li>
  <li>
    <a name="command:file"></a><b><code>file</code></b>: File manipulation command.<br />
    <pre>  file(WRITE filename "message to write"... )<br />  file(APPEND filename "message to write"... )<br />  file(READ filename variable [LIMIT numBytes] [OFFSET offset] [HEX])<br />  file(&lt;MD5|SHA1|SHA224|SHA256|SHA384|SHA512&gt; filename variable)<br />  file(STRINGS filename variable [LIMIT_COUNT num]<br />       [LIMIT_INPUT numBytes] [LIMIT_OUTPUT numBytes]<br />       [LENGTH_MINIMUM numBytes] [LENGTH_MAXIMUM numBytes]<br />       [NEWLINE_CONSUME] [REGEX regex]<br />       [NO_HEX_CONVERSION])<br />  file(GLOB variable [RELATIVE path] [globbing expressions]...)<br />  file(GLOB_RECURSE variable [RELATIVE path] <br />       [FOLLOW_SYMLINKS] [globbing expressions]...)<br />  file(RENAME &lt;oldname&gt; &lt;newname&gt;)<br />  file(REMOVE [file1 ...])<br />  file(REMOVE_RECURSE [file1 ...])<br />  file(MAKE_DIRECTORY [directory1 directory2 ...])<br />  file(RELATIVE_PATH variable directory file)<br />  file(TO_CMAKE_PATH path result)<br />  file(TO_NATIVE_PATH path result)<br />  file(DOWNLOAD url file [INACTIVITY_TIMEOUT timeout]<br />       [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS]<br />       [EXPECTED_HASH ALGO=value] [EXPECTED_MD5 sum]<br />       [TLS_VERIFY on|off] [TLS_CAINFO file])<br />  file(UPLOAD filename url [INACTIVITY_TIMEOUT timeout]<br />       [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS])<br />  file(TIMESTAMP filename variable [&lt;format string&gt;] [UTC])<br />  file(GENERATE OUTPUT output_file<br />       &lt;INPUT input_file|CONTENT input_content&gt;<br />       [CONDITION expression])<br /></pre>
    <p>WRITE will write a message into a file called 'filename'. It overwrites the file if it already exists, and creates the file if it does not exist. (If the file is a build input, use configure_file to update the file only when its content changes.)<br /></p>
<p>APPEND will write a message into a file same as WRITE, except it will append it to the end of the file<br /></p>
<p>READ will read the content of a file and store it into the variable. It will start at the given offset and read up to numBytes. If the argument HEX is given, the binary data will be converted to hexadecimal representation and this will be stored in the variable.<br /></p>
<p>MD5, SHA1, SHA224, SHA256, SHA384, and SHA512 will compute a cryptographic hash of the content of a file.<br /></p>
<p>STRINGS will parse a list of ASCII strings from a file and store it in a variable. Binary data in the file are ignored. Carriage return (CR) characters are ignored. It works also for Intel Hex and Motorola S-record files, which are automatically converted to binary format when reading them. Disable this using NO_HEX_CONVERSION.<br /></p>
<p>LIMIT_COUNT sets the maximum number of strings to return. LIMIT_INPUT sets the maximum number of bytes to read from the input file. LIMIT_OUTPUT sets the maximum number of bytes to store in the output variable. LENGTH_MINIMUM sets the minimum length of a string to return. Shorter strings are ignored. LENGTH_MAXIMUM sets the maximum length of a string to return.  Longer strings are split into strings no longer than the maximum length. NEWLINE_CONSUME allows newlines to be included in strings instead of terminating them.<br /></p>
<p>REGEX specifies a regular expression that a string must match to be returned. Typical usage <br /></p>
<pre>  file(STRINGS myfile.txt myfile)<br /></pre>
    <p>stores a list in the variable "myfile" in which each item is a line from the input file.<br /></p>
<p>GLOB will generate a list of all files that match the globbing expressions and store it into the variable. Globbing expressions are similar to regular expressions, but much simpler. If RELATIVE flag is specified for an expression, the results will be returned as a relative path to the given path.  (We do not recommend using GLOB to collect a list of source files from your source tree.  If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate.)<br /></p>
<p>Examples of globbing expressions include:<br /></p>
<pre>   *.cxx      - match all files with extension cxx<br />   *.vt?      - match all files with extension vta,...,vtz<br />   f[3-5].txt - match files f3.txt, f4.txt, f5.txt<br /></pre>
    <p>GLOB_RECURSE will generate a list similar to the regular GLOB, except it will traverse all the subdirectories of the matched directory and match the files. Subdirectories that are symlinks are only traversed if FOLLOW_SYMLINKS is given or cmake policy CMP0009 is not set to NEW. See cmake --help-policy CMP0009 for more information.<br /></p>
<p>Examples of recursive globbing include:<br /></p>
<pre>   /dir/*.py  - match all python files in /dir and subdirectories<br /></pre>
    <p>MAKE_DIRECTORY will create the given directories, also if their parent directories don't exist yet<br /></p>
<p>RENAME moves a file or directory within a filesystem, replacing the destination atomically.<br /></p>
<p>REMOVE will remove the given files, also in subdirectories<br /></p>
<p>REMOVE_RECURSE will remove the given files and directories, also non-empty directories<br /></p>
<p>RELATIVE_PATH will determine relative path from directory to the given file.<br /></p>
<p>TO_CMAKE_PATH will convert path into a cmake style path with unix /.  The input can be a single path or a system path like "$ENV{PATH}".  Note the double quotes around the ENV call TO_CMAKE_PATH only takes  one argument. This command will also convert the native list delimiters for a list of paths like the PATH environment variable.<br /></p>
<p>TO_NATIVE_PATH works just like TO_CMAKE_PATH, but will convert from  a cmake style path into the native path style \ for windows and / for UNIX.<br /></p>
<p>DOWNLOAD will download the given URL to the given file. If LOG var is specified a log of the download will be put in var. If STATUS var is specified the status of the operation will be put in var. The status is returned in a list of length 2. The first element is the numeric return value for the operation, and the second element is a string value for the error. A 0 numeric error means no error in the operation. If TIMEOUT time is specified, the operation will timeout after time seconds, time should be specified as an integer. The INACTIVITY_TIMEOUT specifies an integer number of seconds of inactivity after which the operation should terminate. If EXPECTED_HASH ALGO=value is specified, the operation will verify that the downloaded file's actual hash matches the expected value, where ALGO is one of MD5, SHA1, SHA224, SHA256, SHA384, or SHA512.  If it does not match, the operation fails with an error. ("EXPECTED_MD5 sum" is short-hand for "EXPECTED_HASH MD5=sum".) If SHOW_PROGRESS is specified, progress information will be printed as status messages until the operation is complete. For https URLs CMake must be built with OpenSSL.  TLS/SSL certificates are not checked by default.  Set TLS_VERIFY to ON to check certificates and/or use EXPECTED_HASH to verify downloaded content.  Set TLS_CAINFO to specify a custom Certificate Authority file.  If either TLS option is not given CMake will check variables CMAKE_TLS_VERIFY and CMAKE_TLS_CAINFO, respectively.<br /></p>
<p>UPLOAD will upload the given file to the given URL. If LOG var is specified a log of the upload will be put in var. If STATUS var is specified the status of the operation will be put in var. The status is returned in a list of length 2. The first element is the numeric return value for the operation, and the second element is a string value for the error. A 0 numeric error means no error in the operation. If TIMEOUT time is specified, the operation will timeout after time seconds, time should be specified as an integer. The INACTIVITY_TIMEOUT specifies an integer number of seconds of inactivity after which the operation should terminate. If SHOW_PROGRESS is specified, progress information will be printed as status messages until the operation is complete.<br /></p>
<p>TIMESTAMP will write a string representation of the modification time of filename to variable.<br /></p>
<p>Should the command be unable to obtain a timestamp variable will be set to the empty string "".<br /></p>
<p>See documentation of the string TIMESTAMP sub-command for more details.<br /></p>
<p>The file() command also provides COPY and INSTALL signatures:<br /></p>
<pre>  file(&lt;COPY|INSTALL&gt; files... DESTINATION &lt;dir&gt;<br />       [FILE_PERMISSIONS permissions...]<br />       [DIRECTORY_PERMISSIONS permissions...]<br />       [NO_SOURCE_PERMISSIONS] [USE_SOURCE_PERMISSIONS]<br />       [FILES_MATCHING]<br />       [[PATTERN &lt;pattern&gt; | REGEX &lt;regex&gt;]<br />        [EXCLUDE] [PERMISSIONS permissions...]] [...])<br /></pre>
    <p>The COPY signature copies files, directories, and symlinks to a destination folder.  Relative input paths are evaluated with respect to the current source directory, and a relative destination is evaluated with respect to the current build directory.  Copying preserves input file timestamps, and optimizes out a file if it exists at the destination with the same timestamp.  Copying preserves input permissions unless explicit permissions or NO_SOURCE_PERMISSIONS are given (default is USE_SOURCE_PERMISSIONS).  See the install(DIRECTORY) command for documentation of permissions, PATTERN, REGEX, and EXCLUDE options.  <br /></p>
<p>The INSTALL signature differs slightly from COPY: it prints status messages, and NO_SOURCE_PERMISSIONS is default.  Installation scripts generated by the install() command use this signature (with some undocumented options for internal use).<br /></p>
<p>GENERATE will write an &lt;output_file&gt; with content from an &lt;input_file&gt;, or from &lt;input_content&gt;.  The output is generated conditionally based on the content of the &lt;condition&gt;.  The file is written at CMake generate-time and the input may contain generator expressions.  The &lt;condition&gt;, &lt;output_file&gt; and &lt;input_file&gt; may also contain generator expressions.  The &lt;condition&gt; must evaluate to either '0' or '1'.  The &lt;output_file&gt; must evaluate to a unique name among all configurations and among all invocations of file(GENERATE).</p>

  </li>
  <li>
    <a name="command:find_file"></a><b><code>find_file</code></b>: Find the full path to a file.<br />
    <pre>   find_file(&lt;VAR&gt; name1 [path1 path2 ...])<br /></pre>
    <p>This is the short-hand signature for the command that is sufficient in many cases.  It is the same as find_file(&lt;VAR&gt; name1 [PATHS path1 path2 ...])<br /></p>
<pre>   find_file(<br />             &lt;VAR&gt;<br />             name | NAMES name1 [name2 ...]<br />             [HINTS path1 [path2 ... ENV var]]<br />             [PATHS path1 [path2 ... ENV var]]<br />             [PATH_SUFFIXES suffix1 [suffix2 ...]]<br />             [DOC "cache documentation string"]<br />             [NO_DEFAULT_PATH]<br />             [NO_CMAKE_ENVIRONMENT_PATH]<br />             [NO_CMAKE_PATH]<br />             [NO_SYSTEM_ENVIRONMENT_PATH]<br />             [NO_CMAKE_SYSTEM_PATH]<br />             [CMAKE_FIND_ROOT_PATH_BOTH |<br />              ONLY_CMAKE_FIND_ROOT_PATH |<br />              NO_CMAKE_FIND_ROOT_PATH]<br />            )<br /></pre>
    <p>This command is used to find a full path to named file. A cache entry named by &lt;VAR&gt; is created to store the result of this command.  If the full path to a file is found the result is stored in the variable and the search will not be repeated unless the variable is cleared.  If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again the next time find_file is invoked with the same variable.  The name of the full path to a file that is searched for is specified by the names listed after the NAMES argument.   Additional search locations can be specified after the PATHS argument.  If ENV var is found in the HINTS or PATHS section the environment variable var will be read and converted from a system environment variable to a cmake style list of paths.  For example ENV PATH would be a way to list the system path variable. The argument after DOC will be used for the documentation string in the cache.  PATH_SUFFIXES specifies additional subdirectories to check below each search path.<br /></p>
<p>If NO_DEFAULT_PATH is specified, then no additional paths are added to the search. If NO_DEFAULT_PATH is not specified, the search process is as follows:<br /></p>
<p>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/include/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and<br />   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_PREFIX_PATH<br />   CMAKE_INCLUDE_PATH<br />   CMAKE_FRAMEWORK_PATH<br /></pre>
    <p>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/include/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and<br />   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_PREFIX_PATH<br />   CMAKE_INCLUDE_PATH<br />   CMAKE_FRAMEWORK_PATH<br /></pre>
    <p>3. Search the paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.<br /></p>
<p>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is an argument.<br /></p>
<pre>   PATH<br />   INCLUDE<br /></pre>
    <p>5. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/include/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and<br />   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_SYSTEM_PREFIX_PATH<br />   CMAKE_SYSTEM_INCLUDE_PATH<br />   CMAKE_SYSTEM_FRAMEWORK_PATH<br /></pre>
    <p>6. Search the paths specified by the PATHS option or in the short-hand version of the command.  These are typically hard-coded guesses.<br /></p>
<p>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find frameworks before standard<br />              libraries or headers. This is the default on Darwin.<br />   "LAST"   - Try to find frameworks after standard<br />              libraries or headers.<br />   "ONLY"   - Only try to find frameworks.<br />   "NEVER" - Never try to find frameworks.<br /></pre>
    <p>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find application bundles before standard<br />              programs. This is the default on Darwin.<br />   "LAST"   - Try to find application bundles after standard<br />              programs.<br />   "ONLY"   - Only try to find application bundles.<br />   "NEVER" - Never try to find application bundles.<br /></pre>
    <p>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_INCLUDE.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.<br /></p>
<p>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:<br /></p>
<pre>   find_file(&lt;VAR&gt; NAMES name PATHS paths... NO_DEFAULT_PATH)<br />   find_file(&lt;VAR&gt; NAMES name)<br /></pre>
    <p>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.</p>

  </li>
  <li>
    <a name="command:find_library"></a><b><code>find_library</code></b>: Find a library.<br />
    <pre>   find_library(&lt;VAR&gt; name1 [path1 path2 ...])<br /></pre>
    <p>This is the short-hand signature for the command that is sufficient in many cases.  It is the same as find_library(&lt;VAR&gt; name1 [PATHS path1 path2 ...])<br /></p>
<pre>   find_library(<br />             &lt;VAR&gt;<br />             name | NAMES name1 [name2 ...] [NAMES_PER_DIR]<br />             [HINTS path1 [path2 ... ENV var]]<br />             [PATHS path1 [path2 ... ENV var]]<br />             [PATH_SUFFIXES suffix1 [suffix2 ...]]<br />             [DOC "cache documentation string"]<br />             [NO_DEFAULT_PATH]<br />             [NO_CMAKE_ENVIRONMENT_PATH]<br />             [NO_CMAKE_PATH]<br />             [NO_SYSTEM_ENVIRONMENT_PATH]<br />             [NO_CMAKE_SYSTEM_PATH]<br />             [CMAKE_FIND_ROOT_PATH_BOTH |<br />              ONLY_CMAKE_FIND_ROOT_PATH |<br />              NO_CMAKE_FIND_ROOT_PATH]<br />            )<br /></pre>
    <p>This command is used to find a library. A cache entry named by &lt;VAR&gt; is created to store the result of this command.  If the library is found the result is stored in the variable and the search will not be repeated unless the variable is cleared.  If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again the next time find_library is invoked with the same variable.  The name of the library that is searched for is specified by the names listed after the NAMES argument.   Additional search locations can be specified after the PATHS argument.  If ENV var is found in the HINTS or PATHS section the environment variable var will be read and converted from a system environment variable to a cmake style list of paths.  For example ENV PATH would be a way to list the system path variable. The argument after DOC will be used for the documentation string in the cache.  PATH_SUFFIXES specifies additional subdirectories to check below each search path.<br /></p>
<p>If NO_DEFAULT_PATH is specified, then no additional paths are added to the search. If NO_DEFAULT_PATH is not specified, the search process is as follows:<br /></p>
<p>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/lib/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and<br />   &lt;prefix&gt;/lib for each &lt;prefix&gt; in CMAKE_PREFIX_PATH<br />   CMAKE_LIBRARY_PATH<br />   CMAKE_FRAMEWORK_PATH<br /></pre>
    <p>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/lib/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and<br />   &lt;prefix&gt;/lib for each &lt;prefix&gt; in CMAKE_PREFIX_PATH<br />   CMAKE_LIBRARY_PATH<br />   CMAKE_FRAMEWORK_PATH<br /></pre>
    <p>3. Search the paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.<br /></p>
<p>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is an argument.<br /></p>
<pre>   PATH<br />   LIB<br /></pre>
    <p>5. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/lib/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and<br />   &lt;prefix&gt;/lib for each &lt;prefix&gt; in CMAKE_SYSTEM_PREFIX_PATH<br />   CMAKE_SYSTEM_LIBRARY_PATH<br />   CMAKE_SYSTEM_FRAMEWORK_PATH<br /></pre>
    <p>6. Search the paths specified by the PATHS option or in the short-hand version of the command.  These are typically hard-coded guesses.<br /></p>
<p>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find frameworks before standard<br />              libraries or headers. This is the default on Darwin.<br />   "LAST"   - Try to find frameworks after standard<br />              libraries or headers.<br />   "ONLY"   - Only try to find frameworks.<br />   "NEVER" - Never try to find frameworks.<br /></pre>
    <p>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find application bundles before standard<br />              programs. This is the default on Darwin.<br />   "LAST"   - Try to find application bundles after standard<br />              programs.<br />   "ONLY"   - Only try to find application bundles.<br />   "NEVER" - Never try to find application bundles.<br /></pre>
    <p>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_LIBRARY.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.<br /></p>
<p>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:<br /></p>
<pre>   find_library(&lt;VAR&gt; NAMES name PATHS paths... NO_DEFAULT_PATH)<br />   find_library(&lt;VAR&gt; NAMES name)<br /></pre>
    <p>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.<br /></p>
<p>When more than one value is given to the NAMES option this command by default will consider one name at a time and search every directory for it.  The NAMES_PER_DIR option tells this command to consider one directory at a time and search for all names in it.<br /></p>
<p>If the library found is a framework, then VAR will be set to the full path to the framework &lt;fullPath&gt;/A.framework. When a full path to a framework is used as a library, CMake will use a -framework A, and a -F&lt;fullPath&gt; to link the framework to the target.<br /></p>
<p>If the global property FIND_LIBRARY_USE_LIB64_PATHS is set all search paths will be tested as normal, with "64/" appended, and with all matches of "lib/" replaced with "lib64/". This property is automatically set for the platforms that are known to need it if at least one of the languages supported by the PROJECT command is enabled.</p>

  </li>
  <li>
    <a name="command:find_package"></a><b><code>find_package</code></b>: Load settings for an external project.<br />
    <pre>  find_package(&lt;package&gt; [version] [EXACT] [QUIET] [MODULE]<br />               [REQUIRED] [[COMPONENTS] [components...]]<br />               [OPTIONAL_COMPONENTS components...]<br />               [NO_POLICY_SCOPE])<br /></pre>
    <p>Finds and loads settings from an external project.  &lt;package&gt;_FOUND will be set to indicate whether the package was found.  When the package is found package-specific information is provided through variables and imported targets documented by the package itself.  The QUIET option disables messages if the package cannot be found.  The MODULE option disables the second signature documented below.  The REQUIRED option stops processing with an error message if the package cannot be found.<br /></p>
<p>A package-specific list of required components may be listed after the COMPONENTS option (or after the REQUIRED option if present).  Additional optional components may be listed after OPTIONAL_COMPONENTS.  Available components and their influence on whether a package is considered to be found are defined by the target package.<br /></p>
<p>The [version] argument requests a version with which the package found should be compatible (format is major[.minor[.patch[.tweak]]]).  The EXACT option requests that the version be matched exactly.  If no [version] and/or component list is given to a recursive invocation inside a find-module, the corresponding arguments are forwarded automatically from the outer call (including the EXACT flag for [version]).  Version support is currently provided only on a package-by-package basis (details below).<br /></p>
<p>User code should generally look for packages using the above simple signature.  The remainder of this command documentation specifies the full command signature and details of the search process.  Project maintainers wishing to provide a package to be found by this command are encouraged to read on.<br /></p>
<p>The command has two modes by which it searches for packages: "Module" mode and "Config" mode.  Module mode is available when the command is invoked with the above reduced signature.  CMake searches for a file called "Find&lt;package&gt;.cmake" in the CMAKE_MODULE_PATH followed by the CMake installation.  If the file is found, it is read and processed by CMake.  It is responsible for finding the package, checking the version, and producing any needed messages.  Many find-modules provide limited or no support for versioning; check the module documentation.  If no module is found and the MODULE option is not given the command proceeds to Config mode.<br /></p>
<p>The complete Config mode command signature is:<br /></p>
<pre>  find_package(&lt;package&gt; [version] [EXACT] [QUIET]<br />               [REQUIRED] [[COMPONENTS] [components...]]<br />               [CONFIG|NO_MODULE]<br />               [NO_POLICY_SCOPE]<br />               [NAMES name1 [name2 ...]]<br />               [CONFIGS config1 [config2 ...]]<br />               [HINTS path1 [path2 ... ]]<br />               [PATHS path1 [path2 ... ]]<br />               [PATH_SUFFIXES suffix1 [suffix2 ...]]<br />               [NO_DEFAULT_PATH]<br />               [NO_CMAKE_ENVIRONMENT_PATH]<br />               [NO_CMAKE_PATH]<br />               [NO_SYSTEM_ENVIRONMENT_PATH]<br />               [NO_CMAKE_PACKAGE_REGISTRY]<br />               [NO_CMAKE_BUILDS_PATH]<br />               [NO_CMAKE_SYSTEM_PATH]<br />               [NO_CMAKE_SYSTEM_PACKAGE_REGISTRY]<br />               [CMAKE_FIND_ROOT_PATH_BOTH |<br />                ONLY_CMAKE_FIND_ROOT_PATH |<br />                NO_CMAKE_FIND_ROOT_PATH])<br /></pre>
    <p>The CONFIG option may be used to skip Module mode explicitly and switch to Config mode.  It is synonymous to using NO_MODULE.  Config mode is also implied by use of options not specified in the reduced signature.  <br /></p>
<p>Config mode attempts to locate a configuration file provided by the package to be found.  A cache entry called &lt;package&gt;_DIR is created to hold the directory containing the file.  By default the command searches for a package with the name &lt;package&gt;.  If the NAMES option is given the names following it are used instead of &lt;package&gt;.  The command searches for a file called "&lt;name&gt;Config.cmake" or "&lt;lower-case-name&gt;-config.cmake" for each name specified.  A replacement set of possible configuration file names may be given using the CONFIGS option.  The search procedure is specified below.  Once found, the configuration file is read and processed by CMake.  Since the file is provided by the package it already knows the location of package contents.  The full path to the configuration file is stored in the cmake variable &lt;package&gt;_CONFIG.<br /></p>
<p>All configuration files which have been considered by CMake while searching for an installation of the package with an appropriate version are stored in the cmake variable &lt;package&gt;_CONSIDERED_CONFIGS, the associated versions in &lt;package&gt;_CONSIDERED_VERSIONS. <br /></p>
<p>If the package configuration file cannot be found CMake will generate an error describing the problem unless the QUIET argument is specified.  If REQUIRED is specified and the package is not found a fatal error is generated and the configure step stops executing.  If &lt;package&gt;_DIR has been set to a directory not containing a configuration file CMake will ignore it and search from scratch.<br /></p>
<p>When the [version] argument is given Config mode will only find a version of the package that claims compatibility with the requested version (format is major[.minor[.patch[.tweak]]]).  If the EXACT option is given only a version of the package claiming an exact match of the requested version may be found.  CMake does not establish any convention for the meaning of version numbers.  Package version numbers are checked by "version" files provided by the packages themselves.  For a candidate package configuration file "&lt;config-file&gt;.cmake" the corresponding version file is located next to it and named either "&lt;config-file&gt;-version.cmake" or "&lt;config-file&gt;Version.cmake".  If no such version file is available then the configuration file is assumed to not be compatible with any requested version.  A basic version file containing generic version matching code can be created using the macro write_basic_package_version_file(), see its documentation for more details.  When a version file is found it is loaded to check the requested version number.  The version file is loaded in a nested scope in which the following variables have been defined:<br /></p>
<pre>  PACKAGE_FIND_NAME          = the &lt;package&gt; name<br />  PACKAGE_FIND_VERSION       = full requested version string<br />  PACKAGE_FIND_VERSION_MAJOR = major version if requested, else 0<br />  PACKAGE_FIND_VERSION_MINOR = minor version if requested, else 0<br />  PACKAGE_FIND_VERSION_PATCH = patch version if requested, else 0<br />  PACKAGE_FIND_VERSION_TWEAK = tweak version if requested, else 0<br />  PACKAGE_FIND_VERSION_COUNT = number of version components, 0 to 4<br /></pre>
    <p>The version file checks whether it satisfies the requested version and sets these variables:<br /></p>
<pre>  PACKAGE_VERSION            = full provided version string<br />  PACKAGE_VERSION_EXACT      = true if version is exact match<br />  PACKAGE_VERSION_COMPATIBLE = true if version is compatible<br />  PACKAGE_VERSION_UNSUITABLE = true if unsuitable as any version<br /></pre>
    <p>These variables are checked by the find_package command to determine whether the configuration file provides an acceptable version.  They are not available after the find_package call returns.  If the version is acceptable the following variables are set:<br /></p>
<pre>  &lt;package&gt;_VERSION       = full provided version string<br />  &lt;package&gt;_VERSION_MAJOR = major version if provided, else 0<br />  &lt;package&gt;_VERSION_MINOR = minor version if provided, else 0<br />  &lt;package&gt;_VERSION_PATCH = patch version if provided, else 0<br />  &lt;package&gt;_VERSION_TWEAK = tweak version if provided, else 0<br />  &lt;package&gt;_VERSION_COUNT = number of version components, 0 to 4<br /></pre>
    <p>and the corresponding package configuration file is loaded.  When multiple package configuration files are available whose version files claim compatibility with the version requested it is unspecified which one is chosen.  No attempt is made to choose a highest or closest version number.<br /></p>
<p>Config mode provides an elaborate interface and search procedure.  Much of the interface is provided for completeness and for use internally by find-modules loaded by Module mode.  Most user code should simply call<br /></p>
<pre>  find_package(&lt;package&gt; [major[.minor]] [EXACT] [REQUIRED|QUIET])<br /></pre>
    <p>in order to find a package.  Package maintainers providing CMake package configuration files are encouraged to name and install them such that the procedure outlined below will find them without requiring use of additional options.<br /></p>
<p>CMake constructs a set of possible installation prefixes for the package.  Under each prefix several directories are searched for a configuration file.  The tables below show the directories searched.  Each entry is meant for installation trees following Windows (W), UNIX (U), or Apple (A) conventions.<br /></p>
<pre>  &lt;prefix&gt;/                                               (W)<br />  &lt;prefix&gt;/(cmake|CMake)/                                 (W)<br />  &lt;prefix&gt;/&lt;name&gt;*/                                       (W)<br />  &lt;prefix&gt;/&lt;name&gt;*/(cmake|CMake)/                         (W)<br />  &lt;prefix&gt;/(lib/&lt;arch&gt;|lib|share)/cmake/&lt;name&gt;*/          (U)<br />  &lt;prefix&gt;/(lib/&lt;arch&gt;|lib|share)/&lt;name&gt;*/                (U)<br />  &lt;prefix&gt;/(lib/&lt;arch&gt;|lib|share)/&lt;name&gt;*/(cmake|CMake)/  (U)<br /></pre>
    <p>On systems supporting OS X Frameworks and Application Bundles the following directories are searched for frameworks or bundles containing a configuration file:<br /></p>
<pre>  &lt;prefix&gt;/&lt;name&gt;.framework/Resources/                    (A)<br />  &lt;prefix&gt;/&lt;name&gt;.framework/Resources/CMake/              (A)<br />  &lt;prefix&gt;/&lt;name&gt;.framework/Versions/*/Resources/         (A)<br />  &lt;prefix&gt;/&lt;name&gt;.framework/Versions/*/Resources/CMake/   (A)<br />  &lt;prefix&gt;/&lt;name&gt;.app/Contents/Resources/                 (A)<br />  &lt;prefix&gt;/&lt;name&gt;.app/Contents/Resources/CMake/           (A)<br /></pre>
    <p>In all cases the &lt;name&gt; is treated as case-insensitive and corresponds to any of the names specified (&lt;package&gt; or names given by NAMES).  Paths with lib/&lt;arch&gt; are enabled if CMAKE_LIBRARY_ARCHITECTURE is set.  If PATH_SUFFIXES is specified the suffixes are appended to each (W) or (U) directory entry one-by-one.<br /></p>
<p>This set of directories is intended to work in cooperation with projects that provide configuration files in their installation trees.  Directories above marked with (W) are intended for installations on Windows where the prefix may point at the top of an application's installation directory.  Those marked with (U) are intended for installations on UNIX platforms where the prefix is shared by multiple packages.  This is merely a convention, so all (W) and (U) directories are still searched on all platforms.  Directories marked with (A) are intended for installations on Apple platforms.  The cmake variables CMAKE_FIND_FRAMEWORK and CMAKE_FIND_APPBUNDLE determine the order of preference as specified below.<br /></p>
<p>The set of installation prefixes is constructed using the following steps.  If NO_DEFAULT_PATH is specified all NO_* options are enabled.<br /></p>
<p>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.<br /></p>
<pre>   CMAKE_PREFIX_PATH<br />   CMAKE_FRAMEWORK_PATH<br />   CMAKE_APPBUNDLE_PATH<br /></pre>
    <p>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.<br /></p>
<pre>   &lt;package&gt;_DIR<br />   CMAKE_PREFIX_PATH<br />   CMAKE_FRAMEWORK_PATH<br />   CMAKE_APPBUNDLE_PATH<br /></pre>
    <p>3. Search paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.<br /></p>
<p>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is passed.  Path entries ending in "/bin" or "/sbin" are automatically converted to their parent directories.<br /></p>
<pre>   PATH<br /></pre>
    <p>5. Search project build trees recently configured in a CMake GUI.  This can be skipped if NO_CMAKE_BUILDS_PATH is passed.  It is intended for the case when a user is building multiple dependent projects one after another.<br /></p>
<p>6. Search paths stored in the CMake user package registry.  This can be skipped if NO_CMAKE_PACKAGE_REGISTRY is passed.  On Windows a &lt;package&gt; may appear under registry key<br /></p>
<pre>  HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\&lt;package&gt;<br /></pre>
    <p>as a REG_SZ value, with arbitrary name, that specifies the directory containing the package configuration file.  On UNIX platforms a &lt;package&gt; may appear under the directory<br /></p>
<pre>  ~/.cmake/packages/&lt;package&gt;<br /></pre>
    <p>as a file, with arbitrary name, whose content specifies the directory containing the package configuration file.  See the export(PACKAGE) command to create user package registry entries for project build trees.<br /></p>
<p>7. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.<br /></p>
<pre>   CMAKE_SYSTEM_PREFIX_PATH<br />   CMAKE_SYSTEM_FRAMEWORK_PATH<br />   CMAKE_SYSTEM_APPBUNDLE_PATH<br /></pre>
    <p>8. Search paths stored in the CMake system package registry.  This can be skipped if NO_CMAKE_SYSTEM_PACKAGE_REGISTRY is passed.  On Windows a &lt;package&gt; may appear under registry key<br /></p>
<pre>  HKEY_LOCAL_MACHINE\Software\Kitware\CMake\Packages\&lt;package&gt;<br /></pre>
    <p>as a REG_SZ value, with arbitrary name, that specifies the directory containing the package configuration file.  There is no system package registry on non-Windows platforms.<br /></p>
<p>9. Search paths specified by the PATHS option.  These are typically hard-coded guesses.<br /></p>
<p>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find frameworks before standard<br />              libraries or headers. This is the default on Darwin.<br />   "LAST"   - Try to find frameworks after standard<br />              libraries or headers.<br />   "ONLY"   - Only try to find frameworks.<br />   "NEVER" - Never try to find frameworks.<br /></pre>
    <p>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find application bundles before standard<br />              programs. This is the default on Darwin.<br />   "LAST"   - Try to find application bundles after standard<br />              programs.<br />   "ONLY"   - Only try to find application bundles.<br />   "NEVER" - Never try to find application bundles.<br /></pre>
    <p>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_PACKAGE.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.<br /></p>
<p>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:<br /></p>
<pre>   find_package(&lt;package&gt; PATHS paths... NO_DEFAULT_PATH)<br />   find_package(&lt;package&gt;)<br /></pre>
    <p>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.<br /></p>
<p>Every non-REQUIRED find_package() call can be disabled by setting the variable CMAKE_DISABLE_FIND_PACKAGE_&lt;package&gt; to TRUE. See the documentation for the CMAKE_DISABLE_FIND_PACKAGE_&lt;package&gt; variable for more information.<br /></p>
<p>When loading a find module or package configuration file find_package defines variables to provide information about the call arguments (and restores their original state before returning):<br /></p>
<pre> &lt;package&gt;_FIND_REQUIRED      = true if REQUIRED option was given<br /> &lt;package&gt;_FIND_QUIETLY       = true if QUIET option was given<br /> &lt;package&gt;_FIND_VERSION       = full requested version string<br /> &lt;package&gt;_FIND_VERSION_MAJOR = major version if requested, else 0<br /> &lt;package&gt;_FIND_VERSION_MINOR = minor version if requested, else 0<br /> &lt;package&gt;_FIND_VERSION_PATCH = patch version if requested, else 0<br /> &lt;package&gt;_FIND_VERSION_TWEAK = tweak version if requested, else 0<br /> &lt;package&gt;_FIND_VERSION_COUNT = number of version components, 0 to 4<br /> &lt;package&gt;_FIND_VERSION_EXACT = true if EXACT option was given<br /> &lt;package&gt;_FIND_COMPONENTS    = list of requested components<br /> &lt;package&gt;_FIND_REQUIRED_&lt;c&gt;  = true if component &lt;c&gt; is required<br />                                false if component &lt;c&gt; is optional<br /></pre>
    <p>In Module mode the loaded find module is responsible to honor the request detailed by these variables; see the find module for details.  In Config mode find_package handles REQUIRED, QUIET, and version options automatically but leaves it to the package configuration file to handle components in a way that makes sense for the package.  The package configuration file may set &lt;package&gt;_FOUND to false to tell find_package that component requirements are not satisfied.<br /></p>
<p>See the cmake_policy() command documentation for discussion of the NO_POLICY_SCOPE option.</p>

  </li>
  <li>
    <a name="command:find_path"></a><b><code>find_path</code></b>: Find the directory containing a file.<br />
    <pre>   find_path(&lt;VAR&gt; name1 [path1 path2 ...])<br /></pre>
    <p>This is the short-hand signature for the command that is sufficient in many cases.  It is the same as find_path(&lt;VAR&gt; name1 [PATHS path1 path2 ...])<br /></p>
<pre>   find_path(<br />             &lt;VAR&gt;<br />             name | NAMES name1 [name2 ...]<br />             [HINTS path1 [path2 ... ENV var]]<br />             [PATHS path1 [path2 ... ENV var]]<br />             [PATH_SUFFIXES suffix1 [suffix2 ...]]<br />             [DOC "cache documentation string"]<br />             [NO_DEFAULT_PATH]<br />             [NO_CMAKE_ENVIRONMENT_PATH]<br />             [NO_CMAKE_PATH]<br />             [NO_SYSTEM_ENVIRONMENT_PATH]<br />             [NO_CMAKE_SYSTEM_PATH]<br />             [CMAKE_FIND_ROOT_PATH_BOTH |<br />              ONLY_CMAKE_FIND_ROOT_PATH |<br />              NO_CMAKE_FIND_ROOT_PATH]<br />            )<br /></pre>
    <p>This command is used to find a directory containing the named file. A cache entry named by &lt;VAR&gt; is created to store the result of this command.  If the file in a directory is found the result is stored in the variable and the search will not be repeated unless the variable is cleared.  If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again the next time find_path is invoked with the same variable.  The name of the file in a directory that is searched for is specified by the names listed after the NAMES argument.   Additional search locations can be specified after the PATHS argument.  If ENV var is found in the HINTS or PATHS section the environment variable var will be read and converted from a system environment variable to a cmake style list of paths.  For example ENV PATH would be a way to list the system path variable. The argument after DOC will be used for the documentation string in the cache.  PATH_SUFFIXES specifies additional subdirectories to check below each search path.<br /></p>
<p>If NO_DEFAULT_PATH is specified, then no additional paths are added to the search. If NO_DEFAULT_PATH is not specified, the search process is as follows:<br /></p>
<p>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/include/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and<br />   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_PREFIX_PATH<br />   CMAKE_INCLUDE_PATH<br />   CMAKE_FRAMEWORK_PATH<br /></pre>
    <p>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/include/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and<br />   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_PREFIX_PATH<br />   CMAKE_INCLUDE_PATH<br />   CMAKE_FRAMEWORK_PATH<br /></pre>
    <p>3. Search the paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.<br /></p>
<p>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is an argument.<br /></p>
<pre>   PATH<br />   INCLUDE<br /></pre>
    <p>5. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/include/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and<br />   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_SYSTEM_PREFIX_PATH<br />   CMAKE_SYSTEM_INCLUDE_PATH<br />   CMAKE_SYSTEM_FRAMEWORK_PATH<br /></pre>
    <p>6. Search the paths specified by the PATHS option or in the short-hand version of the command.  These are typically hard-coded guesses.<br /></p>
<p>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find frameworks before standard<br />              libraries or headers. This is the default on Darwin.<br />   "LAST"   - Try to find frameworks after standard<br />              libraries or headers.<br />   "ONLY"   - Only try to find frameworks.<br />   "NEVER" - Never try to find frameworks.<br /></pre>
    <p>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find application bundles before standard<br />              programs. This is the default on Darwin.<br />   "LAST"   - Try to find application bundles after standard<br />              programs.<br />   "ONLY"   - Only try to find application bundles.<br />   "NEVER" - Never try to find application bundles.<br /></pre>
    <p>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_INCLUDE.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.<br /></p>
<p>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:<br /></p>
<pre>   find_path(&lt;VAR&gt; NAMES name PATHS paths... NO_DEFAULT_PATH)<br />   find_path(&lt;VAR&gt; NAMES name)<br /></pre>
    <p>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.<br /></p>
<p>When searching for frameworks, if the file is specified as A/b.h, then the framework search will look for A.framework/Headers/b.h. If that is found the path will be set to the path to the framework. CMake will convert this to the correct -F option to include the file. </p>

  </li>
  <li>
    <a name="command:find_program"></a><b><code>find_program</code></b>: Find an executable program.<br />
    <pre>   find_program(&lt;VAR&gt; name1 [path1 path2 ...])<br /></pre>
    <p>This is the short-hand signature for the command that is sufficient in many cases.  It is the same as find_program(&lt;VAR&gt; name1 [PATHS path1 path2 ...])<br /></p>
<pre>   find_program(<br />             &lt;VAR&gt;<br />             name | NAMES name1 [name2 ...]<br />             [HINTS path1 [path2 ... ENV var]]<br />             [PATHS path1 [path2 ... ENV var]]<br />             [PATH_SUFFIXES suffix1 [suffix2 ...]]<br />             [DOC "cache documentation string"]<br />             [NO_DEFAULT_PATH]<br />             [NO_CMAKE_ENVIRONMENT_PATH]<br />             [NO_CMAKE_PATH]<br />             [NO_SYSTEM_ENVIRONMENT_PATH]<br />             [NO_CMAKE_SYSTEM_PATH]<br />             [CMAKE_FIND_ROOT_PATH_BOTH |<br />              ONLY_CMAKE_FIND_ROOT_PATH |<br />              NO_CMAKE_FIND_ROOT_PATH]<br />            )<br /></pre>
    <p>This command is used to find a program. A cache entry named by &lt;VAR&gt; is created to store the result of this command.  If the program is found the result is stored in the variable and the search will not be repeated unless the variable is cleared.  If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again the next time find_program is invoked with the same variable.  The name of the program that is searched for is specified by the names listed after the NAMES argument.   Additional search locations can be specified after the PATHS argument.  If ENV var is found in the HINTS or PATHS section the environment variable var will be read and converted from a system environment variable to a cmake style list of paths.  For example ENV PATH would be a way to list the system path variable. The argument after DOC will be used for the documentation string in the cache.  PATH_SUFFIXES specifies additional subdirectories to check below each search path.<br /></p>
<p>If NO_DEFAULT_PATH is specified, then no additional paths are added to the search. If NO_DEFAULT_PATH is not specified, the search process is as follows:<br /></p>
<p>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/[s]bin for each &lt;prefix&gt; in CMAKE_PREFIX_PATH<br />   CMAKE_PROGRAM_PATH<br />   CMAKE_APPBUNDLE_PATH<br /></pre>
    <p>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/[s]bin for each &lt;prefix&gt; in CMAKE_PREFIX_PATH<br />   CMAKE_PROGRAM_PATH<br />   CMAKE_APPBUNDLE_PATH<br /></pre>
    <p>3. Search the paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.<br /></p>
<p>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is an argument.<br /></p>
<pre>   PATH<br />   <br /></pre>
    <p>5. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.<br /></p>
<pre>   &lt;prefix&gt;/[s]bin for each &lt;prefix&gt; in CMAKE_SYSTEM_PREFIX_PATH<br />   CMAKE_SYSTEM_PROGRAM_PATH<br />   CMAKE_SYSTEM_APPBUNDLE_PATH<br /></pre>
    <p>6. Search the paths specified by the PATHS option or in the short-hand version of the command.  These are typically hard-coded guesses.<br /></p>
<p>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find frameworks before standard<br />              libraries or headers. This is the default on Darwin.<br />   "LAST"   - Try to find frameworks after standard<br />              libraries or headers.<br />   "ONLY"   - Only try to find frameworks.<br />   "NEVER" - Never try to find frameworks.<br /></pre>
    <p>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:<br /></p>
<pre>   "FIRST"  - Try to find application bundles before standard<br />              programs. This is the default on Darwin.<br />   "LAST"   - Try to find application bundles after standard<br />              programs.<br />   "ONLY"   - Only try to find application bundles.<br />   "NEVER" - Never try to find application bundles.<br /></pre>
    <p>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_PROGRAM.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.<br /></p>
<p>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:<br /></p>
<pre>   find_program(&lt;VAR&gt; NAMES name PATHS paths... NO_DEFAULT_PATH)<br />   find_program(&lt;VAR&gt; NAMES name)<br /></pre>
    <p>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.</p>

  </li>
  <li>
    <a name="command:fltk_wrap_ui"></a><b><code>fltk_wrap_ui</code></b>: Create FLTK user interfaces Wrappers.<br />
    <pre>  fltk_wrap_ui(resultingLibraryName source1<br />               source2 ... sourceN )<br /></pre>
    <p>Produce .h and .cxx files for all the .fl and .fld files listed.  The resulting .h and .cxx files will be added to a variable named resultingLibraryName_FLTK_UI_SRCS which should be added to your library.</p>

  </li>
  <li>
    <a name="command:foreach"></a><b><code>foreach</code></b>: Evaluate a group of commands for each value in a list.<br />
    <pre>  foreach(loop_var arg1 arg2 ...)<br />    COMMAND1(ARGS ...)<br />    COMMAND2(ARGS ...)<br />    ...<br />  endforeach(loop_var)<br /></pre>
    <p>All commands between foreach and the matching endforeach are recorded without being invoked.  Once the endforeach is evaluated, the recorded list of commands is invoked once for each argument listed in the original foreach command.  Before each iteration of the loop "${loop_var}" will be set as a variable with the current value in the list.<br /></p>
<pre>  foreach(loop_var RANGE total)<br />  foreach(loop_var RANGE start stop [step])<br /></pre>
    <p>Foreach can also iterate over a generated range of numbers. There are three types of this iteration:<br /></p>
<p>* When specifying single number, the range will have elements 0 to "total".<br /></p>
<p>* When specifying two numbers, the range will have elements from the first number to the second number.<br /></p>
<p>* The third optional number is the increment used to iterate from the first number to the second number.<br /></p>
<pre>  foreach(loop_var IN [LISTS [list1 [...]]]<br />                      [ITEMS [item1 [...]]])<br /></pre>
    <p>Iterates over a precise list of items.  The LISTS option names list-valued variables to be traversed, including empty elements (an empty string is a zero-length list).  The ITEMS option ends argument parsing and includes all arguments following it in the iteration.</p>

  </li>
  <li>
    <a name="command:function"></a><b><code>function</code></b>: Start recording a function for later invocation as a command.<br />
    <pre>  function(&lt;name&gt; [arg1 [arg2 [arg3 ...]]])<br />    COMMAND1(ARGS ...)<br />    COMMAND2(ARGS ...)<br />    ...<br />  endfunction(&lt;name&gt;)<br /></pre>
    <p>Define a function named &lt;name&gt; that takes arguments named arg1 arg2 arg3 (...).  Commands listed after function, but before the matching endfunction, are not invoked until the function is invoked.  When it is invoked, the commands recorded in the function are first modified by replacing formal parameters (${arg1}) with the arguments passed, and then invoked as normal commands. In addition to referencing the formal parameters you can reference the variable ARGC which will be set to the number of arguments passed into the function as well as ARGV0 ARGV1 ARGV2 ... which will have the actual values of the arguments passed in. This facilitates creating functions with optional arguments. Additionally ARGV holds the list of all arguments given to the function and ARGN holds the list of arguments past the last expected argument.<br /></p>
<p>A function opens a new scope: see set(var PARENT_SCOPE) for details.<br /></p>
<p>See the cmake_policy() command documentation for the behavior of policies inside functions.</p>

  </li>
  <li>
    <a name="command:get_cmake_property"></a><b><code>get_cmake_property</code></b>: Get a property of the CMake instance.<br />
    <pre>  get_cmake_property(VAR property)<br /></pre>
    <p>Get a property from the CMake instance.  The value of the property is stored in the variable VAR.  If the property is not found, VAR will be set to "NOTFOUND".  Some supported properties include: VARIABLES, CACHE_VARIABLES, COMMANDS, MACROS, and COMPONENTS.<br /></p>
<p>See also the more general get_property() command.</p>

  </li>
  <li>
    <a name="command:get_directory_property"></a><b><code>get_directory_property</code></b>: Get a property of DIRECTORY scope.<br />
    <pre>  get_directory_property(&lt;variable&gt; [DIRECTORY &lt;dir&gt;] &lt;prop-name&gt;)<br /></pre>
    <p>Store a property of directory scope in the named variable.  If the property is not defined the empty-string is returned.  The DIRECTORY argument specifies another directory from which to retrieve the property value.  The specified directory must have already been traversed by CMake.<br /></p>
<pre>  get_directory_property(&lt;variable&gt; [DIRECTORY &lt;dir&gt;]<br />                         DEFINITION &lt;var-name&gt;)<br /></pre>
    <p>Get a variable definition from a directory.  This form is useful to get a variable definition from another directory.<br /></p>
<p>See also the more general get_property() command.</p>

  </li>
  <li>
    <a name="command:get_filename_component"></a><b><code>get_filename_component</code></b>: Get a specific component of a full filename.<br />
    <pre>  get_filename_component(&lt;VAR&gt; &lt;FileName&gt; &lt;COMP&gt; [CACHE])<br /></pre>
    <p>Set &lt;VAR&gt; to a component of &lt;FileName&gt;, where &lt;COMP&gt; is one of:<br /></p>
<pre> DIRECTORY = Directory without file name<br /> NAME      = File name without directory<br /> EXT       = File name longest extension (.b.c from d/a.b.c)<br /> NAME_WE   = File name without directory or longest extension<br /> ABSOLUTE  = Full path to file<br /> REALPATH  = Full path to existing file with symlinks resolved<br /> PATH      = Legacy alias for DIRECTORY (use for CMake &lt;= 2.8.11)<br /></pre>
    <p>Paths are returned with forward slashes and have no trailing slahes. The longest file extension is always considered. If the optional CACHE argument is specified, the result variable is added to the cache.<br /></p>
<pre>  get_filename_component(&lt;VAR&gt; FileName<br />                         PROGRAM [PROGRAM_ARGS &lt;ARG_VAR&gt;]<br />                         [CACHE])<br /></pre>
    <p>The program in FileName will be found in the system search path or left as a full path.  If PROGRAM_ARGS is present with PROGRAM, then any command-line arguments present in the FileName string are split from the program name and stored in &lt;ARG_VAR&gt;.  This is used to separate a program name from its arguments in a command line string.</p>

  </li>
  <li>
    <a name="command:get_property"></a><b><code>get_property</code></b>: Get a property.<br />
    <pre>  get_property(&lt;variable&gt;<br />               &lt;GLOBAL             |<br />                DIRECTORY [dir]    |<br />                TARGET    &lt;target&gt; |<br />                SOURCE    &lt;source&gt; |<br />                TEST      &lt;test&gt;   |<br />                CACHE     &lt;entry&gt;  |<br />                VARIABLE&gt;<br />               PROPERTY &lt;name&gt;<br />               [SET | DEFINED | BRIEF_DOCS | FULL_DOCS])<br /></pre>
    <p>Get one property from one object in a scope.  The first argument specifies the variable in which to store the result.  The second argument determines the scope from which to get the property.  It must be one of the following:<br /></p>
<p>GLOBAL scope is unique and does not accept a name.<br /></p>
<p>DIRECTORY scope defaults to the current directory but another directory (already processed by CMake) may be named by full or relative path.<br /></p>
<p>TARGET scope must name one existing target.<br /></p>
<p>SOURCE scope must name one source file.<br /></p>
<p>TEST scope must name one existing test.<br /></p>
<p>CACHE scope must name one cache entry.<br /></p>
<p>VARIABLE scope is unique and does not accept a name.<br /></p>
<p>The required PROPERTY option is immediately followed by the name of the property to get.  If the property is not set an empty value is returned.  If the SET option is given the variable is set to a boolean value indicating whether the property has been set.  If the DEFINED option is given the variable is set to a boolean value indicating whether the property has been defined such as with define_property. If BRIEF_DOCS or FULL_DOCS is given then the variable is set to a string containing documentation for the requested property.  If documentation is requested for a property that has not been defined NOTFOUND is returned.</p>

  </li>
  <li>
    <a name="command:get_source_file_property"></a><b><code>get_source_file_property</code></b>: Get a property for a source file.<br />
    <pre>  get_source_file_property(VAR file property)<br /></pre>
    <p>Get a property from a source file.  The value of the property is stored in the variable VAR.  If the property is not found, VAR will be set to "NOTFOUND". Use set_source_files_properties to set property values.  Source file properties usually control how the file is built. One property that is always there is LOCATION<br /></p>
<p>See also the more general get_property() command.</p>

  </li>
  <li>
    <a name="command:get_target_property"></a><b><code>get_target_property</code></b>: Get a property from a target.<br />
    <pre>  get_target_property(VAR target property)<br /></pre>
    <p>Get a property from a target.   The value of the property is stored in the variable VAR.  If the property is not found, VAR will be set to "NOTFOUND".  Use set_target_properties to set property values.  Properties are usually used to control how a target is built, but some query the target instead.  This command can get properties for any target so far created. The targets do not need to be in the current CMakeLists.txt file.<br /></p>
<p>See also the more general get_property() command.</p>

  </li>
  <li>
    <a name="command:get_test_property"></a><b><code>get_test_property</code></b>: Get a property of the test.<br />
    <pre>  get_test_property(test property VAR)<br /></pre>
    <p>Get a property from the Test.  The value of the property is stored in the variable VAR.  If the property is not found, VAR will be set to "NOTFOUND". For a list of standard properties you can type cmake --help-property-list<br /></p>
<p>See also the more general get_property() command.</p>

  </li>
  <li>
    <a name="command:if"></a><b><code>if</code></b>: Conditionally execute a group of commands.<br />
    <pre>  if(expression)<br />    # then section.<br />    COMMAND1(ARGS ...)<br />    COMMAND2(ARGS ...)<br />    ...<br />  elseif(expression2)<br />    # elseif section.<br />    COMMAND1(ARGS ...)<br />    COMMAND2(ARGS ...)<br />    ...<br />  else(expression)<br />    # else section.<br />    COMMAND1(ARGS ...)<br />    COMMAND2(ARGS ...)<br />    ...<br />  endif(expression)<br /></pre>
    <p>Evaluates the given expression.  If the result is true, the commands in the THEN section are invoked.  Otherwise, the commands in the else section are invoked.  The elseif and else sections are optional. You may have multiple elseif clauses. Note that the expression in the else and endif clause is optional. Long expressions can be used and there is a traditional order of precedence. Parenthetical expressions are evaluated first followed by unary operators such as EXISTS, COMMAND, and DEFINED. Then any EQUAL, LESS, GREATER, STRLESS, STRGREATER, STREQUAL, MATCHES will be evaluated. Then NOT operators and finally AND, OR operators will be evaluated. Possible expressions are:<br /></p>
<pre>  if(&lt;constant&gt;)<br /></pre>
    <p>True if the constant is 1, ON, YES, TRUE, Y, or a non-zero number.  False if the constant is 0, OFF, NO, FALSE, N, IGNORE, NOTFOUND, '', or ends in the suffix '-NOTFOUND'.  Named boolean constants are case-insensitive.  If the argument is not one of these constants, it is treated as a variable:<br /></p>
<pre>  if(&lt;variable&gt;)<br /></pre>
    <p>True if the variable is defined to a value that is not a false constant.  False otherwise.  (Note macro arguments are not variables.)<br /></p>
<pre>  if(NOT &lt;expression&gt;)<br /></pre>
    <p>True if the expression is not true.<br /></p>
<pre>  if(&lt;expr1&gt; AND &lt;expr2&gt;)<br /></pre>
    <p>True if both expressions would be considered true individually.<br /></p>
<pre>  if(&lt;expr1&gt; OR &lt;expr2&gt;)<br /></pre>
    <p>True if either expression would be considered true individually.<br /></p>
<pre>  if(COMMAND command-name)<br /></pre>
    <p>True if the given name is a command, macro or function that can be invoked.<br /></p>
<pre>  if(POLICY policy-id)<br /></pre>
    <p>True if the given name is an existing policy (of the form CMP&lt;NNNN&gt;).<br /></p>
<pre>  if(TARGET target-name)<br /></pre>
    <p>True if the given name is an existing target, built or imported.<br /></p>
<pre>  if(EXISTS file-name)<br />  if(EXISTS directory-name)<br /></pre>
    <p>True if the named file or directory exists.  Behavior is well-defined only for full paths.<br /></p>
<pre>  if(file1 IS_NEWER_THAN file2)<br /></pre>
    <p>True if file1 is newer than file2 or if one of the two files doesn't exist. Behavior is well-defined only for full paths. If the file time stamps are exactly the same, an IS_NEWER_THAN comparison returns true, so that any dependent build operations will occur in the event of a tie. This includes the case of passing the same file name for both file1 and file2.<br /></p>
<pre>  if(IS_DIRECTORY directory-name)<br /></pre>
    <p>True if the given name is a directory.  Behavior is well-defined only for full paths.<br /></p>
<pre>  if(IS_SYMLINK file-name)<br /></pre>
    <p>True if the given name is a symbolic link.  Behavior is well-defined only for full paths.<br /></p>
<pre>  if(IS_ABSOLUTE path)<br /></pre>
    <p>True if the given path is an absolute path.<br /></p>
<pre>  if(&lt;variable|string&gt; MATCHES regex)<br /></pre>
    <p>True if the given string or variable's value matches the given regular expression.<br /></p>
<pre>  if(&lt;variable|string&gt; LESS &lt;variable|string&gt;)<br />  if(&lt;variable|string&gt; GREATER &lt;variable|string&gt;)<br />  if(&lt;variable|string&gt; EQUAL &lt;variable|string&gt;)<br /></pre>
    <p>True if the given string or variable's value is a valid number and the inequality or equality is true.<br /></p>
<pre>  if(&lt;variable|string&gt; STRLESS &lt;variable|string&gt;)<br />  if(&lt;variable|string&gt; STRGREATER &lt;variable|string&gt;)<br />  if(&lt;variable|string&gt; STREQUAL &lt;variable|string&gt;)<br /></pre>
    <p>True if the given string or variable's value is lexicographically less (or greater, or equal) than the string or variable on the right.<br /></p>
<pre>  if(&lt;variable|string&gt; VERSION_LESS &lt;variable|string&gt;)<br />  if(&lt;variable|string&gt; VERSION_EQUAL &lt;variable|string&gt;)<br />  if(&lt;variable|string&gt; VERSION_GREATER &lt;variable|string&gt;)<br /></pre>
    <p>Component-wise integer version number comparison (version format is major[.minor[.patch[.tweak]]]).<br /></p>
<pre>  if(DEFINED &lt;variable&gt;)<br /></pre>
    <p>True if the given variable is defined. It does not matter if the variable is true or false just if it has been set.<br /></p>
<pre>  if((expression) AND (expression OR (expression)))<br /></pre>
    <p>The expressions inside the parenthesis are evaluated first and then the remaining expression is evaluated as in the previous examples. Where there are nested parenthesis the innermost are evaluated as part of evaluating the expression that contains them.<br /></p>
<p>The if command was written very early in CMake's history, predating the ${} variable evaluation syntax, and for convenience evaluates variables named by its arguments as shown in the above signatures.  Note that normal variable evaluation with ${} applies before the if command even receives the arguments.  Therefore code like<br /></p>
<pre>  set(var1 OFF)<br />  set(var2 "var1")<br />  if(${var2})<br /></pre>
    <p>appears to the if command as<br /></p>
<pre>  if(var1)<br /></pre>
    <p>and is evaluated according to the if(&lt;variable&gt;) case documented above.  The result is OFF which is false.  However, if we remove the ${} from the example then the command sees<br /></p>
<pre>  if(var2)<br /></pre>
    <p>which is true because var2 is defined to "var1" which is not a false constant.<br /></p>
<p>Automatic evaluation applies in the other cases whenever the above-documented signature accepts &lt;variable|string&gt;:<br /></p>
<p>1) The left hand argument to MATCHES is first checked to see if it is a defined variable, if so the variable's value is used, otherwise the original value is used. <br /></p>
<p>2) If the left hand argument to MATCHES is missing it returns false without error <br /></p>
<p>3) Both left and right hand arguments to LESS GREATER EQUAL are independently tested to see if they are defined variables, if so their defined values are used otherwise the original value is used. <br /></p>
<p>4) Both left and right hand arguments to STRLESS STREQUAL STRGREATER are independently tested to see if they are defined variables, if so their defined values are used otherwise the original value is used. <br /></p>
<p>5) Both left and right hand argumemnts to VERSION_LESS VERSION_EQUAL VERSION_GREATER are independently tested to see if they are defined variables, if so their defined values are used otherwise the original value is used. <br /></p>
<p>6) The right hand argument to NOT is tested to see if it is a boolean constant, if so the value is used, otherwise it is assumed to be a variable and it is dereferenced. <br /></p>
<p>7) The left and right hand arguments to AND OR are independently tested to see if they are boolean constants, if so they are used as such, otherwise they are assumed to be variables and are dereferenced. <br /></p>

  </li>
  <li>
    <a name="command:include"></a><b><code>include</code></b>: Load and run CMake code from a file or module.<br />
    <pre>  include(&lt;file|module&gt; [OPTIONAL] [RESULT_VARIABLE &lt;VAR&gt;]<br />                        [NO_POLICY_SCOPE])<br /></pre>
    <p>Load and run CMake code from the file given.  Variable reads and writes access the scope of the caller (dynamic scoping).  If OPTIONAL is present, then no error is raised if the file does not exist.  If RESULT_VARIABLE is given the variable will be set to the full filename which has been included or NOTFOUND if it failed.<br /></p>
<p>If a module is specified instead of a file, the file with name &lt;modulename&gt;.cmake is searched first in CMAKE_MODULE_PATH, then in the CMake module directory. There is one exception to this: if the file which calls include() is located itself in the CMake module directory, then first the CMake module directory is searched and CMAKE_MODULE_PATH afterwards. See also policy CMP0017.<br /></p>
<p>See the cmake_policy() command documentation for discussion of the NO_POLICY_SCOPE option.</p>

  </li>
  <li>
    <a name="command:include_directories"></a><b><code>include_directories</code></b>: Add include directories to the build.<br />
    <pre>  include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)<br /></pre>
    <p>Add the given directories to those the compiler uses to search for include files.  Relative paths are interpreted as relative to the current source directory. <br /></p>
<p>The include directories are added to the directory property INCLUDE_DIRECTORIES for the current CMakeLists file. They are also added to the target property INCLUDE_DIRECTORIES for each target in the current CMakeLists file. The target property values are the ones used by the generators.<br /></p>
<p>By default the directories are appended onto the current list of directories. This default behavior can be changed by setting CMAKE_INCLUDE_DIRECTORIES_BEFORE to ON. By using AFTER or BEFORE explicitly, you can select between appending and prepending, independent of the default. <br /></p>
<p>If the SYSTEM option is given, the compiler will be told the directories are meant as system include directories on some platforms (signalling this setting might achieve effects such as the compiler skipping warnings, or these fixed-install system files not being considered in dependency calculations - see compiler docs).</p>

  </li>
  <li>
    <a name="command:include_external_msproject"></a><b><code>include_external_msproject</code></b>: Include an external Microsoft project file in a workspace.<br />
    <pre>  include_external_msproject(projectname location<br />                             [TYPE projectTypeGUID]<br />                             [GUID projectGUID]<br />                             [PLATFORM platformName]<br />                             dep1 dep2 ...)<br /></pre>
    <p>Includes an external Microsoft project in the generated workspace file.  Currently does nothing on UNIX. This will create a target named [projectname].  This can be used in the add_dependencies command to make things depend on the external project.<br /></p>
<p>TYPE, GUID and PLATFORM are optional parameters that allow one to specify the type of project, id (GUID) of the project and the name of the target platform.  This is useful for projects requiring values other than the default (e.g. WIX projects). These options are not supported by the Visual Studio 6 generator.</p>

  </li>
  <li>
    <a name="command:include_regular_expression"></a><b><code>include_regular_expression</code></b>: Set the regular expression used for dependency checking.<br />
    <pre>  include_regular_expression(regex_match [regex_complain])<br /></pre>
    <p>Set the regular expressions used in dependency checking.  Only files matching regex_match will be traced as dependencies.  Only files matching regex_complain will generate warnings if they cannot be found (standard header paths are not searched).  The defaults are:<br /></p>
<pre>  regex_match    = "^.*$" (match everything)<br />  regex_complain = "^$" (match empty string only)</pre>
    
  </li>
  <li>
    <a name="command:install"></a><b><code>install</code></b>: Specify rules to run at install time.<br />
    <p>This command generates installation rules for a project.  Rules specified by calls to this command within a source directory are executed in order during installation.  The order across directories is not defined.<br /></p>
<p>There are multiple signatures for this command.  Some of them define installation properties for files and targets.  Properties common to multiple signatures are covered here but they are valid only for signatures that specify them.<br /></p>
<p>DESTINATION arguments specify the directory on disk to which a file will be installed.  If a full path (with a leading slash or drive letter) is given it is used directly.  If a relative path is given it is interpreted relative to the value of CMAKE_INSTALL_PREFIX. The prefix can be relocated at install time using DESTDIR mechanism explained in the CMAKE_INSTALL_PREFIX variable documentation.<br /></p>
<p>PERMISSIONS arguments specify permissions for installed files.  Valid permissions are OWNER_READ, OWNER_WRITE, OWNER_EXECUTE, GROUP_READ, GROUP_WRITE, GROUP_EXECUTE, WORLD_READ, WORLD_WRITE, WORLD_EXECUTE, SETUID, and SETGID.  Permissions that do not make sense on certain platforms are ignored on those platforms.<br /></p>
<p>The CONFIGURATIONS argument specifies a list of build configurations for which the install rule applies (Debug, Release, etc.).<br /></p>
<p>The COMPONENT argument specifies an installation component name with which the install rule is associated, such as "runtime" or "development".  During component-specific installation only install rules associated with the given component name will be executed.  During a full installation all components are installed. If COMPONENT is not provided a default component "Unspecified" is created. The default component name may be controlled with the CMAKE_INSTALL_DEFAULT_COMPONENT_NAME variable.<br /></p>
<p>The RENAME argument specifies a name for an installed file that may be different from the original file.  Renaming is allowed only when a single file is installed by the command.<br /></p>
<p>The OPTIONAL argument specifies that it is not an error if the file to be installed does not exist.  <br /></p>
<p>The TARGETS signature:<br /></p>
<pre>  install(TARGETS targets... [EXPORT &lt;export-name&gt;]<br />          [[ARCHIVE|LIBRARY|RUNTIME|FRAMEWORK|BUNDLE|<br />            PRIVATE_HEADER|PUBLIC_HEADER|RESOURCE]<br />           [DESTINATION &lt;dir&gt;]<br />           [INCLUDES DESTINATION [&lt;dir&gt; ...]]<br />           [PERMISSIONS permissions...]<br />           [CONFIGURATIONS [Debug|Release|...]]<br />           [COMPONENT &lt;component&gt;]<br />           [OPTIONAL] [NAMELINK_ONLY|NAMELINK_SKIP]<br />          ] [...])<br /></pre>
    <p>The TARGETS form specifies rules for installing targets from a project.  There are five kinds of target files that may be installed: ARCHIVE, LIBRARY, RUNTIME, FRAMEWORK, and BUNDLE.  Executables are treated as RUNTIME targets, except that those marked with the MACOSX_BUNDLE property are treated as BUNDLE targets on OS X. Static libraries are always treated as ARCHIVE targets. Module libraries are always treated as LIBRARY targets. For non-DLL platforms shared libraries are treated as LIBRARY targets, except that those marked with the FRAMEWORK property are treated as FRAMEWORK targets on OS X.  For DLL platforms the DLL part of a shared library is treated as a RUNTIME target and the corresponding import library is treated as an ARCHIVE target. All Windows-based systems including Cygwin are DLL platforms. The ARCHIVE, LIBRARY, RUNTIME, and FRAMEWORK arguments change the type of target to which the subsequent properties apply.  If none is given the installation properties apply to all target types.  If only one is given then only targets of that type will be installed (which can be used to install just a DLL or just an import library).The INCLUDES DESTINATION specifies a list of directories which will be added to the INTERFACE_INCLUDE_DIRECTORIES of the &lt;targets&gt; when exported by install(EXPORT).  If a relative path is specified, it is treated as relative to the $&lt;INSTALL_PREFIX&gt;.<br /></p>
<p>The PRIVATE_HEADER, PUBLIC_HEADER, and RESOURCE arguments cause subsequent properties to be applied to installing a FRAMEWORK shared library target's associated files on non-Apple platforms.  Rules defined by these arguments are ignored on Apple platforms because the associated files are installed into the appropriate locations inside the framework folder.  See documentation of the PRIVATE_HEADER, PUBLIC_HEADER, and RESOURCE target properties for details.<br /></p>
<p>Either NAMELINK_ONLY or NAMELINK_SKIP may be specified as a LIBRARY option.  On some platforms a versioned shared library has a symbolic link such as<br /></p>
<pre>  lib&lt;name&gt;.so -&gt; lib&lt;name&gt;.so.1<br /></pre>
    <p>where "lib&lt;name&gt;.so.1" is the soname of the library and "lib&lt;name&gt;.so" is a "namelink" allowing linkers to find the library when given "-l&lt;name&gt;".  The NAMELINK_ONLY option causes installation of only the namelink when a library target is installed.  The NAMELINK_SKIP option causes installation of library files other than the namelink when a library target is installed.  When neither option is given both portions are installed.  On platforms where versioned shared libraries do not have namelinks or when a library is not versioned the NAMELINK_SKIP option installs the library and the NAMELINK_ONLY option installs nothing.  See the VERSION and SOVERSION target properties for details on creating versioned shared libraries.<br /></p>
<p>One or more groups of properties may be specified in a single call to the TARGETS form of this command.  A target may be installed more than once to different locations.  Consider hypothetical targets "myExe", "mySharedLib", and "myStaticLib".  The code<br /></p>
<pre>    install(TARGETS myExe mySharedLib myStaticLib<br />            RUNTIME DESTINATION bin<br />            LIBRARY DESTINATION lib<br />            ARCHIVE DESTINATION lib/static)<br />    install(TARGETS mySharedLib DESTINATION /some/full/path)<br /></pre>
    <p>will install myExe to &lt;prefix&gt;/bin and myStaticLib to &lt;prefix&gt;/lib/static.  On non-DLL platforms mySharedLib will be installed to &lt;prefix&gt;/lib and /some/full/path.  On DLL platforms the mySharedLib DLL will be installed to &lt;prefix&gt;/bin and /some/full/path and its import library will be installed to &lt;prefix&gt;/lib/static and /some/full/path.<br /></p>
<p>The EXPORT option associates the installed target files with an export called &lt;export-name&gt;.  It must appear before any RUNTIME, LIBRARY, or ARCHIVE options.  To actually install the export file itself, call install(EXPORT).  See documentation of the install(EXPORT ...) signature below for details.<br /></p>
<p>Installing a target with EXCLUDE_FROM_ALL set to true has undefined behavior.<br /></p>
<p>The FILES signature:<br /></p>
<pre>  install(FILES files... DESTINATION &lt;dir&gt;<br />          [PERMISSIONS permissions...]<br />          [CONFIGURATIONS [Debug|Release|...]]<br />          [COMPONENT &lt;component&gt;]<br />          [RENAME &lt;name&gt;] [OPTIONAL])<br /></pre>
    <p>The FILES form specifies rules for installing files for a project.  File names given as relative paths are interpreted with respect to the current source directory.  Files installed by this form are by default given permissions OWNER_WRITE, OWNER_READ, GROUP_READ, and WORLD_READ if no PERMISSIONS argument is given.<br /></p>
<p>The PROGRAMS signature:<br /></p>
<pre>  install(PROGRAMS files... DESTINATION &lt;dir&gt;<br />          [PERMISSIONS permissions...]<br />          [CONFIGURATIONS [Debug|Release|...]]<br />          [COMPONENT &lt;component&gt;]<br />          [RENAME &lt;name&gt;] [OPTIONAL])<br /></pre>
    <p>The PROGRAMS form is identical to the FILES form except that the default permissions for the installed file also include OWNER_EXECUTE, GROUP_EXECUTE, and WORLD_EXECUTE.  This form is intended to install programs that are not targets, such as shell scripts.  Use the TARGETS form to install targets built within the project.<br /></p>
<p>The DIRECTORY signature:<br /></p>
<pre>  install(DIRECTORY dirs... DESTINATION &lt;dir&gt;<br />          [FILE_PERMISSIONS permissions...]<br />          [DIRECTORY_PERMISSIONS permissions...]<br />          [USE_SOURCE_PERMISSIONS] [OPTIONAL]<br />          [CONFIGURATIONS [Debug|Release|...]]<br />          [COMPONENT &lt;component&gt;] [FILES_MATCHING]<br />          [[PATTERN &lt;pattern&gt; | REGEX &lt;regex&gt;]<br />           [EXCLUDE] [PERMISSIONS permissions...]] [...])<br /></pre>
    <p>The DIRECTORY form installs contents of one or more directories to a given destination.  The directory structure is copied verbatim to the destination.  The last component of each directory name is appended to the destination directory but a trailing slash may be used to avoid this because it leaves the last component empty.  Directory names given as relative paths are interpreted with respect to the current source directory.  If no input directory names are given the destination directory will be created but nothing will be installed into it.  The FILE_PERMISSIONS and DIRECTORY_PERMISSIONS options specify permissions given to files and directories in the destination.  If USE_SOURCE_PERMISSIONS is specified and FILE_PERMISSIONS is not, file permissions will be copied from the source directory structure.  If no permissions are specified files will be given the default permissions specified in the FILES form of the command, and the directories will be given the default permissions specified in the PROGRAMS form of the command.<br /></p>
<p>Installation of directories may be controlled with fine granularity using the PATTERN or REGEX options.  These "match" options specify a globbing pattern or regular expression to match directories or files encountered within input directories.  They may be used to apply certain options (see below) to a subset of the files and directories encountered.  The full path to each input file or directory (with forward slashes) is matched against the expression.  A PATTERN will match only complete file names: the portion of the full path matching the pattern must occur at the end of the file name and be preceded by a slash.  A REGEX will match any portion of the full path but it may use '/' and '$' to simulate the PATTERN behavior.  By default all files and directories are installed whether or not they are matched.  The FILES_MATCHING option may be given before the first match option to disable installation of files (but not directories) not matched by any expression.  For example, the code<br /></p>
<pre>  install(DIRECTORY src/ DESTINATION include/myproj<br />          FILES_MATCHING PATTERN "*.h")<br /></pre>
    <p>will extract and install header files from a source tree.<br /></p>
<p>Some options may follow a PATTERN or REGEX expression and are applied only to files or directories matching them.  The EXCLUDE option will skip the matched file or directory.  The PERMISSIONS option overrides the permissions setting for the matched file or directory.  For example the code<br /></p>
<pre>  install(DIRECTORY icons scripts/ DESTINATION share/myproj<br />          PATTERN "CVS" EXCLUDE<br />          PATTERN "scripts/*"<br />          PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ<br />                      GROUP_EXECUTE GROUP_READ)<br /></pre>
    <p>will install the icons directory to share/myproj/icons and the scripts directory to share/myproj.  The icons will get default file permissions, the scripts will be given specific permissions, and any CVS directories will be excluded.<br /></p>
<p>The SCRIPT and CODE signature:<br /></p>
<pre>  install([[SCRIPT &lt;file&gt;] [CODE &lt;code&gt;]] [...])<br /></pre>
    <p>The SCRIPT form will invoke the given CMake script files during installation.  If the script file name is a relative path it will be interpreted with respect to the current source directory.  The CODE form will invoke the given CMake code during installation.  Code is specified as a single argument inside a double-quoted string. For example, the code<br /></p>
<pre>  install(CODE "MESSAGE(\"Sample install message.\")")<br /></pre>
    <p>will print a message during installation.<br /></p>
<p>The EXPORT signature:<br /></p>
<pre>  install(EXPORT &lt;export-name&gt; DESTINATION &lt;dir&gt;<br />          [NAMESPACE &lt;namespace&gt;] [FILE &lt;name&gt;.cmake]<br />          [PERMISSIONS permissions...]<br />          [CONFIGURATIONS [Debug|Release|...]]<br />          [EXPORT_LINK_INTERFACE_LIBRARIES]<br />          [COMPONENT &lt;component&gt;])<br /></pre>
    <p>The EXPORT form generates and installs a CMake file containing code to import targets from the installation tree into another project.  Target installations are associated with the export &lt;export-name&gt; using the EXPORT option of the install(TARGETS ...) signature documented above.  The NAMESPACE option will prepend &lt;namespace&gt; to the target names as they are written to the import file.  By default the generated file will be called &lt;export-name&gt;.cmake but the FILE option may be used to specify a different name.  The value given to the FILE option must be a file name with the ".cmake" extension.  If a CONFIGURATIONS option is given then the file will only be installed when one of the named configurations is installed.  Additionally, the generated import file will reference only the matching target configurations.  The EXPORT_LINK_INTERFACE_LIBRARIES keyword, if present, causes the contents of the properties matching (IMPORTED_)?LINK_INTERFACE_LIBRARIES(_&lt;CONFIG&gt;)? to be exported, when policy CMP0022 is NEW.  If a COMPONENT option is specified that does not match that given to the targets associated with &lt;export-name&gt; the behavior is undefined.  If a library target is included in the export but a target to which it links is not included the behavior is unspecified.<br /></p>
<p>The EXPORT form is useful to help outside projects use targets built and installed by the current project.  For example, the code<br /></p>
<pre>  install(TARGETS myexe EXPORT myproj DESTINATION bin)<br />  install(EXPORT myproj NAMESPACE mp_ DESTINATION lib/myproj)<br /></pre>
    <p>will install the executable myexe to &lt;prefix&gt;/bin and code to import it in the file "&lt;prefix&gt;/lib/myproj/myproj.cmake".  An outside project may load this file with the include command and reference the myexe executable from the installation tree using the imported target name mp_myexe as if the target were built in its own tree.<br /></p>
<p>NOTE: This command supercedes the INSTALL_TARGETS command and the target properties PRE_INSTALL_SCRIPT and POST_INSTALL_SCRIPT.  It also replaces the FILES forms of the INSTALL_FILES and INSTALL_PROGRAMS commands.  The processing order of these install rules relative to those generated by INSTALL_TARGETS, INSTALL_FILES, and INSTALL_PROGRAMS commands is not defined.<br /></p>

  </li>
  <li>
    <a name="command:link_directories"></a><b><code>link_directories</code></b>: Specify directories in which the linker will look for libraries.<br />
    <pre>  link_directories(directory1 directory2 ...)<br /></pre>
    <p>Specify the paths in which the linker should search for libraries. The command will apply only to targets created after it is called. Relative paths given to this command are interpreted as relative to the current source directory, see CMP0015. <br /></p>
<p>Note that this command is rarely necessary.  Library locations returned by find_package() and find_library() are absolute paths.  Pass these absolute library file paths directly to the target_link_libraries() command.  CMake will ensure the linker finds them.</p>

  </li>
  <li>
    <a name="command:list"></a><b><code>list</code></b>: List operations.<br />
    <pre>  list(LENGTH &lt;list&gt; &lt;output variable&gt;)<br />  list(GET &lt;list&gt; &lt;element index&gt; [&lt;element index&gt; ...]<br />       &lt;output variable&gt;)<br />  list(APPEND &lt;list&gt; &lt;element&gt; [&lt;element&gt; ...])<br />  list(FIND &lt;list&gt; &lt;value&gt; &lt;output variable&gt;)<br />  list(INSERT &lt;list&gt; &lt;element_index&gt; &lt;element&gt; [&lt;element&gt; ...])<br />  list(REMOVE_ITEM &lt;list&gt; &lt;value&gt; [&lt;value&gt; ...])<br />  list(REMOVE_AT &lt;list&gt; &lt;index&gt; [&lt;index&gt; ...])<br />  list(REMOVE_DUPLICATES &lt;list&gt;)<br />  list(REVERSE &lt;list&gt;)<br />  list(SORT &lt;list&gt;)<br /></pre>
    <p>LENGTH will return a given list's length.<br /></p>
<p>GET will return list of elements specified by indices from the list.<br /></p>
<p>APPEND will append elements to the list.<br /></p>
<p>FIND will return the index of the element specified in the list or -1 if it wasn't found.<br /></p>
<p>INSERT will insert elements to the list to the specified location.<br /></p>
<p>REMOVE_AT and REMOVE_ITEM will remove items from the list. The difference is that REMOVE_ITEM will remove the given items, while REMOVE_AT will remove the items at the given indices.<br /></p>
<p>REMOVE_DUPLICATES will remove duplicated items in the list.<br /></p>
<p>REVERSE reverses the contents of the list in-place.<br /></p>
<p>SORT sorts the list in-place alphabetically.<br /></p>
<p>The list subcommands APPEND, INSERT, REMOVE_AT, REMOVE_ITEM, REMOVE_DUPLICATES, REVERSE and SORT may create new values for the list within the current CMake variable scope. Similar to the SET command, the LIST command creates new variable values in the current scope, even if the list itself is actually defined in a parent scope. To propagate the results of these operations upwards, use SET with PARENT_SCOPE, SET with CACHE INTERNAL, or some other means of value propagation.<br /></p>
<p>NOTES: A list in cmake is a ; separated group of strings. To create a list the set command can be used. For example, set(var a b c d e)  creates a list with a;b;c;d;e, and set(var "a b c d e") creates a string or a list with one item in it.<br /></p>
<p>When specifying index values, if &lt;element index&gt; is 0 or greater, it is indexed from the beginning of the list, with 0 representing the first list element. If &lt;element index&gt; is -1 or lesser, it is indexed from the end of the list, with -1 representing the last list element. Be careful when counting with negative indices: they do not start from 0. -0 is equivalent to 0, the first list element.<br /></p>

  </li>
  <li>
    <a name="command:load_cache"></a><b><code>load_cache</code></b>: Load in the values from another project's CMake cache.<br />
    <pre>  load_cache(pathToCacheFile READ_WITH_PREFIX<br />             prefix entry1...)<br /></pre>
    <p>Read the cache and store the requested entries in variables with their name prefixed with the given prefix.  This only reads the values, and does not create entries in the local project's cache.<br /></p>
<pre>  load_cache(pathToCacheFile [EXCLUDE entry1...]<br />             [INCLUDE_INTERNALS entry1...])<br /></pre>
    <p>Load in the values from another cache and store them in the local project's cache as internal entries.  This is useful for a project that depends on another project built in a different tree.  EXCLUDE option can be used to provide a list of entries to be excluded.  INCLUDE_INTERNALS can be used to provide a list of internal entries to be included.  Normally, no internal entries are brought in.  Use of this form of the command is strongly discouraged, but it is provided for backward compatibility.</p>

  </li>
  <li>
    <a name="command:load_command"></a><b><code>load_command</code></b>: Load a command into a running CMake.<br />
    <pre>  load_command(COMMAND_NAME &lt;loc1&gt; [loc2 ...])<br /></pre>
    <p>The given locations are searched for a library whose name is cmCOMMAND_NAME.  If found, it is loaded as a module and the command is added to the set of available CMake commands.  Usually, TRY_COMPILE is used before this command to compile the module. If the command is successfully loaded a variable named<br /></p>
<pre>  CMAKE_LOADED_COMMAND_&lt;COMMAND_NAME&gt;<br /></pre>
    <p>will be set to the full path of the module that was loaded.  Otherwise the variable will not be set.</p>

  </li>
  <li>
    <a name="command:macro"></a><b><code>macro</code></b>: Start recording a macro for later invocation as a command.<br />
    <pre>  macro(&lt;name&gt; [arg1 [arg2 [arg3 ...]]])<br />    COMMAND1(ARGS ...)<br />    COMMAND2(ARGS ...)<br />    ...<br />  endmacro(&lt;name&gt;)<br /></pre>
    <p>Define a macro named &lt;name&gt; that takes arguments named arg1 arg2 arg3 (...).  Commands listed after macro, but before the matching endmacro, are not invoked until the macro is invoked.  When it is invoked, the commands recorded in the macro are first modified by replacing formal parameters (${arg1}) with the arguments passed, and then invoked as normal commands. In addition to referencing the formal parameters you can reference the values ${ARGC} which will be set to the number of arguments passed into the function as well as ${ARGV0} ${ARGV1} ${ARGV2} ... which will have the actual values of the arguments passed in. This facilitates creating macros with optional arguments. Additionally ${ARGV} holds the list of all arguments given to the macro and ${ARGN} holds the list of arguments past the last expected argument. Note that the parameters to a macro and values such as ARGN are not variables in the usual CMake sense. They are string replacements much like the C preprocessor would do with a macro. If you want true CMake variables and/or better CMake scope control you should look at the function command.<br /></p>
<p>See the cmake_policy() command documentation for the behavior of policies inside macros.</p>

  </li>
  <li>
    <a name="command:mark_as_advanced"></a><b><code>mark_as_advanced</code></b>: Mark cmake cached variables as advanced.<br />
    <pre>  mark_as_advanced([CLEAR|FORCE] VAR VAR2 VAR...)<br /></pre>
    <p>Mark the named cached variables as advanced.  An advanced variable will not be displayed in any of the cmake GUIs unless the show advanced option is on.  If CLEAR is the first argument advanced variables are changed back to unadvanced.  If FORCE is the first argument, then the variable is made advanced.  If neither FORCE nor CLEAR is specified, new values will be marked as advanced, but if the variable already has an advanced/non-advanced state, it will not be changed.<br /></p>
<p>It does nothing in script mode.</p>

  </li>
  <li>
    <a name="command:math"></a><b><code>math</code></b>: Mathematical expressions.<br />
    <pre>  math(EXPR &lt;output variable&gt; &lt;math expression&gt;)<br /></pre>
    <p>EXPR evaluates mathematical expression and returns result in the output variable. Example mathematical expression is '5 * ( 10 + 13 )'.  Supported operators are + - * / % | &amp; ^ ~ &lt;&lt; &gt;&gt; * / %.  They have the same meaning  as they do in C code.</p>

  </li>
  <li>
    <a name="command:message"></a><b><code>message</code></b>: Display a message to the user.<br />
    <pre>  message([STATUS|WARNING|AUTHOR_WARNING|FATAL_ERROR|SEND_ERROR]<br />          "message to display" ...)<br /></pre>
    <p>The optional keyword determines the type of message:<br /></p>
<pre>  (none)         = Important information<br />  STATUS         = Incidental information<br />  WARNING        = CMake Warning, continue processing<br />  AUTHOR_WARNING = CMake Warning (dev), continue processing<br />  SEND_ERROR     = CMake Error, continue processing,<br />                                but skip generation<br />  FATAL_ERROR    = CMake Error, stop processing and generation<br /></pre>
    <p>The CMake command-line tool displays STATUS messages on stdout and all other message types on stderr.  The CMake GUI displays all messages in its log area.  The interactive dialogs (ccmake and CMakeSetup) show STATUS messages one at a time on a status line and other messages in interactive pop-up boxes.<br /></p>
<p>CMake Warning and Error message text displays using a simple markup language.  Non-indented text is formatted in line-wrapped paragraphs delimited by newlines.  Indented text is considered pre-formatted.</p>

  </li>
  <li>
    <a name="command:option"></a><b><code>option</code></b>: Provides an option that the user can optionally select.<br />
    <pre>  option(&lt;option_variable&gt; "help string describing option"<br />         [initial value])<br /></pre>
    <p>Provide an option for the user to select as ON or OFF.  If no initial value is provided, OFF is used.<br /></p>
<p>If you have options that depend on the values of other options, see the module help for CMakeDependentOption.</p>

  </li>
  <li>
    <a name="command:project"></a><b><code>project</code></b>: Set a name for the entire project.<br />
    <pre>  project(&lt;projectname&gt; [languageName1 languageName2 ... ] )<br /></pre>
    <p>Sets the name of the project.  Additionally this sets the variables &lt;projectName&gt;_BINARY_DIR and &lt;projectName&gt;_SOURCE_DIR to the respective values.<br /></p>
<p>Optionally you can specify which languages your project supports.  Example languages are CXX (i.e. C++), C, Fortran, etc. By default C and CXX are enabled.  E.g. if you do not have a C++ compiler, you can disable the check for it by explicitly listing the languages you want to support, e.g. C.  By using the special language "NONE" all checks for any language can be disabled. If a variable exists called CMAKE_PROJECT_&lt;projectName&gt;_INCLUDE, the file pointed to by that variable will be included as the last step of the project command.<br /></p>
<p>The top-level CMakeLists.txt file for a project must contain a literal, direct call to the project() command; loading one through the include() command is not sufficient.  If no such call exists CMake will implicitly add one to the top that enables the default languages (C and CXX).</p>

  </li>
  <li>
    <a name="command:qt_wrap_cpp"></a><b><code>qt_wrap_cpp</code></b>: Create Qt Wrappers.<br />
    <pre>  qt_wrap_cpp(resultingLibraryName DestName<br />              SourceLists ...)<br /></pre>
    <p>Produce moc files for all the .h files listed in the SourceLists.  The moc files will be added to the library using the DestName source list.</p>

  </li>
  <li>
    <a name="command:qt_wrap_ui"></a><b><code>qt_wrap_ui</code></b>: Create Qt user interfaces Wrappers.<br />
    <pre>  qt_wrap_ui(resultingLibraryName HeadersDestName<br />             SourcesDestName SourceLists ...)<br /></pre>
    <p>Produce .h and .cxx files for all the .ui files listed in the SourceLists.  The .h files will be added to the library using the HeadersDestNamesource list.  The .cxx files will be added to the library using the SourcesDestNamesource list.</p>

  </li>
  <li>
    <a name="command:remove_definitions"></a><b><code>remove_definitions</code></b>: Removes -D define flags added by add_definitions.<br />
    <pre>  remove_definitions(-DFOO -DBAR ...)<br /></pre>
    <p>Removes flags (added by add_definitions) from the compiler command line for sources in the current directory and below.</p>

  </li>
  <li>
    <a name="command:return"></a><b><code>return</code></b>: Return from a file, directory or function.<br />
    <pre>  return()<br /></pre>
    <p>Returns from a file, directory or function. When this command is encountered in an included file (via include() or find_package()), it causes processing of the current file to stop and control is returned to the including file. If it is encountered in a file which is not included by another file, e.g. a CMakeLists.txt, control is returned to the parent directory if there is one. If return is called in a function, control is returned to the caller of the function. Note that a macro is not a function and does not handle return like a function does.</p>

  </li>
  <li>
    <a name="command:separate_arguments"></a><b><code>separate_arguments</code></b>: Parse space-separated arguments into a semicolon-separated list.<br />
    <pre>  separate_arguments(&lt;var&gt; &lt;UNIX|WINDOWS&gt;_COMMAND "&lt;args&gt;")<br /></pre>
    <p>Parses a unix- or windows-style command-line string "&lt;args&gt;" and stores a semicolon-separated list of the arguments in &lt;var&gt;.  The entire command line must be given in one "&lt;args&gt;" argument.<br /></p>
<p>The UNIX_COMMAND mode separates arguments by unquoted whitespace.  It recognizes both single-quote and double-quote pairs.  A backslash escapes the next literal character (\" is "); there are no special escapes (\n is just n).<br /></p>
<p>The WINDOWS_COMMAND mode parses a windows command-line using the same syntax the runtime library uses to construct argv at startup.  It separates arguments by whitespace that is not double-quoted.  Backslashes are literal unless they precede double-quotes.  See the MSDN article "Parsing C Command-Line Arguments" for details.<br /></p>
<pre>  separate_arguments(VARIABLE)<br /></pre>
    <p>Convert the value of VARIABLE to a semi-colon separated list.  All spaces are replaced with ';'.  This helps with generating command lines.</p>

  </li>
  <li>
    <a name="command:set"></a><b><code>set</code></b>: Set a CMake, cache or environment variable to a given value.<br />
    <pre>  set(&lt;variable&gt; &lt;value&gt;<br />      [[CACHE &lt;type&gt; &lt;docstring&gt; [FORCE]] | PARENT_SCOPE])<br /></pre>
    <p>Within CMake sets &lt;variable&gt; to the value &lt;value&gt;.  &lt;value&gt; is expanded before &lt;variable&gt; is set to it.  Normally, set will set a regular CMake variable. If CACHE is present, then the &lt;variable&gt; is put in the cache instead, unless it is already in the cache. See section 'Variable types in CMake' below for details of regular and cache variables and their interactions. If CACHE is used, &lt;type&gt; and &lt;docstring&gt; are required. &lt;type&gt; is used by the CMake GUI to choose a widget with which the user sets a value. The value for &lt;type&gt; may be one of<br /></p>
<pre>  FILEPATH = File chooser dialog.<br />  PATH     = Directory chooser dialog.<br />  STRING   = Arbitrary string.<br />  BOOL     = Boolean ON/OFF checkbox.<br />  INTERNAL = No GUI entry (used for persistent variables).<br /></pre>
    <p>If &lt;type&gt; is INTERNAL, the cache variable is marked as internal, and will not be shown to the user in tools like cmake-gui. This is intended for values that should be persisted in the cache, but which users should not normally change. INTERNAL implies FORCE.<br /></p>
<p>Normally, set(...CACHE...) creates cache variables, but does not modify them. If FORCE is specified, the value of the cache variable is set, even if the variable is already in the cache. This should normally be avoided, as it will remove any changes to the cache variable's value by the user.<br /></p>
<p>If PARENT_SCOPE is present, the variable will be set in the scope above the current scope. Each new directory or function creates a new scope. This command will set the value of a variable into the parent directory or calling function (whichever is applicable to the case at hand). PARENT_SCOPE cannot be combined with CACHE.<br /></p>
<p>If &lt;value&gt; is not specified then the variable is removed instead of set.  See also: the unset() command.<br /></p>
<pre>  set(&lt;variable&gt; &lt;value1&gt; ... &lt;valueN&gt;)<br /></pre>
    <p>In this case &lt;variable&gt; is set to a semicolon separated list of values.<br /></p>
<p>&lt;variable&gt; can be an environment variable such as:<br /></p>
<pre>  set( ENV{PATH} /home/martink )<br /></pre>
    <p>in which case the environment variable will be set.<br /></p>
<p>*** Variable types in CMake ***<br /></p>
<p>In CMake there are two types of variables: normal variables and cache variables. Normal variables are meant for the internal use of the script (just like variables in most programming languages); they are not persisted across CMake runs. Cache variables (unless set with INTERNAL) are mostly intended for configuration settings where the first CMake run determines a suitable default value, which the user can then override, by editing the cache with tools such as ccmake or cmake-gui. Cache variables are stored in the CMake cache file, and are persisted across CMake runs. <br /></p>
<p>Both types can exist at the same time with the same name but different values. When ${FOO} is evaluated, CMake first looks for a normal variable 'FOO' in scope and uses it if set. If and only if no normal variable exists then it falls back to the cache variable 'FOO'.<br /></p>
<p>Some examples:<br /></p>
<p>The code 'set(FOO "x")' sets the normal variable 'FOO'. It does not touch the cache, but it will hide any existing cache value 'FOO'.<br /></p>
<p>The code 'set(FOO "x" CACHE ...)' checks for 'FOO' in the cache, ignoring any normal variable of the same name. If 'FOO' is in the cache then nothing happens to either the normal variable or the cache variable. If 'FOO' is not in the cache, then it is added to the cache.<br /></p>
<p>Finally, whenever a cache variable is added or modified by a command, CMake also *removes* the normal variable of the same name from the current scope so that an immediately following evaluation of it will expose the newly cached value.<br /></p>
<p>Normally projects should avoid using normal and cache variables of the same name, as this interaction can be hard to follow. However, in some situations it can be useful. One example (used by some projects):<br /></p>
<p>A project has a subproject in its source tree. The child project has its own CMakeLists.txt, which is included from the parent CMakeLists.txt using add_subdirectory(). Now, if the parent and the child project provide the same option (for example a compiler option), the parent gets the first chance to add a user-editable option to the cache. Normally, the child would then use the same value that the parent uses. However, it may be necessary to hard-code the value for the child project's option while still allowing the user to edit the value used by the parent project. The parent project can achieve this simply by setting a normal variable with the same name as the option in a scope sufficient to hide the option's cache variable from the child completely. The parent has already set the cache variable,  so the child's set(...CACHE...) will do nothing, and evaluating the option variable will use the value from the normal variable, which hides the cache variable.</p>

  </li>
  <li>
    <a name="command:set_directory_properties"></a><b><code>set_directory_properties</code></b>: Set a property of the directory.<br />
    <pre>  set_directory_properties(PROPERTIES prop1 value1 prop2 value2)<br /></pre>
    <p>Set a property for the current directory and subdirectories. If the property is not found, CMake will report an error. The properties include: INCLUDE_DIRECTORIES, LINK_DIRECTORIES, INCLUDE_REGULAR_EXPRESSION, and ADDITIONAL_MAKE_CLEAN_FILES. ADDITIONAL_MAKE_CLEAN_FILES is a list of files that will be cleaned as a part of "make clean" stage.</p>

  </li>
  <li>
    <a name="command:set_property"></a><b><code>set_property</code></b>: Set a named property in a given scope.<br />
    <pre>  set_property(&lt;GLOBAL                            |<br />                DIRECTORY [dir]                   |<br />                TARGET    [target1 [target2 ...]] |<br />                SOURCE    [src1 [src2 ...]]       |<br />                TEST      [test1 [test2 ...]]     |<br />                CACHE     [entry1 [entry2 ...]]&gt;<br />               [APPEND] [APPEND_STRING]<br />               PROPERTY &lt;name&gt; [value1 [value2 ...]])<br /></pre>
    <p>Set one property on zero or more objects of a scope.  The first argument determines the scope in which the property is set.  It must be one of the following:<br /></p>
<p>GLOBAL scope is unique and does not accept a name.<br /></p>
<p>DIRECTORY scope defaults to the current directory but another directory (already processed by CMake) may be named by full or relative path.<br /></p>
<p>TARGET scope may name zero or more existing targets.<br /></p>
<p>SOURCE scope may name zero or more source files.  Note that source file properties are visible only to targets added in the same directory (CMakeLists.txt).<br /></p>
<p>TEST scope may name zero or more existing tests.<br /></p>
<p>CACHE scope must name zero or more cache existing entries.<br /></p>
<p>The required PROPERTY option is immediately followed by the name of the property to set.  Remaining arguments are used to compose the property value in the form of a semicolon-separated list.  If the APPEND option is given the list is appended to any existing property value.If the APPEND_STRING option is given the string is append to any existing property value as string, i.e. it results in a longer string and not a list of strings.</p>

  </li>
  <li>
    <a name="command:set_source_files_properties"></a><b><code>set_source_files_properties</code></b>: Source files can have properties that affect how they are built.<br />
    <pre>  set_source_files_properties([file1 [file2 [...]]]<br />                              PROPERTIES prop1 value1<br />                              [prop2 value2 [...]])<br /></pre>
    <p>Set properties associated with source files using a key/value paired list.  See properties documentation for those known to CMake.  Unrecognized properties are ignored.  Source file properties are visible only to targets added in the same directory (CMakeLists.txt).</p>

  </li>
  <li>
    <a name="command:set_target_properties"></a><b><code>set_target_properties</code></b>: Targets can have properties that affect how they are built.<br />
    <pre>  set_target_properties(target1 target2 ...<br />                        PROPERTIES prop1 value1<br />                        prop2 value2 ...)<br /></pre>
    <p>Set properties on a target. The syntax for the command is to list all the files you want to change, and then provide the values you want to set next.  You can use any prop value pair you want and extract it later with the GET_TARGET_PROPERTY command.<br /></p>
<p>Properties that affect the name of a target's output file are as follows.  The PREFIX and SUFFIX properties override the default target name prefix (such as "lib") and suffix (such as ".so"). IMPORT_PREFIX and IMPORT_SUFFIX are the equivalent properties for the import library corresponding to a DLL (for SHARED library targets).  OUTPUT_NAME sets the real name of a target when it is built and can be used to help create two targets of the same name even though CMake requires unique logical target names.  There is also a &lt;CONFIG&gt;_OUTPUT_NAME that can set the output name on a per-configuration basis.  &lt;CONFIG&gt;_POSTFIX sets a postfix for the real name of the target when it is built under the configuration named by &lt;CONFIG&gt; (in upper-case, such as "DEBUG_POSTFIX").  The value of this property is initialized when the target is created to the value of the variable CMAKE_&lt;CONFIG&gt;_POSTFIX (except for executable targets because earlier CMake versions which did not use this variable for executables).<br /></p>
<p>The LINK_FLAGS property can be used to add extra flags to the link step of a target. LINK_FLAGS_&lt;CONFIG&gt; will add to the configuration &lt;CONFIG&gt;, for example, DEBUG, RELEASE, MINSIZEREL, RELWITHDEBINFO. DEFINE_SYMBOL sets the name of the preprocessor symbol defined when compiling sources in a shared library. If not set here then it is set to target_EXPORTS by default (with some substitutions if the target is not a valid C identifier). This is useful for headers to know whether they are being included from inside their library or outside to properly setup dllexport/dllimport decorations. The COMPILE_FLAGS property sets additional compiler flags used to build sources within the target.  It may also be used to pass additional preprocessor definitions.<br /></p>
<p>The LINKER_LANGUAGE property is used to change the tool used to link an executable or shared library. The default is set the language to match the files in the library. CXX and C are common values for this property.<br /></p>
<p>For shared libraries VERSION and SOVERSION can be used to specify the build version and API version respectively. When building or installing appropriate symlinks are created if the platform supports symlinks and the linker supports so-names. If only one of both is specified the missing is assumed to have the same version number. For executables VERSION can be used to specify the build version. When building or installing appropriate symlinks are created if the platform supports symlinks. For shared libraries and executables on Windows the VERSION attribute is parsed to extract a "major.minor" version number. These numbers are used as the image version of the binary. <br /></p>
<p>There are a few properties used to specify RPATH rules. INSTALL_RPATH is a semicolon-separated list specifying the rpath to use in installed targets (for platforms that support it). INSTALL_RPATH_USE_LINK_PATH is a boolean that if set to true will append directories in the linker search path and outside the project to the INSTALL_RPATH. SKIP_BUILD_RPATH is a boolean specifying whether to skip automatic generation of an rpath allowing the target to run from the build tree. BUILD_WITH_INSTALL_RPATH is a boolean specifying whether to link the target in the build tree with the INSTALL_RPATH.  This takes precedence over SKIP_BUILD_RPATH and avoids the need for relinking before installation.  INSTALL_NAME_DIR is a string specifying the directory portion of the "install_name" field of shared libraries on Mac OSX to use in the installed targets. When the target is created the values of the variables CMAKE_INSTALL_RPATH, CMAKE_INSTALL_RPATH_USE_LINK_PATH, CMAKE_SKIP_BUILD_RPATH, CMAKE_BUILD_WITH_INSTALL_RPATH, and CMAKE_INSTALL_NAME_DIR are used to initialize these properties.<br /></p>
<p>PROJECT_LABEL can be used to change the name of the target in an IDE like visual studio.  VS_KEYWORD can be set to change the visual studio keyword, for example Qt integration works better if this is set to Qt4VSv1.0.<br /></p>
<p>VS_SCC_PROJECTNAME, VS_SCC_LOCALPATH, VS_SCC_PROVIDER and VS_SCC_AUXPATH can be set to add support for source control bindings in a  Visual Studio project file.<br /></p>
<p>VS_GLOBAL_&lt;variable&gt; can be set to add a Visual Studio project-specific global variable. Qt integration works better if VS_GLOBAL_QtVersion is set to the Qt version FindQt4.cmake found. For example, "4.7.3"<br /></p>
<p>The PRE_INSTALL_SCRIPT and POST_INSTALL_SCRIPT properties are the old way to specify CMake scripts to run before and after installing a target.  They are used only when the old INSTALL_TARGETS command is used to install the target.  Use the INSTALL command instead.<br /></p>
<p>The EXCLUDE_FROM_DEFAULT_BUILD property is used by the visual studio generators.  If it is set to 1 the target will not be part of the default build when you select "Build Solution". This can also be set on a per-configuration basis using EXCLUDE_FROM_DEFAULT_BUILD_&lt;CONFIG&gt;.</p>

  </li>
  <li>
    <a name="command:set_tests_properties"></a><b><code>set_tests_properties</code></b>: Set a property of the tests.<br />
    <pre>  set_tests_properties(test1 [test2...] PROPERTIES prop1 value1 prop2 value2)<br /></pre>
    <p>Set a property for the tests. If the property is not found, CMake will report an error. The properties include:<br /></p>
<p>WILL_FAIL: If set to true, this will invert the pass/fail flag of the test.<br /></p>
<p>PASS_REGULAR_EXPRESSION: If set, the test output will be checked against the specified regular expressions and at least one of the regular expressions has to match, otherwise the test will fail.<br /></p>
<pre>  Example: PASS_REGULAR_EXPRESSION "TestPassed;All ok"<br /></pre>
    <p>FAIL_REGULAR_EXPRESSION: If set, if the output will match to one of specified regular expressions, the test will fail.<br /></p>
<pre>  Example: PASS_REGULAR_EXPRESSION "[^a-z]Error;ERROR;Failed"<br /></pre>
    <p>Both PASS_REGULAR_EXPRESSION and FAIL_REGULAR_EXPRESSION expect a list of regular expressions.<br /></p>
<p>TIMEOUT: Setting this will limit the test runtime to the number of seconds specified.<br /></p>

  </li>
  <li>
    <a name="command:site_name"></a><b><code>site_name</code></b>: Set the given variable to the name of the computer.<br />
    <pre>  site_name(variable)<br /></pre>
    
  </li>
  <li>
    <a name="command:source_group"></a><b><code>source_group</code></b>: Define a grouping for sources in the makefile.<br />
    <pre>  source_group(name [REGULAR_EXPRESSION regex] [FILES src1 src2 ...])<br /></pre>
    <p>Defines a group into which sources will be placed in project files.  This is mainly used to setup file tabs in Visual Studio.  Any file whose name is listed or matches the regular expression will be placed in this group.  If a file matches multiple groups, the LAST group that explicitly lists the file will be favored, if any.  If no group explicitly lists the file, the LAST group whose regular expression matches the file will be favored.<br /></p>
<p>The name of the group may contain backslashes to specify subgroups:<br /></p>
<pre>  source_group(outer\\inner ...)<br /></pre>
    <p>For backwards compatibility, this command also supports the format:<br /></p>
<pre>  source_group(name regex)</pre>
    
  </li>
  <li>
    <a name="command:string"></a><b><code>string</code></b>: String operations.<br />
    <pre>  string(REGEX MATCH &lt;regular_expression&gt;<br />         &lt;output variable&gt; &lt;input&gt; [&lt;input&gt;...])<br />  string(REGEX MATCHALL &lt;regular_expression&gt;<br />         &lt;output variable&gt; &lt;input&gt; [&lt;input&gt;...])<br />  string(REGEX REPLACE &lt;regular_expression&gt;<br />         &lt;replace_expression&gt; &lt;output variable&gt;<br />         &lt;input&gt; [&lt;input&gt;...])<br />  string(REPLACE &lt;match_string&gt;<br />         &lt;replace_string&gt; &lt;output variable&gt;<br />         &lt;input&gt; [&lt;input&gt;...])<br />  string(&lt;MD5|SHA1|SHA224|SHA256|SHA384|SHA512&gt;<br />         &lt;output variable&gt; &lt;input&gt;)<br />  string(COMPARE EQUAL &lt;string1&gt; &lt;string2&gt; &lt;output variable&gt;)<br />  string(COMPARE NOTEQUAL &lt;string1&gt; &lt;string2&gt; &lt;output variable&gt;)<br />  string(COMPARE LESS &lt;string1&gt; &lt;string2&gt; &lt;output variable&gt;)<br />  string(COMPARE GREATER &lt;string1&gt; &lt;string2&gt; &lt;output variable&gt;)<br />  string(ASCII &lt;number&gt; [&lt;number&gt; ...] &lt;output variable&gt;)<br />  string(CONFIGURE &lt;string1&gt; &lt;output variable&gt;<br />         [@ONLY] [ESCAPE_QUOTES])<br />  string(TOUPPER &lt;string1&gt; &lt;output variable&gt;)<br />  string(TOLOWER &lt;string1&gt; &lt;output variable&gt;)<br />  string(LENGTH &lt;string&gt; &lt;output variable&gt;)<br />  string(SUBSTRING &lt;string&gt; &lt;begin&gt; &lt;length&gt; &lt;output variable&gt;)<br />  string(STRIP &lt;string&gt; &lt;output variable&gt;)<br />  string(RANDOM [LENGTH &lt;length&gt;] [ALPHABET &lt;alphabet&gt;]<br />         [RANDOM_SEED &lt;seed&gt;] &lt;output variable&gt;)<br />  string(FIND &lt;string&gt; &lt;substring&gt; &lt;output variable&gt; [REVERSE])<br />  string(TIMESTAMP &lt;output variable&gt; [&lt;format string&gt;] [UTC])<br />  string(MAKE_C_IDENTIFIER &lt;input string&gt; &lt;output variable&gt;)<br /></pre>
    <p>REGEX MATCH will match the regular expression once and store the match in the output variable.<br /></p>
<p>REGEX MATCHALL will match the regular expression as many times as possible and store the matches in the output variable as a list.<br /></p>
<p>REGEX REPLACE will match the regular expression as many times as possible and substitute the replacement expression for the match in the output.  The replace expression may refer to paren-delimited subexpressions of the match using \1, \2, ..., \9.  Note that two backslashes (\\1) are required in CMake code to get a backslash through argument parsing.<br /></p>
<p>REPLACE will replace all occurrences of match_string in the input with replace_string and store the result in the output.<br /></p>
<p>MD5, SHA1, SHA224, SHA256, SHA384, and SHA512 will compute a cryptographic hash of the input string.<br /></p>
<p>COMPARE EQUAL/NOTEQUAL/LESS/GREATER will compare the strings and store true or false in the output variable.<br /></p>
<p>ASCII will convert all numbers into corresponding ASCII characters.<br /></p>
<p>CONFIGURE will transform a string like CONFIGURE_FILE transforms a file.<br /></p>
<p>TOUPPER/TOLOWER will convert string to upper/lower characters.<br /></p>
<p>LENGTH will return a given string's length.<br /></p>
<p>SUBSTRING will return a substring of a given string. If length is -1 the remainder of the string starting at begin will be returned.<br /></p>
<p>STRIP will return a substring of a given string with leading and trailing spaces removed.<br /></p>
<p>RANDOM will return a random string of given length consisting of characters from the given alphabet. Default length is 5 characters and default alphabet is all numbers and upper and lower case letters.  If an integer RANDOM_SEED is given, its value will be used to seed the random number generator.<br /></p>
<p>FIND will return the position where the given substring was found in the supplied string. If the REVERSE flag was used, the command will search for the position of the last occurrence of the specified substring.<br /></p>
<p>The following characters have special meaning in regular expressions:<br /></p>
<pre>   ^         Matches at beginning of input<br />   $         Matches at end of input<br />   .         Matches any single character<br />   [ ]       Matches any character(s) inside the brackets<br />   [^ ]      Matches any character(s) not inside the brackets<br />    -        Inside brackets, specifies an inclusive range between<br />             characters on either side e.g. [a-f] is [abcdef]<br />             To match a literal - using brackets, make it the first<br />             or the last character e.g. [+*/-] matches basic<br />             mathematical operators.<br />   *         Matches preceding pattern zero or more times<br />   +         Matches preceding pattern one or more times<br />   ?         Matches preceding pattern zero or once only<br />   |         Matches a pattern on either side of the |<br />   ()        Saves a matched subexpression, which can be referenced <br />             in the REGEX REPLACE operation. Additionally it is saved<br />             by all regular expression-related commands, including <br />             e.g. if( MATCHES ), in the variables CMAKE_MATCH_(0..9).<br /></pre>
    <p>*, + and ? have higher precedence than concatenation. | has lower precedence than concatenation. This means that the regular expression "^ab+d$" matches "abbd" but not "ababd", and the regular expression "^(ab|cd)$" matches "ab" but not "abd".<br /></p>
<p>TIMESTAMP will write a string representation of the current date and/or time to the output variable.<br /></p>
<p>Should the command be unable to obtain a timestamp the output variable will be set to the empty string "".<br /></p>
<p>The optional UTC flag requests the current date/time representation to be in Coordinated Universal Time (UTC) rather than local time.<br /></p>
<p>The optional &lt;format string&gt; may contain the following format specifiers: <br /></p>
<pre>   %d        The day of the current month (01-31).<br />   %H        The hour on a 24-hour clock (00-23).<br />   %I        The hour on a 12-hour clock (01-12).<br />   %j        The day of the current year (001-366).<br />   %m        The month of the current year (01-12).<br />   %M        The minute of the current hour (00-59).<br />   %S        The second of the current minute.<br />             60 represents a leap second. (00-60)<br />   %U        The week number of the current year (00-53).<br />   %w        The day of the current week. 0 is Sunday. (0-6)<br />   %y        The last two digits of the current year (00-99)<br />   %Y        The current year. <br /></pre>
    <p>Unknown format specifiers will be ignored and copied to the output as-is.<br /></p>
<p>If no explicit &lt;format string&gt; is given it will default to:<br /></p>
<pre>   %Y-%m-%dT%H:%M:%S    for local time.<br />   %Y-%m-%dT%H:%M:%SZ   for UTC.<br /></pre>
    <p>MAKE_C_IDENTIFIER will write a string which can be used as an identifier in C.</p>

  </li>
  <li>
    <a name="command:target_compile_definitions"></a><b><code>target_compile_definitions</code></b>: Add compile definitions to a target.<br />
    <pre>  target_compile_definitions(&lt;target&gt; &lt;INTERFACE|PUBLIC|PRIVATE&gt; [items1...]<br />    [&lt;INTERFACE|PUBLIC|PRIVATE&gt; [items2...] ...])<br /></pre>
    <p>Specify compile definitions to use when compiling a given target.  The named &lt;target&gt; must have been created by a command such as add_executable or add_library and must not be an IMPORTED target.  The INTERFACE, PUBLIC and PRIVATE keywords are required to specify the scope of the following arguments.  PRIVATE and PUBLIC items will populate the COMPILE_DEFINITIONS property of &lt;target&gt;.  PUBLIC and INTERFACE items will populate the INTERFACE_COMPILE_DEFINITIONS property of &lt;target&gt;.   The following arguments specify compile definitions.  Repeated calls for the same &lt;target&gt; append items in the order called.<br /></p>
<p>Arguments to target_compile_definitions may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="command:target_compile_options"></a><b><code>target_compile_options</code></b>: Add compile options to a target.<br />
    <pre>  target_compile_options(&lt;target&gt; [BEFORE] &lt;INTERFACE|PUBLIC|PRIVATE&gt; [items1...]<br />    [&lt;INTERFACE|PUBLIC|PRIVATE&gt; [items2...] ...])<br /></pre>
    <p>Specify compile options to use when compiling a given target.  The named &lt;target&gt; must have been created by a command such as add_executable or add_library and must not be an IMPORTED target.  If BEFORE is specified, the content will be prepended to the property instead of being appended.<br /></p>
<p>The INTERFACE, PUBLIC and PRIVATE keywords are required to specify the scope of the following arguments.  PRIVATE and PUBLIC items will populate the COMPILE_OPTIONS property of &lt;target&gt;.  PUBLIC and INTERFACE items will populate the INTERFACE_COMPILE_OPTIONS property of &lt;target&gt;.   The following arguments specify compile opitions.  Repeated calls for the same &lt;target&gt; append items in the order called.<br /></p>
<p>Arguments to target_compile_options may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="command:target_include_directories"></a><b><code>target_include_directories</code></b>: Add include directories to a target.<br />
    <pre>  target_include_directories(&lt;target&gt; [SYSTEM] [BEFORE] &lt;INTERFACE|PUBLIC|PRIVATE&gt; [items1...]<br />    [&lt;INTERFACE|PUBLIC|PRIVATE&gt; [items2...] ...])<br /></pre>
    <p>Specify include directories or targets to use when compiling a given target.  The named &lt;target&gt; must have been created by a command such as add_executable or add_library and must not be an IMPORTED target.<br /></p>
<p>If BEFORE is specified, the content will be prepended to the property instead of being appended.<br /></p>
<p>The INTERFACE, PUBLIC and PRIVATE keywords are required to specify the scope of the following arguments.  PRIVATE and PUBLIC items will populate the INCLUDE_DIRECTORIES property of &lt;target&gt;.  PUBLIC and INTERFACE items will populate the INTERFACE_INCLUDE_DIRECTORIES property of &lt;target&gt;.   The following arguments specify include directories.  Specified include directories may be absolute paths or relative paths.  Repeated calls for the same &lt;target&gt; append items in the order called.If SYSTEM is specified, the compiler will be told the directories are meant as system include directories on some platforms (signalling this setting might achieve effects such as the compiler skipping warnings, or these fixed-install system files not being considered in dependency calculations - see compiler docs).  If SYSTEM is used together with PUBLIC or INTERFACE, the INTERFACE_SYSTEM_INCLUDE_DIRECTORIES target property will be populated with the specified directories.<br /></p>
<p>Arguments to target_include_directories may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="command:target_link_libraries"></a><b><code>target_link_libraries</code></b>: Link a target to given libraries.<br />
    <pre>  target_link_libraries(&lt;target&gt; [item1 [item2 [...]]]<br />                        [[debug|optimized|general] &lt;item&gt;] ...)<br /></pre>
    <p>Specify libraries or flags to use when linking a given target.  The named &lt;target&gt; must have been created in the current directory by a command such as add_executable or add_library.  The remaining arguments specify library names or flags.  Repeated calls for the same &lt;target&gt; append items in the order called.<br /></p>
<p>If a library name matches that of another target in the project a dependency will automatically be added in the build system to make sure the library being linked is up-to-date before the target links.  Item names starting with '-', but not '-l' or '-framework', are treated as linker flags.<br /></p>
<p>A "debug", "optimized", or "general" keyword indicates that the library immediately following it is to be used only for the corresponding build configuration.  The "debug" keyword corresponds to the Debug configuration (or to configurations named in the DEBUG_CONFIGURATIONS global property if it is set).  The "optimized" keyword corresponds to all other configurations.  The "general" keyword corresponds to all configurations, and is purely optional (assumed if omitted).  Higher granularity may be achieved for per-configuration rules by creating and linking to IMPORTED library targets.  See the IMPORTED mode of the add_library command for more information.  <br /></p>
<p>Library dependencies are transitive by default with this signature.  When this target is linked into another target then the libraries linked to this target will appear on the link line for the other target too.  This transitive "link interface" is stored in the INTERFACE_LINK_LIBRARIES target property when policy CMP0022 is set to NEW and may be overridden by setting the property directly. (When CMP0022 is not set to NEW, transitive linking is builtin but may be overridden by the LINK_INTERFACE_LIBRARIES property.  Calls to other signatures of this command may set the property making any libraries linked exclusively by this signature private.)<br /></p>
<p>CMake will also propagate "usage requirements" from linked library targets.  Usage requirements affect compilation of sources in the &lt;target&gt;.  They are specified by properties defined on linked targets.  During generation of the build system, CMake integrates usage requirement property values with the corresponding build properties for &lt;target&gt;:<br /></p>
<pre> INTERFACE_COMPILE_DEFINITONS: Appends to COMPILE_DEFINITONS<br /> INTERFACE_INCLUDE_DIRECTORIES: Appends to INCLUDE_DIRECTORIES<br /> INTERFACE_POSITION_INDEPENDENT_CODE: Sets POSITION_INDEPENDENT_CODE<br />   or checked for consistency with existing value<br /></pre>
    <p><br /></p>
<p>If an &lt;item&gt; is a library in a Mac OX framework, the Headers directory of the framework will also be processed as a "usage requirement".  This has the same effect as passing the framework directory as an include directory.  target_link_libraries(&lt;target&gt;<br /></p>
<pre>                      &lt;PRIVATE|PUBLIC|INTERFACE&gt; &lt;lib&gt; ...<br />                      [&lt;PRIVATE|PUBLIC|INTERFACE&gt; &lt;lib&gt; ... ] ...])<br /></pre>
    <p>The PUBLIC, PRIVATE and INTERFACE keywords can be used to specify both the link dependencies and the link interface in one command.  Libraries and targets following PUBLIC are linked to, and are made part of the link interface.  Libraries and targets following PRIVATE are linked to, but are not made part of the link interface.  Libraries following INTERFACE are appended to the link interface and are not used for linking &lt;target&gt;.<br /></p>
<pre>  target_link_libraries(&lt;target&gt; LINK_INTERFACE_LIBRARIES<br />                        [[debug|optimized|general] &lt;lib&gt;] ...)<br /></pre>
    <p>The LINK_INTERFACE_LIBRARIES mode appends the libraries to the INTERFACE_LINK_LIBRARIES target property instead of using them for linking.  If policy CMP0022 is not NEW, then this mode also appends libraries to the LINK_INTERFACE_LIBRARIES and its per-configuration equivalent.  This signature is for compatibility only. Prefer the INTERFACE mode instead.  Libraries specified as "debug" are wrapped in a generator expression to correspond to debug builds.  If policy CMP0022 is not NEW, the libraries are also appended to the LINK_INTERFACE_LIBRARIES_DEBUG property (or to the properties corresponding to configurations listed in the DEBUG_CONFIGURATIONS global property if it is set).  Libraries specified as "optimized" are appended to the INTERFACE_LINK_LIBRARIES property.  If policy CMP0022 is not NEW, they are also appended to the LINK_INTERFACE_LIBRARIES property.  Libraries specified as "general" (or without any keyword) are treated as if specified for both "debug" and "optimized".<br /></p>
<pre>  target_link_libraries(&lt;target&gt;<br />                        &lt;LINK_PRIVATE|LINK_PUBLIC&gt;<br />                          [[debug|optimized|general] &lt;lib&gt;] ...<br />                        [&lt;LINK_PRIVATE|LINK_PUBLIC&gt;<br />                          [[debug|optimized|general] &lt;lib&gt;] ...])<br /></pre>
    <p>The LINK_PUBLIC and LINK_PRIVATE modes can be used to specify both the link dependencies and the link interface in one command.  This signature is for compatibility only. Prefer the PUBLIC or PRIVATE keywords instead.  Libraries and targets following LINK_PUBLIC are linked to, and are made part of the INTERFACE_LINK_LIBRARIES.  If policy CMP0022 is not NEW, they are also made part of the LINK_INTERFACE_LIBRARIES.  Libraries and targets following LINK_PRIVATE are linked to, but are not made part of the INTERFACE_LINK_LIBRARIES (or LINK_INTERFACE_LIBRARIES).<br /></p>
<p>The library dependency graph is normally acyclic (a DAG), but in the case of mutually-dependent STATIC libraries CMake allows the graph to contain cycles (strongly connected components).  When another target links to one of the libraries CMake repeats the entire connected component.  For example, the code<br /></p>
<pre>  add_library(A STATIC a.c)<br />  add_library(B STATIC b.c)<br />  target_link_libraries(A B)<br />  target_link_libraries(B A)<br />  add_executable(main main.c)<br />  target_link_libraries(main A)<br /></pre>
    <p>links 'main' to 'A B A B'.  (While one repetition is usually sufficient, pathological object file and symbol arrangements can require more.  One may handle such cases by manually repeating the component in the last target_link_libraries call.  However, if two archives are really so interdependent they should probably be combined into a single archive.)<br /></p>
<p>Arguments to target_link_libraries may use "generator expressions" with the syntax "$&lt;...&gt;".  Note however, that generator expressions will not be used in OLD handling of CMP0003 or CMP0004.<br /></p>
<p>Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="command:try_compile"></a><b><code>try_compile</code></b>: Try building some code.<br />
    <pre>  try_compile(RESULT_VAR &lt;bindir&gt; &lt;srcdir&gt;<br />              &lt;projectName&gt; [targetName] [CMAKE_FLAGS flags...]<br />              [OUTPUT_VARIABLE &lt;var&gt;])<br /></pre>
    <p>Try building a project.  In this form, srcdir should contain a complete CMake project with a CMakeLists.txt file and all sources. The bindir and srcdir will not be deleted after this command is run. Specify targetName to build a specific target instead of the 'all' or 'ALL_BUILD' target.<br /></p>
<pre>  try_compile(RESULT_VAR &lt;bindir&gt; &lt;srcfile|SOURCES srcfile...&gt;<br />              [CMAKE_FLAGS flags...]<br />              [COMPILE_DEFINITIONS flags...]<br />              [LINK_LIBRARIES libs...]<br />              [OUTPUT_VARIABLE &lt;var&gt;]<br />              [COPY_FILE &lt;fileName&gt; [COPY_FILE_ERROR &lt;var&gt;]])<br /></pre>
    <p>Try building an executable from one or more source files.  In this form the user need only supply one or more source files that include a definition for 'main'.  CMake will create a CMakeLists.txt file to build the source(s) as an executable.  Specify COPY_FILE to get a copy of the linked executable at the given fileName and optionally COPY_FILE_ERROR to capture any error.<br /></p>
<p>In this version all files in bindir/CMakeFiles/CMakeTmp will be cleaned automatically. For debugging, --debug-trycompile can be passed to cmake to avoid this clean. However, multiple sequential try_compile operations reuse this single output directory. If you use --debug-trycompile, you can only debug one try_compile call at a time. The recommended procedure is to configure with cmake all the way through once, then delete the cache entry associated with the try_compile call of interest, and then re-run cmake again with --debug-trycompile.<br /></p>
<p>Some extra flags that can be included are,  INCLUDE_DIRECTORIES, LINK_DIRECTORIES, and LINK_LIBRARIES.  COMPILE_DEFINITIONS are -Ddefinition that will be passed to the compile line.<br /></p>
<p>The srcfile signature also accepts a LINK_LIBRARIES argument which may contain a list of libraries or IMPORTED targets which will be linked to in the generated project.  If LINK_LIBRARIES is specified as a parameter to try_compile, then any LINK_LIBRARIES passed as CMAKE_FLAGS will be ignored.<br /></p>
<p>try_compile creates a CMakeList.txt file on the fly that looks like this:<br /></p>
<pre>  add_definitions( &lt;expanded COMPILE_DEFINITIONS from calling cmake&gt;)<br />  include_directories(${INCLUDE_DIRECTORIES})<br />  link_directories(${LINK_DIRECTORIES})<br />  add_executable(cmTryCompileExec sources)<br />  target_link_libraries(cmTryCompileExec ${LINK_LIBRARIES})<br /></pre>
    <p>In both versions of the command, if OUTPUT_VARIABLE is specified, then the output from the build process is stored in the given variable. The success or failure of the try_compile, i.e. TRUE or FALSE respectively, is returned in RESULT_VAR. CMAKE_FLAGS can be used to pass -DVAR:TYPE=VALUE flags to the cmake that is run during the build. Set variable CMAKE_TRY_COMPILE_CONFIGURATION to choose a build configuration.</p>

  </li>
  <li>
    <a name="command:try_run"></a><b><code>try_run</code></b>: Try compiling and then running some code.<br />
    <pre>  try_run(RUN_RESULT_VAR COMPILE_RESULT_VAR<br />          bindir srcfile [CMAKE_FLAGS &lt;Flags&gt;]<br />          [COMPILE_DEFINITIONS &lt;flags&gt;]<br />          [COMPILE_OUTPUT_VARIABLE comp]<br />          [RUN_OUTPUT_VARIABLE run]<br />          [OUTPUT_VARIABLE var]<br />          [ARGS &lt;arg1&gt; &lt;arg2&gt;...])<br /></pre>
    <p>Try compiling a srcfile.  Return TRUE or FALSE for success or failure in COMPILE_RESULT_VAR.  Then if the compile succeeded, run the executable and return its exit code in RUN_RESULT_VAR. If the executable was built, but failed to run, then RUN_RESULT_VAR will be set to FAILED_TO_RUN. COMPILE_OUTPUT_VARIABLE specifies the variable where the output from the compile step goes. RUN_OUTPUT_VARIABLE specifies the variable where the output from the running executable goes.<br /></p>
<p>For compatibility reasons OUTPUT_VARIABLE is still supported, which gives you the output from the compile and run step combined.<br /></p>
<p>Cross compiling issues<br /></p>
<p>When cross compiling, the executable compiled in the first step usually cannot be run on the build host. try_run() checks the CMAKE_CROSSCOMPILING variable to detect whether CMake is in crosscompiling mode. If that's the case, it will still try to compile the executable, but it will not try to run the executable. Instead it will create cache variables which must be filled by the user or by presetting them in some CMake script file to the values the executable would have produced if it had been run on its actual target platform. These variables are RUN_RESULT_VAR (explanation see above) and if RUN_OUTPUT_VARIABLE (or OUTPUT_VARIABLE) was used, an additional cache variable RUN_RESULT_VAR__COMPILE_RESULT_VAR__TRYRUN_OUTPUT.This is intended to hold stdout and stderr from the executable.<br /></p>
<p>In order to make cross compiling your project easier, use try_run only if really required. If you use try_run, use RUN_OUTPUT_VARIABLE (or OUTPUT_VARIABLE) only if really required. Using them will require that when crosscompiling, the cache variables will have to be set manually to the output of the executable. You can also "guard" the calls to try_run with if(CMAKE_CROSSCOMPILING) and provide an easy-to-preset alternative for this case.<br /></p>
<p>Set variable CMAKE_TRY_COMPILE_CONFIGURATION to choose a build configuration.</p>

  </li>
  <li>
    <a name="command:unset"></a><b><code>unset</code></b>: Unset a variable, cache variable, or environment variable.<br />
    <pre>  unset(&lt;variable&gt; [CACHE])<br /></pre>
    <p>Removes the specified variable causing it to become undefined.  If CACHE is present then the variable is removed from the cache instead of the current scope.<br /></p>
<p>&lt;variable&gt; can be an environment variable such as:<br /></p>
<pre>  unset(ENV{LD_LIBRARY_PATH})<br /></pre>
    <p>in which case the variable will be removed from the current environment.</p>

  </li>
  <li>
    <a name="command:variable_watch"></a><b><code>variable_watch</code></b>: Watch the CMake variable for change.<br />
    <pre>  variable_watch(&lt;variable name&gt; [&lt;command to execute&gt;])<br /></pre>
    <p>If the specified variable changes, the message will be printed about the variable being changed. If the command is specified, the command will be executed. The command will receive the following arguments: COMMAND(&lt;variable&gt; &lt;access&gt; &lt;value&gt; &lt;current list file&gt; &lt;stack&gt;)</p>

  </li>
  <li>
    <a name="command:while"></a><b><code>while</code></b>: Evaluate a group of commands while a condition is true<br />
    <pre>  while(condition)<br />    COMMAND1(ARGS ...)<br />    COMMAND2(ARGS ...)<br />    ...<br />  endwhile(condition)<br /></pre>
    <p>All commands between while and the matching endwhile are recorded without being invoked.  Once the endwhile is evaluated, the recorded list of commands is invoked as long as the condition is true. The condition is evaluated using the same logic as the if command.</p>

  </li>
</ul>
<h2><a name="section_Properties"></a>Properties</h2>
<pre>  CMake Properties - Properties supported by CMake, the Cross-Platform Makefile Generator.</pre>
    
<p>This is the documentation for the properties supported by CMake. Properties can have different scopes. They can either be assigned to a source file, a directory, a target or globally to CMake. By modifying the values of properties the behaviour of the build system can be customized.</p>

<h2><a name="section_PropertiesofGlobalScope"></a>Properties of Global Scope</h2>
<ul>
    <li><a href="#prop_global:ALLOW_DUPLICATE_CUSTOM_TARGETS"><b><code>ALLOW_DUPLICATE_CUSTOM_TARGETS</code></b></a></li>
    <li><a href="#prop_global:AUTOMOC_TARGETS_FOLDER"><b><code>AUTOMOC_TARGETS_FOLDER</code></b></a></li>
    <li><a href="#prop_global:DEBUG_CONFIGURATIONS"><b><code>DEBUG_CONFIGURATIONS</code></b></a></li>
    <li><a href="#prop_global:DISABLED_FEATURES"><b><code>DISABLED_FEATURES</code></b></a></li>
    <li><a href="#prop_global:ENABLED_FEATURES"><b><code>ENABLED_FEATURES</code></b></a></li>
    <li><a href="#prop_global:ENABLED_LANGUAGES"><b><code>ENABLED_LANGUAGES</code></b></a></li>
    <li><a href="#prop_global:FIND_LIBRARY_USE_LIB64_PATHS"><b><code>FIND_LIBRARY_USE_LIB64_PATHS</code></b></a></li>
    <li><a href="#prop_global:FIND_LIBRARY_USE_OPENBSD_VERSIONING"><b><code>FIND_LIBRARY_USE_OPENBSD_VERSIONING</code></b></a></li>
    <li><a href="#prop_global:GLOBAL_DEPENDS_DEBUG_MODE"><b><code>GLOBAL_DEPENDS_DEBUG_MODE</code></b></a></li>
    <li><a href="#prop_global:GLOBAL_DEPENDS_NO_CYCLES"><b><code>GLOBAL_DEPENDS_NO_CYCLES</code></b></a></li>
    <li><a href="#prop_global:IN_TRY_COMPILE"><b><code>IN_TRY_COMPILE</code></b></a></li>
    <li><a href="#prop_global:PACKAGES_FOUND"><b><code>PACKAGES_FOUND</code></b></a></li>
    <li><a href="#prop_global:PACKAGES_NOT_FOUND"><b><code>PACKAGES_NOT_FOUND</code></b></a></li>
    <li><a href="#prop_global:PREDEFINED_TARGETS_FOLDER"><b><code>PREDEFINED_TARGETS_FOLDER</code></b></a></li>
    <li><a href="#prop_global:REPORT_UNDEFINED_PROPERTIES"><b><code>REPORT_UNDEFINED_PROPERTIES</code></b></a></li>
    <li><a href="#prop_global:RULE_LAUNCH_COMPILE"><b><code>RULE_LAUNCH_COMPILE</code></b></a></li>
    <li><a href="#prop_global:RULE_LAUNCH_CUSTOM"><b><code>RULE_LAUNCH_CUSTOM</code></b></a></li>
    <li><a href="#prop_global:RULE_LAUNCH_LINK"><b><code>RULE_LAUNCH_LINK</code></b></a></li>
    <li><a href="#prop_global:RULE_MESSAGES"><b><code>RULE_MESSAGES</code></b></a></li>
    <li><a href="#prop_global:TARGET_ARCHIVES_MAY_BE_SHARED_LIBS"><b><code>TARGET_ARCHIVES_MAY_BE_SHARED_LIBS</code></b></a></li>
    <li><a href="#prop_global:TARGET_SUPPORTS_SHARED_LIBS"><b><code>TARGET_SUPPORTS_SHARED_LIBS</code></b></a></li>
    <li><a href="#prop_global:USE_FOLDERS"><b><code>USE_FOLDERS</code></b></a></li>
    <li><a href="#prop_global:__CMAKE_DELETE_CACHE_CHANGE_VARS_"><b><code>__CMAKE_DELETE_CACHE_CHANGE_VARS_</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="prop_global:ALLOW_DUPLICATE_CUSTOM_TARGETS"></a><b><code>ALLOW_DUPLICATE_CUSTOM_TARGETS</code></b>: Allow duplicate custom targets to be created.<br />
    <p>Normally CMake requires that all targets built in a project have globally unique logical names (see policy CMP0002).  This is necessary to generate meaningful project file names in Xcode and VS IDE generators.  It also allows the target names to be referenced unambiguously.<br /></p>
<p>Makefile generators are capable of supporting duplicate custom target names.  For projects that care only about Makefile generators and do not wish to support Xcode or VS IDE generators, one may set this property to true to allow duplicate custom targets.  The property allows multiple add_custom_target command calls in different directories to specify the same target name.  However, setting this property will cause non-Makefile generators to produce an error and refuse to generate the project.</p>

  </li>
  <li>
    <a name="prop_global:AUTOMOC_TARGETS_FOLDER"></a><b><code>AUTOMOC_TARGETS_FOLDER</code></b>: Name of FOLDER for *_automoc targets that are added automatically by CMake for targets for which AUTOMOC is enabled.<br />
    <p>If not set, CMake uses the FOLDER property of the parent target as a default value for this property. See also the documentation for the FOLDER target property and the AUTOMOC target property.</p>

  </li>
  <li>
    <a name="prop_global:DEBUG_CONFIGURATIONS"></a><b><code>DEBUG_CONFIGURATIONS</code></b>: Specify which configurations are for debugging.<br />
    <p>The value must be a semi-colon separated list of configuration names.  Currently this property is used only by the target_link_libraries command (see its documentation for details).  Additional uses may be defined in the future.  <br /></p>
<p>This property must be set at the top level of the project and before the first target_link_libraries command invocation.  If any entry in the list does not match a valid configuration for the project the behavior is undefined.</p>

  </li>
  <li>
    <a name="prop_global:DISABLED_FEATURES"></a><b><code>DISABLED_FEATURES</code></b>: List of features which are disabled during the CMake run.<br />
    <p>List of features which are disabled during the CMake run. By default it contains the names of all packages which were not found. This is determined using the &lt;NAME&gt;_FOUND variables. Packages which are searched QUIET are not listed. A project can add its own features to this list. This property is used by the macros in FeatureSummary.cmake.</p>

  </li>
  <li>
    <a name="prop_global:ENABLED_FEATURES"></a><b><code>ENABLED_FEATURES</code></b>: List of features which are enabled during the CMake run.<br />
    <p>List of features which are enabled during the CMake run. By default it contains the names of all packages which were found. This is determined using the &lt;NAME&gt;_FOUND variables. Packages which are searched QUIET are not listed. A project can add its own features to this list. This property is used by the macros in FeatureSummary.cmake.</p>

  </li>
  <li>
    <a name="prop_global:ENABLED_LANGUAGES"></a><b><code>ENABLED_LANGUAGES</code></b>: Read-only property that contains the list of currently enabled languages<br />
    <p>Set to list of currently enabled languages.</p>

  </li>
  <li>
    <a name="prop_global:FIND_LIBRARY_USE_LIB64_PATHS"></a><b><code>FIND_LIBRARY_USE_LIB64_PATHS</code></b>: Whether FIND_LIBRARY should automatically search lib64 directories.<br />
    <p>FIND_LIBRARY_USE_LIB64_PATHS is a boolean specifying whether the FIND_LIBRARY command should automatically search the lib64 variant of directories called lib in the search path when building 64-bit binaries.</p>

  </li>
  <li>
    <a name="prop_global:FIND_LIBRARY_USE_OPENBSD_VERSIONING"></a><b><code>FIND_LIBRARY_USE_OPENBSD_VERSIONING</code></b>: Whether FIND_LIBRARY should find OpenBSD-style shared libraries.<br />
    <p>This property is a boolean specifying whether the FIND_LIBRARY command should find shared libraries with OpenBSD-style versioned extension: ".so.&lt;major&gt;.&lt;minor&gt;".  The property is set to true on OpenBSD and false on other platforms.</p>

  </li>
  <li>
    <a name="prop_global:GLOBAL_DEPENDS_DEBUG_MODE"></a><b><code>GLOBAL_DEPENDS_DEBUG_MODE</code></b>: Enable global target dependency graph debug mode.<br />
    <p>CMake automatically analyzes the global inter-target dependency graph at the beginning of native build system generation.  This property causes it to display details of its analysis to stderr.</p>

  </li>
  <li>
    <a name="prop_global:GLOBAL_DEPENDS_NO_CYCLES"></a><b><code>GLOBAL_DEPENDS_NO_CYCLES</code></b>: Disallow global target dependency graph cycles.<br />
    <p>CMake automatically analyzes the global inter-target dependency graph at the beginning of native build system generation.  It reports an error if the dependency graph contains a cycle that does not consist of all STATIC library targets.  This property tells CMake to disallow all cycles completely, even among static libraries.</p>

  </li>
  <li>
    <a name="prop_global:IN_TRY_COMPILE"></a><b><code>IN_TRY_COMPILE</code></b>: Read-only property that is true during a try-compile configuration.<br />
    <p>True when building a project inside a TRY_COMPILE or TRY_RUN command.</p>

  </li>
  <li>
    <a name="prop_global:PACKAGES_FOUND"></a><b><code>PACKAGES_FOUND</code></b>: List of packages which were found during the CMake run.<br />
    <p>List of packages which were found during the CMake run. Whether a package has been found is determined using the &lt;NAME&gt;_FOUND variables.</p>

  </li>
  <li>
    <a name="prop_global:PACKAGES_NOT_FOUND"></a><b><code>PACKAGES_NOT_FOUND</code></b>: List of packages which were not found during the CMake run.<br />
    <p>List of packages which were not found during the CMake run. Whether a package has been found is determined using the &lt;NAME&gt;_FOUND variables.</p>

  </li>
  <li>
    <a name="prop_global:PREDEFINED_TARGETS_FOLDER"></a><b><code>PREDEFINED_TARGETS_FOLDER</code></b>: Name of FOLDER for targets that are added automatically by CMake.<br />
    <p>If not set, CMake uses "CMakePredefinedTargets" as a default value for this property. Targets such as INSTALL, PACKAGE and RUN_TESTS will be organized into this FOLDER. See also the documentation for the FOLDER target property.</p>

  </li>
  <li>
    <a name="prop_global:REPORT_UNDEFINED_PROPERTIES"></a><b><code>REPORT_UNDEFINED_PROPERTIES</code></b>: If set, report any undefined properties to this file.<br />
    <p>If this property is set to a filename then when CMake runs it will report any properties or variables that were accessed but not defined into the filename specified in this property.</p>

  </li>
  <li>
    <a name="prop_global:RULE_LAUNCH_COMPILE"></a><b><code>RULE_LAUNCH_COMPILE</code></b>: Specify a launcher for compile rules.<br />
    <p>Makefile generators prefix compiler commands with the given launcher command line.  This is intended to allow launchers to intercept build problems with high granularity.  Non-Makefile generators currently ignore this property.</p>

  </li>
  <li>
    <a name="prop_global:RULE_LAUNCH_CUSTOM"></a><b><code>RULE_LAUNCH_CUSTOM</code></b>: Specify a launcher for custom rules.<br />
    <p>Makefile generators prefix custom commands with the given launcher command line.  This is intended to allow launchers to intercept build problems with high granularity.  Non-Makefile generators currently ignore this property.</p>

  </li>
  <li>
    <a name="prop_global:RULE_LAUNCH_LINK"></a><b><code>RULE_LAUNCH_LINK</code></b>: Specify a launcher for link rules.<br />
    <p>Makefile generators prefix link and archive commands with the given launcher command line.  This is intended to allow launchers to intercept build problems with high granularity.  Non-Makefile generators currently ignore this property.</p>

  </li>
  <li>
    <a name="prop_global:RULE_MESSAGES"></a><b><code>RULE_MESSAGES</code></b>: Specify whether to report a message for each make rule.<br />
    <p>This property specifies whether Makefile generators should add a progress message describing what each build rule does.  If the property is not set the default is ON.  Set the property to OFF to disable granular messages and report only as each target completes.  This is intended to allow scripted builds to avoid the build time cost of detailed reports.  If a CMAKE_RULE_MESSAGES cache entry exists its value initializes the value of this property.  Non-Makefile generators currently ignore this property.</p>

  </li>
  <li>
    <a name="prop_global:TARGET_ARCHIVES_MAY_BE_SHARED_LIBS"></a><b><code>TARGET_ARCHIVES_MAY_BE_SHARED_LIBS</code></b>: Set if shared libraries may be named like archives.<br />
    <p>On AIX shared libraries may be named "lib&lt;name&gt;.a".  This property is set to true on such platforms.</p>

  </li>
  <li>
    <a name="prop_global:TARGET_SUPPORTS_SHARED_LIBS"></a><b><code>TARGET_SUPPORTS_SHARED_LIBS</code></b>: Does the target platform support shared libraries.<br />
    <p>TARGET_SUPPORTS_SHARED_LIBS is a boolean specifying whether the target platform supports shared libraries. Basically all current general general purpose OS do so, the exception are usually embedded systems with no or special OSs.</p>

  </li>
  <li>
    <a name="prop_global:USE_FOLDERS"></a><b><code>USE_FOLDERS</code></b>: Use the FOLDER target property to organize targets into folders.<br />
    <p>If not set, CMake treats this property as OFF by default. CMake generators that are capable of organizing into a hierarchy of folders use the values of the FOLDER target property to name those folders. See also the documentation for the FOLDER target property.</p>

  </li>
  <li>
    <a name="prop_global:__CMAKE_DELETE_CACHE_CHANGE_VARS_"></a><b><code>__CMAKE_DELETE_CACHE_CHANGE_VARS_</code></b>: Internal property<br />
    <p>Used to detect compiler changes, Do not set.</p>

  </li>
</ul>
<h2><a name="section_PropertiesonDirectories"></a>Properties on Directories</h2>
<ul>
    <li><a href="#prop_dir:ADDITIONAL_MAKE_CLEAN_FILES"><b><code>ADDITIONAL_MAKE_CLEAN_FILES</code></b></a></li>
    <li><a href="#prop_dir:CACHE_VARIABLES"><b><code>CACHE_VARIABLES</code></b></a></li>
    <li><a href="#prop_dir:CLEAN_NO_CUSTOM"><b><code>CLEAN_NO_CUSTOM</code></b></a></li>
    <li><a href="#prop_dir:COMPILE_DEFINITIONS"><b><code>COMPILE_DEFINITIONS</code></b></a></li>
    <li><a href="#prop_dir:COMPILE_DEFINITIONS_CONFIG"><b><code>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_dir:COMPILE_OPTIONS"><b><code>COMPILE_OPTIONS</code></b></a></li>
    <li><a href="#prop_dir:DEFINITIONS"><b><code>DEFINITIONS</code></b></a></li>
    <li><a href="#prop_dir:EXCLUDE_FROM_ALL"><b><code>EXCLUDE_FROM_ALL</code></b></a></li>
    <li><a href="#prop_dir:IMPLICIT_DEPENDS_INCLUDE_TRANSFORM"><b><code>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</code></b></a></li>
    <li><a href="#prop_dir:INCLUDE_DIRECTORIES"><b><code>INCLUDE_DIRECTORIES</code></b></a></li>
    <li><a href="#prop_dir:INCLUDE_REGULAR_EXPRESSION"><b><code>INCLUDE_REGULAR_EXPRESSION</code></b></a></li>
    <li><a href="#prop_dir:INTERPROCEDURAL_OPTIMIZATION"><b><code>INTERPROCEDURAL_OPTIMIZATION</code></b></a></li>
    <li><a href="#prop_dir:INTERPROCEDURAL_OPTIMIZATION_CONFIG"><b><code>INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_dir:LINK_DIRECTORIES"><b><code>LINK_DIRECTORIES</code></b></a></li>
    <li><a href="#prop_dir:LISTFILE_STACK"><b><code>LISTFILE_STACK</code></b></a></li>
    <li><a href="#prop_dir:MACROS"><b><code>MACROS</code></b></a></li>
    <li><a href="#prop_dir:PARENT_DIRECTORY"><b><code>PARENT_DIRECTORY</code></b></a></li>
    <li><a href="#prop_dir:RULE_LAUNCH_COMPILE"><b><code>RULE_LAUNCH_COMPILE</code></b></a></li>
    <li><a href="#prop_dir:RULE_LAUNCH_CUSTOM"><b><code>RULE_LAUNCH_CUSTOM</code></b></a></li>
    <li><a href="#prop_dir:RULE_LAUNCH_LINK"><b><code>RULE_LAUNCH_LINK</code></b></a></li>
    <li><a href="#prop_dir:TEST_INCLUDE_FILE"><b><code>TEST_INCLUDE_FILE</code></b></a></li>
    <li><a href="#prop_dir:VARIABLES"><b><code>VARIABLES</code></b></a></li>
    <li><a href="#prop_dir:VS_GLOBAL_SECTION_POST_section"><b><code>VS_GLOBAL_SECTION_POST_&lt;section&gt;</code></b></a></li>
    <li><a href="#prop_dir:VS_GLOBAL_SECTION_PRE_section"><b><code>VS_GLOBAL_SECTION_PRE_&lt;section&gt;</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="prop_dir:ADDITIONAL_MAKE_CLEAN_FILES"></a><b><code>ADDITIONAL_MAKE_CLEAN_FILES</code></b>: Additional files to clean during the make clean stage.<br />
    <p>A list of files that will be cleaned as a part of the "make clean" stage. </p>

  </li>
  <li>
    <a name="prop_dir:CACHE_VARIABLES"></a><b><code>CACHE_VARIABLES</code></b>: List of cache variables available in the current directory.<br />
    <p>This read-only property specifies the list of CMake cache variables currently defined.  It is intended for debugging purposes.</p>

  </li>
  <li>
    <a name="prop_dir:CLEAN_NO_CUSTOM"></a><b><code>CLEAN_NO_CUSTOM</code></b>: Should the output of custom commands be left.<br />
    <p>If this is true then the outputs of custom commands for this directory will not be removed during the "make clean" stage. </p>

  </li>
  <li>
    <a name="prop_dir:COMPILE_DEFINITIONS"></a><b><code>COMPILE_DEFINITIONS</code></b>: Preprocessor definitions for compiling a directory's sources.<br />
    <p>The COMPILE_DEFINITIONS property may be set to a semicolon-separated list of preprocessor definitions using the syntax VAR or VAR=value.  Function-style definitions are not supported.  CMake will automatically escape the value correctly for the native build system (note that CMake language syntax may require escapes to specify some values).  This property may be set on a per-configuration basis using the name COMPILE_DEFINITIONS_&lt;CONFIG&gt; where &lt;CONFIG&gt; is an upper-case name (ex. "COMPILE_DEFINITIONS_DEBUG").  This property will be initialized in each directory by its value in the directory's parent.<br /></p>
<p>CMake will automatically drop some definitions that are not supported by the native build tool.  The VS6 IDE does not support definition values with spaces (but NMake does).<br /></p>
<p>Disclaimer: Most native build tools have poor support for escaping certain values.  CMake has work-arounds for many cases but some values may just not be possible to pass correctly.  If a value does not seem to be escaped correctly, do not attempt to work-around the problem by adding escape sequences to the value.  Your work-around may break in a future version of CMake that has improved escape support.  Instead consider defining the macro in a (configured) header file.  Then report the limitation.  Known limitations include:<br /></p>
<pre>  #          - broken almost everywhere<br />  ;          - broken in VS IDE 7.0 and Borland Makefiles<br />  ,          - broken in VS IDE<br />  %          - broken in some cases in NMake<br />  &amp; |        - broken in some cases on MinGW<br />  ^ &lt; &gt; \"   - broken in most Make tools on Windows<br /></pre>
    <p>CMake does not reject these values outright because they do work in some cases.  Use with caution.  </p>

  </li>
  <li>
    <a name="prop_dir:COMPILE_DEFINITIONS_CONFIG"></a><b><code>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</code></b>: Per-configuration preprocessor definitions in a directory.<br />
    <p>This is the configuration-specific version of COMPILE_DEFINITIONS.  This property will be initialized in each directory by its value in the directory's parent.<br /></p>

  </li>
  <li>
    <a name="prop_dir:COMPILE_OPTIONS"></a><b><code>COMPILE_OPTIONS</code></b>: List of options to pass to the compiler.<br />
    <p>This property specifies the list of directories given so far for this property.  This property exists on directories and targets.<br /></p>
<p>The target property values are used by the generators to set the options for the compiler.<br /></p>
<p>Contents of COMPILE_OPTIONS may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="prop_dir:DEFINITIONS"></a><b><code>DEFINITIONS</code></b>: For CMake 2.4 compatibility only.  Use COMPILE_DEFINITIONS instead.<br />
    <p>This read-only property specifies the list of flags given so far to the add_definitions command.  It is intended for debugging purposes.  Use the COMPILE_DEFINITIONS instead.</p>

  </li>
  <li>
    <a name="prop_dir:EXCLUDE_FROM_ALL"></a><b><code>EXCLUDE_FROM_ALL</code></b>: Exclude the directory from the all target of its parent.<br />
    <p>A property on a directory that indicates if its targets are excluded from the default build target. If it is not, then with a Makefile for example typing make will cause the targets to be built. The same concept applies to the default build of other generators.</p>

  </li>
  <li>
    <a name="prop_dir:IMPLICIT_DEPENDS_INCLUDE_TRANSFORM"></a><b><code>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</code></b>: Specify #include line transforms for dependencies in a directory.<br />
    <p>This property specifies rules to transform macro-like #include lines during implicit dependency scanning of C and C++ source files.  The list of rules must be semicolon-separated with each entry of the form "A_MACRO(%)=value-with-%" (the % must be literal).  During dependency scanning occurrences of A_MACRO(...) on #include lines will be replaced by the value given with the macro argument substituted for '%'.  For example, the entry<br /></p>
<pre>  MYDIR(%)=&lt;mydir/%&gt;<br /></pre>
    <p>will convert lines of the form<br /></p>
<pre>  #include MYDIR(myheader.h)<br /></pre>
    <p>to<br /></p>
<pre>  #include &lt;mydir/myheader.h&gt;<br /></pre>
    <p>allowing the dependency to be followed.<br /></p>
<p>This property applies to sources in all targets within a directory.  The property value is initialized in each directory by its value in the directory's parent.</p>

  </li>
  <li>
    <a name="prop_dir:INCLUDE_DIRECTORIES"></a><b><code>INCLUDE_DIRECTORIES</code></b>: List of preprocessor include file search directories.<br />
    <p>This property specifies the list of directories given so far to the include_directories command.  This property exists on directories and targets.  In addition to accepting values from the include_directories command, values may be set directly on any directory or any target using the set_property command.  A target gets its initial value for this property from the value of the directory property.  A directory gets its initial value from its parent directory if it has one.  Both directory and target property values are adjusted by calls to the include_directories command.<br /></p>
<p>The target property values are used by the generators to set the include paths for the compiler.  See also the include_directories command.</p>

  </li>
  <li>
    <a name="prop_dir:INCLUDE_REGULAR_EXPRESSION"></a><b><code>INCLUDE_REGULAR_EXPRESSION</code></b>: Include file scanning regular expression.<br />
    <p>This read-only property specifies the regular expression used during dependency scanning to match include files that should be followed.  See the include_regular_expression command.</p>

  </li>
  <li>
    <a name="prop_dir:INTERPROCEDURAL_OPTIMIZATION"></a><b><code>INTERPROCEDURAL_OPTIMIZATION</code></b>: Enable interprocedural optimization for targets in a directory.<br />
    <p>If set to true, enables interprocedural optimizations if they are known to be supported by the compiler.</p>

  </li>
  <li>
    <a name="prop_dir:INTERPROCEDURAL_OPTIMIZATION_CONFIG"></a><b><code>INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;</code></b>: Per-configuration interprocedural optimization for a directory.<br />
    <p>This is a per-configuration version of INTERPROCEDURAL_OPTIMIZATION.  If set, this property overrides the generic property for the named configuration.</p>

  </li>
  <li>
    <a name="prop_dir:LINK_DIRECTORIES"></a><b><code>LINK_DIRECTORIES</code></b>: List of linker search directories.<br />
    <p>This read-only property specifies the list of directories given so far to the link_directories command.  It is intended for debugging purposes.</p>

  </li>
  <li>
    <a name="prop_dir:LISTFILE_STACK"></a><b><code>LISTFILE_STACK</code></b>: The current stack of listfiles being processed.<br />
    <p>This property is mainly useful when trying to debug errors in your CMake scripts. It returns a list of what list files are currently being processed, in order. So if one listfile does an INCLUDE command then that is effectively pushing the included listfile onto the stack.</p>

  </li>
  <li>
    <a name="prop_dir:MACROS"></a><b><code>MACROS</code></b>: List of macro commands available in the current directory.<br />
    <p>This read-only property specifies the list of CMake macros currently defined.  It is intended for debugging purposes.  See the macro command.</p>

  </li>
  <li>
    <a name="prop_dir:PARENT_DIRECTORY"></a><b><code>PARENT_DIRECTORY</code></b>: Source directory that added current subdirectory.<br />
    <p>This read-only property specifies the source directory that added the current source directory as a subdirectory of the build.  In the top-level directory the value is the empty-string.</p>

  </li>
  <li>
    <a name="prop_dir:RULE_LAUNCH_COMPILE"></a><b><code>RULE_LAUNCH_COMPILE</code></b>: Specify a launcher for compile rules.<br />
    <p>See the global property of the same name for details.  This overrides the global property for a directory.</p>

  </li>
  <li>
    <a name="prop_dir:RULE_LAUNCH_CUSTOM"></a><b><code>RULE_LAUNCH_CUSTOM</code></b>: Specify a launcher for custom rules.<br />
    <p>See the global property of the same name for details.  This overrides the global property for a directory.</p>

  </li>
  <li>
    <a name="prop_dir:RULE_LAUNCH_LINK"></a><b><code>RULE_LAUNCH_LINK</code></b>: Specify a launcher for link rules.<br />
    <p>See the global property of the same name for details.  This overrides the global property for a directory.</p>

  </li>
  <li>
    <a name="prop_dir:TEST_INCLUDE_FILE"></a><b><code>TEST_INCLUDE_FILE</code></b>: A cmake file that will be included when ctest is run.<br />
    <p>If you specify TEST_INCLUDE_FILE, that file will be included and processed when ctest is run on the directory.</p>

  </li>
  <li>
    <a name="prop_dir:VARIABLES"></a><b><code>VARIABLES</code></b>: List of variables defined in the current directory.<br />
    <p>This read-only property specifies the list of CMake variables currently defined.  It is intended for debugging purposes.</p>

  </li>
  <li>
    <a name="prop_dir:VS_GLOBAL_SECTION_POST_section"></a><b><code>VS_GLOBAL_SECTION_POST_&lt;section&gt;</code></b>: Specify a postSolution global section in Visual Studio.<br />
    <p>Setting a property like this generates an entry of the following form in the solution file:<br /></p>
<pre>  GlobalSection(&lt;section&gt;) = postSolution<br />    &lt;contents based on property value&gt;<br />  EndGlobalSection<br /></pre>
    <p>The property must be set to a semicolon-separated list of key=value pairs. Each such pair will be transformed into an entry in the solution global section. Whitespace around key and value is ignored. List elements which do not contain an equal sign are skipped.<br /></p>
<p>This property only works for Visual Studio 7 and above; it is ignored on other generators. The property only applies when set on a directory whose CMakeLists.txt contains a project() command.<br /></p>
<p>Note that CMake generates postSolution sections ExtensibilityGlobals and ExtensibilityAddIns by default. If you set the corresponding property, it will override the default section. For example, setting VS_GLOBAL_SECTION_POST_ExtensibilityGlobals will override the default contents of the ExtensibilityGlobals section, while keeping ExtensibilityAddIns on its default.</p>

  </li>
  <li>
    <a name="prop_dir:VS_GLOBAL_SECTION_PRE_section"></a><b><code>VS_GLOBAL_SECTION_PRE_&lt;section&gt;</code></b>: Specify a preSolution global section in Visual Studio.<br />
    <p>Setting a property like this generates an entry of the following form in the solution file:<br /></p>
<pre>  GlobalSection(&lt;section&gt;) = preSolution<br />    &lt;contents based on property value&gt;<br />  EndGlobalSection<br /></pre>
    <p>The property must be set to a semicolon-separated list of key=value pairs. Each such pair will be transformed into an entry in the solution global section. Whitespace around key and value is ignored. List elements which do not contain an equal sign are skipped.<br /></p>
<p>This property only works for Visual Studio 7 and above; it is ignored on other generators. The property only applies when set on a directory whose CMakeLists.txt contains a project() command.</p>

  </li>
</ul>
<h2><a name="section_PropertiesonTargets"></a>Properties on Targets</h2>
<ul>
    <li><a href="#prop_tgt:CONFIG_OUTPUT_NAME"><b><code>&lt;CONFIG&gt;_OUTPUT_NAME</code></b></a></li>
    <li><a href="#prop_tgt:CONFIG_POSTFIX"><b><code>&lt;CONFIG&gt;_POSTFIX</code></b></a></li>
    <li><a href="#prop_tgt:LANG_VISIBILITY_PRESET"><b><code>&lt;LANG&gt;_VISIBILITY_PRESET</code></b></a></li>
    <li><a href="#prop_tgt:ALIASED_TARGET"><b><code>ALIASED_TARGET</code></b></a></li>
    <li><a href="#prop_tgt:ARCHIVE_OUTPUT_DIRECTORY"><b><code>ARCHIVE_OUTPUT_DIRECTORY</code></b></a></li>
    <li><a href="#prop_tgt:ARCHIVE_OUTPUT_DIRECTORY_CONFIG"><b><code>ARCHIVE_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:ARCHIVE_OUTPUT_NAME"><b><code>ARCHIVE_OUTPUT_NAME</code></b></a></li>
    <li><a href="#prop_tgt:ARCHIVE_OUTPUT_NAME_CONFIG"><b><code>ARCHIVE_OUTPUT_NAME_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:AUTOMOC"><b><code>AUTOMOC</code></b></a></li>
    <li><a href="#prop_tgt:AUTOMOC_MOC_OPTIONS"><b><code>AUTOMOC_MOC_OPTIONS</code></b></a></li>
    <li><a href="#prop_tgt:BUILD_WITH_INSTALL_RPATH"><b><code>BUILD_WITH_INSTALL_RPATH</code></b></a></li>
    <li><a href="#prop_tgt:BUNDLE"><b><code>BUNDLE</code></b></a></li>
    <li><a href="#prop_tgt:BUNDLE_EXTENSION"><b><code>BUNDLE_EXTENSION</code></b></a></li>
    <li><a href="#prop_tgt:COMPATIBLE_INTERFACE_BOOL"><b><code>COMPATIBLE_INTERFACE_BOOL</code></b></a></li>
    <li><a href="#prop_tgt:COMPATIBLE_INTERFACE_STRING"><b><code>COMPATIBLE_INTERFACE_STRING</code></b></a></li>
    <li><a href="#prop_tgt:COMPILE_DEFINITIONS"><b><code>COMPILE_DEFINITIONS</code></b></a></li>
    <li><a href="#prop_tgt:COMPILE_DEFINITIONS_CONFIG"><b><code>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:COMPILE_FLAGS"><b><code>COMPILE_FLAGS</code></b></a></li>
    <li><a href="#prop_tgt:COMPILE_OPTIONS"><b><code>COMPILE_OPTIONS</code></b></a></li>
    <li><a href="#prop_tgt:DEBUG_POSTFIX"><b><code>DEBUG_POSTFIX</code></b></a></li>
    <li><a href="#prop_tgt:DEFINE_SYMBOL"><b><code>DEFINE_SYMBOL</code></b></a></li>
    <li><a href="#prop_tgt:ENABLE_EXPORTS"><b><code>ENABLE_EXPORTS</code></b></a></li>
    <li><a href="#prop_tgt:EXCLUDE_FROM_ALL"><b><code>EXCLUDE_FROM_ALL</code></b></a></li>
    <li><a href="#prop_tgt:EXCLUDE_FROM_DEFAULT_BUILD"><b><code>EXCLUDE_FROM_DEFAULT_BUILD</code></b></a></li>
    <li><a href="#prop_tgt:EXCLUDE_FROM_DEFAULT_BUILD_CONFIG"><b><code>EXCLUDE_FROM_DEFAULT_BUILD_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:EXPORT_NAME"><b><code>EXPORT_NAME</code></b></a></li>
    <li><a href="#prop_tgt:EchoString"><b><code>EchoString</code></b></a></li>
    <li><a href="#prop_tgt:FOLDER"><b><code>FOLDER</code></b></a></li>
    <li><a href="#prop_tgt:FRAMEWORK"><b><code>FRAMEWORK</code></b></a></li>
    <li><a href="#prop_tgt:Fortran_FORMAT"><b><code>Fortran_FORMAT</code></b></a></li>
    <li><a href="#prop_tgt:Fortran_MODULE_DIRECTORY"><b><code>Fortran_MODULE_DIRECTORY</code></b></a></li>
    <li><a href="#prop_tgt:GENERATOR_FILE_NAME"><b><code>GENERATOR_FILE_NAME</code></b></a></li>
    <li><a href="#prop_tgt:GNUtoMS"><b><code>GNUtoMS</code></b></a></li>
    <li><a href="#prop_tgt:HAS_CXX"><b><code>HAS_CXX</code></b></a></li>
    <li><a href="#prop_tgt:IMPLICIT_DEPENDS_INCLUDE_TRANSFORM"><b><code>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED"><b><code>IMPORTED</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_CONFIGURATIONS"><b><code>IMPORTED_CONFIGURATIONS</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_IMPLIB"><b><code>IMPORTED_IMPLIB</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_IMPLIB_CONFIG"><b><code>IMPORTED_IMPLIB_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LINK_DEPENDENT_LIBRARIES"><b><code>IMPORTED_LINK_DEPENDENT_LIBRARIES</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LINK_DEPENDENT_LIBRARIES_CONFIG"><b><code>IMPORTED_LINK_DEPENDENT_LIBRARIES_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LINK_INTERFACE_LANGUAGES"><b><code>IMPORTED_LINK_INTERFACE_LANGUAGES</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LINK_INTERFACE_LANGUAGES_CONFIG"><b><code>IMPORTED_LINK_INTERFACE_LANGUAGES_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LINK_INTERFACE_LIBRARIES"><b><code>IMPORTED_LINK_INTERFACE_LIBRARIES</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LINK_INTERFACE_LIBRARIES_CONFIG"><b><code>IMPORTED_LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LINK_INTERFACE_MULTIPLICITY"><b><code>IMPORTED_LINK_INTERFACE_MULTIPLICITY</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LINK_INTERFACE_MULTIPLICITY_CONFIG"><b><code>IMPORTED_LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LOCATION"><b><code>IMPORTED_LOCATION</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_LOCATION_CONFIG"><b><code>IMPORTED_LOCATION_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_NO_SONAME"><b><code>IMPORTED_NO_SONAME</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_NO_SONAME_CONFIG"><b><code>IMPORTED_NO_SONAME_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_SONAME"><b><code>IMPORTED_SONAME</code></b></a></li>
    <li><a href="#prop_tgt:IMPORTED_SONAME_CONFIG"><b><code>IMPORTED_SONAME_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:IMPORT_PREFIX"><b><code>IMPORT_PREFIX</code></b></a></li>
    <li><a href="#prop_tgt:IMPORT_SUFFIX"><b><code>IMPORT_SUFFIX</code></b></a></li>
    <li><a href="#prop_tgt:INCLUDE_DIRECTORIES"><b><code>INCLUDE_DIRECTORIES</code></b></a></li>
    <li><a href="#prop_tgt:INSTALL_NAME_DIR"><b><code>INSTALL_NAME_DIR</code></b></a></li>
    <li><a href="#prop_tgt:INSTALL_RPATH"><b><code>INSTALL_RPATH</code></b></a></li>
    <li><a href="#prop_tgt:INSTALL_RPATH_USE_LINK_PATH"><b><code>INSTALL_RPATH_USE_LINK_PATH</code></b></a></li>
    <li><a href="#prop_tgt:INTERFACE_COMPILE_DEFINITIONS"><b><code>INTERFACE_COMPILE_DEFINITIONS</code></b></a></li>
    <li><a href="#prop_tgt:INTERFACE_COMPILE_OPTIONS"><b><code>INTERFACE_COMPILE_OPTIONS</code></b></a></li>
    <li><a href="#prop_tgt:INTERFACE_INCLUDE_DIRECTORIES"><b><code>INTERFACE_INCLUDE_DIRECTORIES</code></b></a></li>
    <li><a href="#prop_tgt:INTERFACE_LINK_LIBRARIES"><b><code>INTERFACE_LINK_LIBRARIES</code></b></a></li>
    <li><a href="#prop_tgt:INTERFACE_POSITION_INDEPENDENT_CODE"><b><code>INTERFACE_POSITION_INDEPENDENT_CODE</code></b></a></li>
    <li><a href="#prop_tgt:INTERFACE_SYSTEM_INCLUDE_DIRECTORIES"><b><code>INTERFACE_SYSTEM_INCLUDE_DIRECTORIES</code></b></a></li>
    <li><a href="#prop_tgt:INTERPROCEDURAL_OPTIMIZATION"><b><code>INTERPROCEDURAL_OPTIMIZATION</code></b></a></li>
    <li><a href="#prop_tgt:INTERPROCEDURAL_OPTIMIZATION_CONFIG"><b><code>INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:LABELS"><b><code>LABELS</code></b></a></li>
    <li><a href="#prop_tgt:LIBRARY_OUTPUT_DIRECTORY"><b><code>LIBRARY_OUTPUT_DIRECTORY</code></b></a></li>
    <li><a href="#prop_tgt:LIBRARY_OUTPUT_DIRECTORY_CONFIG"><b><code>LIBRARY_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:LIBRARY_OUTPUT_NAME"><b><code>LIBRARY_OUTPUT_NAME</code></b></a></li>
    <li><a href="#prop_tgt:LIBRARY_OUTPUT_NAME_CONFIG"><b><code>LIBRARY_OUTPUT_NAME_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:LINKER_LANGUAGE"><b><code>LINKER_LANGUAGE</code></b></a></li>
    <li><a href="#prop_tgt:LINK_DEPENDS"><b><code>LINK_DEPENDS</code></b></a></li>
    <li><a href="#prop_tgt:LINK_DEPENDS_NO_SHARED"><b><code>LINK_DEPENDS_NO_SHARED</code></b></a></li>
    <li><a href="#prop_tgt:LINK_FLAGS"><b><code>LINK_FLAGS</code></b></a></li>
    <li><a href="#prop_tgt:LINK_FLAGS_CONFIG"><b><code>LINK_FLAGS_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:LINK_INTERFACE_LIBRARIES"><b><code>LINK_INTERFACE_LIBRARIES</code></b></a></li>
    <li><a href="#prop_tgt:LINK_INTERFACE_LIBRARIES_CONFIG"><b><code>LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:LINK_INTERFACE_MULTIPLICITY"><b><code>LINK_INTERFACE_MULTIPLICITY</code></b></a></li>
    <li><a href="#prop_tgt:LINK_INTERFACE_MULTIPLICITY_CONFIG"><b><code>LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:LINK_LIBRARIES"><b><code>LINK_LIBRARIES</code></b></a></li>
    <li><a href="#prop_tgt:LINK_SEARCH_END_STATIC"><b><code>LINK_SEARCH_END_STATIC</code></b></a></li>
    <li><a href="#prop_tgt:LINK_SEARCH_START_STATIC"><b><code>LINK_SEARCH_START_STATIC</code></b></a></li>
    <li><a href="#prop_tgt:LOCATION"><b><code>LOCATION</code></b></a></li>
    <li><a href="#prop_tgt:LOCATION_CONFIG"><b><code>LOCATION_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:MACOSX_BUNDLE"><b><code>MACOSX_BUNDLE</code></b></a></li>
    <li><a href="#prop_tgt:MACOSX_BUNDLE_INFO_PLIST"><b><code>MACOSX_BUNDLE_INFO_PLIST</code></b></a></li>
    <li><a href="#prop_tgt:MACOSX_FRAMEWORK_INFO_PLIST"><b><code>MACOSX_FRAMEWORK_INFO_PLIST</code></b></a></li>
    <li><a href="#prop_tgt:MACOSX_RPATH"><b><code>MACOSX_RPATH</code></b></a></li>
    <li><a href="#prop_tgt:MAP_IMPORTED_CONFIG_CONFIG"><b><code>MAP_IMPORTED_CONFIG_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:NAME"><b><code>NAME</code></b></a></li>
    <li><a href="#prop_tgt:NO_SONAME"><b><code>NO_SONAME</code></b></a></li>
    <li><a href="#prop_tgt:OSX_ARCHITECTURES"><b><code>OSX_ARCHITECTURES</code></b></a></li>
    <li><a href="#prop_tgt:OSX_ARCHITECTURES_CONFIG"><b><code>OSX_ARCHITECTURES_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:OUTPUT_NAME"><b><code>OUTPUT_NAME</code></b></a></li>
    <li><a href="#prop_tgt:OUTPUT_NAME_CONFIG"><b><code>OUTPUT_NAME_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:PDB_NAME"><b><code>PDB_NAME</code></b></a></li>
    <li><a href="#prop_tgt:PDB_NAME_CONFIG"><b><code>PDB_NAME_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:PDB_OUTPUT_DIRECTORY"><b><code>PDB_OUTPUT_DIRECTORY</code></b></a></li>
    <li><a href="#prop_tgt:PDB_OUTPUT_DIRECTORY_CONFIG"><b><code>PDB_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:POSITION_INDEPENDENT_CODE"><b><code>POSITION_INDEPENDENT_CODE</code></b></a></li>
    <li><a href="#prop_tgt:POST_INSTALL_SCRIPT"><b><code>POST_INSTALL_SCRIPT</code></b></a></li>
    <li><a href="#prop_tgt:PREFIX"><b><code>PREFIX</code></b></a></li>
    <li><a href="#prop_tgt:PRE_INSTALL_SCRIPT"><b><code>PRE_INSTALL_SCRIPT</code></b></a></li>
    <li><a href="#prop_tgt:PRIVATE_HEADER"><b><code>PRIVATE_HEADER</code></b></a></li>
    <li><a href="#prop_tgt:PROJECT_LABEL"><b><code>PROJECT_LABEL</code></b></a></li>
    <li><a href="#prop_tgt:PUBLIC_HEADER"><b><code>PUBLIC_HEADER</code></b></a></li>
    <li><a href="#prop_tgt:RESOURCE"><b><code>RESOURCE</code></b></a></li>
    <li><a href="#prop_tgt:RULE_LAUNCH_COMPILE"><b><code>RULE_LAUNCH_COMPILE</code></b></a></li>
    <li><a href="#prop_tgt:RULE_LAUNCH_CUSTOM"><b><code>RULE_LAUNCH_CUSTOM</code></b></a></li>
    <li><a href="#prop_tgt:RULE_LAUNCH_LINK"><b><code>RULE_LAUNCH_LINK</code></b></a></li>
    <li><a href="#prop_tgt:RUNTIME_OUTPUT_DIRECTORY"><b><code>RUNTIME_OUTPUT_DIRECTORY</code></b></a></li>
    <li><a href="#prop_tgt:RUNTIME_OUTPUT_DIRECTORY_CONFIG"><b><code>RUNTIME_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:RUNTIME_OUTPUT_NAME"><b><code>RUNTIME_OUTPUT_NAME</code></b></a></li>
    <li><a href="#prop_tgt:RUNTIME_OUTPUT_NAME_CONFIG"><b><code>RUNTIME_OUTPUT_NAME_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:SKIP_BUILD_RPATH"><b><code>SKIP_BUILD_RPATH</code></b></a></li>
    <li><a href="#prop_tgt:SOURCES"><b><code>SOURCES</code></b></a></li>
    <li><a href="#prop_tgt:SOVERSION"><b><code>SOVERSION</code></b></a></li>
    <li><a href="#prop_tgt:STATIC_LIBRARY_FLAGS"><b><code>STATIC_LIBRARY_FLAGS</code></b></a></li>
    <li><a href="#prop_tgt:STATIC_LIBRARY_FLAGS_CONFIG"><b><code>STATIC_LIBRARY_FLAGS_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_tgt:SUFFIX"><b><code>SUFFIX</code></b></a></li>
    <li><a href="#prop_tgt:TYPE"><b><code>TYPE</code></b></a></li>
    <li><a href="#prop_tgt:VERSION"><b><code>VERSION</code></b></a></li>
    <li><a href="#prop_tgt:VISIBILITY_INLINES_HIDDEN"><b><code>VISIBILITY_INLINES_HIDDEN</code></b></a></li>
    <li><a href="#prop_tgt:VS_DOTNET_REFERENCES"><b><code>VS_DOTNET_REFERENCES</code></b></a></li>
    <li><a href="#prop_tgt:VS_DOTNET_TARGET_FRAMEWORK_VERSION"><b><code>VS_DOTNET_TARGET_FRAMEWORK_VERSION</code></b></a></li>
    <li><a href="#prop_tgt:VS_GLOBAL_variable"><b><code>VS_GLOBAL_&lt;variable&gt;</code></b></a></li>
    <li><a href="#prop_tgt:VS_GLOBAL_KEYWORD"><b><code>VS_GLOBAL_KEYWORD</code></b></a></li>
    <li><a href="#prop_tgt:VS_GLOBAL_PROJECT_TYPES"><b><code>VS_GLOBAL_PROJECT_TYPES</code></b></a></li>
    <li><a href="#prop_tgt:VS_GLOBAL_ROOTNAMESPACE"><b><code>VS_GLOBAL_ROOTNAMESPACE</code></b></a></li>
    <li><a href="#prop_tgt:VS_KEYWORD"><b><code>VS_KEYWORD</code></b></a></li>
    <li><a href="#prop_tgt:VS_SCC_AUXPATH"><b><code>VS_SCC_AUXPATH</code></b></a></li>
    <li><a href="#prop_tgt:VS_SCC_LOCALPATH"><b><code>VS_SCC_LOCALPATH</code></b></a></li>
    <li><a href="#prop_tgt:VS_SCC_PROJECTNAME"><b><code>VS_SCC_PROJECTNAME</code></b></a></li>
    <li><a href="#prop_tgt:VS_SCC_PROVIDER"><b><code>VS_SCC_PROVIDER</code></b></a></li>
    <li><a href="#prop_tgt:VS_WINRT_EXTENSIONS"><b><code>VS_WINRT_EXTENSIONS</code></b></a></li>
    <li><a href="#prop_tgt:VS_WINRT_REFERENCES"><b><code>VS_WINRT_REFERENCES</code></b></a></li>
    <li><a href="#prop_tgt:WIN32_EXECUTABLE"><b><code>WIN32_EXECUTABLE</code></b></a></li>
    <li><a href="#prop_tgt:XCODE_ATTRIBUTE_an-attribute"><b><code>XCODE_ATTRIBUTE_&lt;an-attribute&gt;</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="prop_tgt:CONFIG_OUTPUT_NAME"></a><b><code>&lt;CONFIG&gt;_OUTPUT_NAME</code></b>: Old per-configuration target file base name.<br />
    <p>This is a configuration-specific version of OUTPUT_NAME.  Use OUTPUT_NAME_&lt;CONFIG&gt; instead.</p>

  </li>
  <li>
    <a name="prop_tgt:CONFIG_POSTFIX"></a><b><code>&lt;CONFIG&gt;_POSTFIX</code></b>: Postfix to append to the target file name for configuration &lt;CONFIG&gt;.<br />
    <p>When building with configuration &lt;CONFIG&gt; the value of this property is appended to the target file name built on disk.  For non-executable targets, this property is initialized by the value of the variable CMAKE_&lt;CONFIG&gt;_POSTFIX if it is set when a target is created.  This property is ignored on the Mac for Frameworks and App Bundles.</p>

  </li>
  <li>
    <a name="prop_tgt:LANG_VISIBILITY_PRESET"></a><b><code>&lt;LANG&gt;_VISIBILITY_PRESET</code></b>: Value for symbol visibility compile flags<br />
    <p>The &lt;LANG&gt;_VISIBILITY_PRESET property determines the value passed in a visibility related compile option, such as -fvisibility= for &lt;LANG&gt;.  This property only has an affect for libraries and executables with exports.  This property is initialized by the value of the variable CMAKE_&lt;LANG&gt;_VISIBILITY_PRESET if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:ALIASED_TARGET"></a><b><code>ALIASED_TARGET</code></b>: Name of target aliased by this target.<br />
    <p>If this is an ALIAS target, this property contains the name of the target aliased.</p>

  </li>
  <li>
    <a name="prop_tgt:ARCHIVE_OUTPUT_DIRECTORY"></a><b><code>ARCHIVE_OUTPUT_DIRECTORY</code></b>: Output directory in which to build ARCHIVE target files.<br />
    <p>This property specifies the directory into which archive target files should be built. Multi-configuration generators (VS, Xcode) append a per-configuration subdirectory to the specified directory.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.  This property is initialized by the value of the variable CMAKE_ARCHIVE_OUTPUT_DIRECTORY if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:ARCHIVE_OUTPUT_DIRECTORY_CONFIG"></a><b><code>ARCHIVE_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</code></b>: Per-configuration output directory for ARCHIVE target files.<br />
    <p>This is a per-configuration version of ARCHIVE_OUTPUT_DIRECTORY, but multi-configuration generators (VS, Xcode) do NOT append a per-configuration subdirectory to the specified directory.  This property is initialized by the value of the variable CMAKE_ARCHIVE_OUTPUT_DIRECTORY_&lt;CONFIG&gt; if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:ARCHIVE_OUTPUT_NAME"></a><b><code>ARCHIVE_OUTPUT_NAME</code></b>: Output name for ARCHIVE target files.<br />
    <p>This property specifies the base name for archive target files. It overrides OUTPUT_NAME and OUTPUT_NAME_&lt;CONFIG&gt; properties.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.</p>

  </li>
  <li>
    <a name="prop_tgt:ARCHIVE_OUTPUT_NAME_CONFIG"></a><b><code>ARCHIVE_OUTPUT_NAME_&lt;CONFIG&gt;</code></b>: Per-configuration output name for ARCHIVE target files.<br />
    <p>This is the configuration-specific version of ARCHIVE_OUTPUT_NAME.</p>

  </li>
  <li>
    <a name="prop_tgt:AUTOMOC"></a><b><code>AUTOMOC</code></b>: Should the target be processed with automoc (for Qt projects).<br />
    <p>AUTOMOC is a boolean specifying whether CMake will handle the Qt moc preprocessor automatically, i.e. without having to use the QT4_WRAP_CPP() or QT5_WRAP_CPP() macro. Currently Qt4 and Qt5 are supported.  When this property is set to TRUE, CMake will scan the source files at build time and invoke moc accordingly. If an #include statement like #include "moc_foo.cpp" is found, the Q_OBJECT class declaration is expected in the header, and moc is run on the header file. If an #include statement like #include "foo.moc" is found, then a Q_OBJECT is expected in the current source file and moc is run on the file itself. Additionally, all header files are parsed for Q_OBJECT macros, and if found, moc is also executed on those files. The resulting moc files, which are not included as shown above in any of the source files are included in a generated &lt;targetname&gt;_automoc.cpp file, which is compiled as part of the target.This property is initialized by the value of the variable CMAKE_AUTOMOC if it is set when a target is created.<br /></p>
<p>Additional command line options for moc can be set via the AUTOMOC_MOC_OPTIONS property.<br /></p>
<p>By setting the CMAKE_AUTOMOC_RELAXED_MODE variable to TRUE the rules for searching the files which will be processed by moc can be relaxed. See the documentation for this variable for more details.<br /></p>
<p>The global property AUTOMOC_TARGETS_FOLDER can be used to group the automoc targets together in an IDE, e.g. in MSVS.</p>

  </li>
  <li>
    <a name="prop_tgt:AUTOMOC_MOC_OPTIONS"></a><b><code>AUTOMOC_MOC_OPTIONS</code></b>: Additional options for moc when using automoc (see the AUTOMOC property)<br />
    <p>This property is only used if the AUTOMOC property is set to TRUE for this target. In this case, it holds additional command line options which will be used when moc is executed during the build, i.e. it is equivalent to the optional OPTIONS argument of the qt4_wrap_cpp() macro.<br /></p>
<p>By default it is empty.</p>

  </li>
  <li>
    <a name="prop_tgt:BUILD_WITH_INSTALL_RPATH"></a><b><code>BUILD_WITH_INSTALL_RPATH</code></b>: Should build tree targets have install tree rpaths.<br />
    <p>BUILD_WITH_INSTALL_RPATH is a boolean specifying whether to link the target in the build tree with the INSTALL_RPATH.  This takes precedence over SKIP_BUILD_RPATH and avoids the need for relinking before installation.  This property is initialized by the value of the variable CMAKE_BUILD_WITH_INSTALL_RPATH if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:BUNDLE"></a><b><code>BUNDLE</code></b>: This target is a CFBundle on the Mac.<br />
    <p>If a module library target has this property set to true it will be built as a CFBundle when built on the mac. It will have the directory structure required for a CFBundle and will be suitable to be used for creating Browser Plugins or other application resources.</p>

  </li>
  <li>
    <a name="prop_tgt:BUNDLE_EXTENSION"></a><b><code>BUNDLE_EXTENSION</code></b>: The file extension used to name a BUNDLE target on the Mac.<br />
    <p>The default value is "bundle" - you can also use "plugin" or whatever file extension is required by the host app for your bundle.</p>

  </li>
  <li>
    <a name="prop_tgt:COMPATIBLE_INTERFACE_BOOL"></a><b><code>COMPATIBLE_INTERFACE_BOOL</code></b>: Properties which must be compatible with their link interface<br />
    <p>The COMPATIBLE_INTERFACE_BOOL property may contain a list of propertiesfor this target which must be consistent when evaluated as a boolean in the INTERFACE of all linked dependees.  For example, if a property "FOO" appears in the list, then for each dependee, the "INTERFACE_FOO" property content in all of its dependencies must be consistent with each other, and with the "FOO" property in the dependee.  Consistency in this sense has the meaning that if the property is set, then it must have the same boolean value as all others, and if the property is not set, then it is ignored.  Note that for each dependee, the set of properties from this property must not intersect with the set of properties from the COMPATIBLE_INTERFACE_STRING property.</p>

  </li>
  <li>
    <a name="prop_tgt:COMPATIBLE_INTERFACE_STRING"></a><b><code>COMPATIBLE_INTERFACE_STRING</code></b>: Properties which must be string-compatible with their link interface<br />
    <p>The COMPATIBLE_INTERFACE_STRING property may contain a list of properties for this target which must be the same when evaluated as a string in the INTERFACE of all linked dependees.  For example, if a property "FOO" appears in the list, then for each dependee, the "INTERFACE_FOO" property content in all of its dependencies must be equal with each other, and with the "FOO" property in the dependee.  If the property is not set, then it is ignored.  Note that for each dependee, the set of properties from this property must not intersect with the set of properties from the COMPATIBLE_INTERFACE_BOOL property.</p>

  </li>
  <li>
    <a name="prop_tgt:COMPILE_DEFINITIONS"></a><b><code>COMPILE_DEFINITIONS</code></b>: Preprocessor definitions for compiling a target's sources.<br />
    <p>The COMPILE_DEFINITIONS property may be set to a semicolon-separated list of preprocessor definitions using the syntax VAR or VAR=value.  Function-style definitions are not supported.  CMake will automatically escape the value correctly for the native build system (note that CMake language syntax may require escapes to specify some values).  This property may be set on a per-configuration basis using the name COMPILE_DEFINITIONS_&lt;CONFIG&gt; where &lt;CONFIG&gt; is an upper-case name (ex. "COMPILE_DEFINITIONS_DEBUG").<br /></p>
<p>CMake will automatically drop some definitions that are not supported by the native build tool.  The VS6 IDE does not support definition values with spaces (but NMake does).<br /></p>
<p>Contents of COMPILE_DEFINITIONS may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    <p>Disclaimer: Most native build tools have poor support for escaping certain values.  CMake has work-arounds for many cases but some values may just not be possible to pass correctly.  If a value does not seem to be escaped correctly, do not attempt to work-around the problem by adding escape sequences to the value.  Your work-around may break in a future version of CMake that has improved escape support.  Instead consider defining the macro in a (configured) header file.  Then report the limitation.  Known limitations include:<br /></p>
<pre>  #          - broken almost everywhere<br />  ;          - broken in VS IDE 7.0 and Borland Makefiles<br />  ,          - broken in VS IDE<br />  %          - broken in some cases in NMake<br />  &amp; |        - broken in some cases on MinGW<br />  ^ &lt; &gt; \"   - broken in most Make tools on Windows<br /></pre>
    <p>CMake does not reject these values outright because they do work in some cases.  Use with caution.  </p>

  </li>
  <li>
    <a name="prop_tgt:COMPILE_DEFINITIONS_CONFIG"></a><b><code>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</code></b>: Per-configuration preprocessor definitions on a target.<br />
    <p>This is the configuration-specific version of COMPILE_DEFINITIONS.</p>

  </li>
  <li>
    <a name="prop_tgt:COMPILE_FLAGS"></a><b><code>COMPILE_FLAGS</code></b>: Additional flags to use when compiling this target's sources.<br />
    <p>The COMPILE_FLAGS property sets additional compiler flags used to build sources within the target.  Use COMPILE_DEFINITIONS to pass additional preprocessor definitions.</p>

  </li>
  <li>
    <a name="prop_tgt:COMPILE_OPTIONS"></a><b><code>COMPILE_OPTIONS</code></b>: List of options to pass to the compiler.<br />
    <p>This property specifies the list of options specified so far for this property.  This property exists on directories and targets.<br /></p>
<p>The target property values are used by the generators to set the options for the compiler.<br /></p>
<p>Contents of COMPILE_OPTIONS may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="prop_tgt:DEBUG_POSTFIX"></a><b><code>DEBUG_POSTFIX</code></b>: See target property &lt;CONFIG&gt;_POSTFIX.<br />
    <p>This property is a special case of the more-general &lt;CONFIG&gt;_POSTFIX property for the DEBUG configuration.</p>

  </li>
  <li>
    <a name="prop_tgt:DEFINE_SYMBOL"></a><b><code>DEFINE_SYMBOL</code></b>: Define a symbol when compiling this target's sources.<br />
    <p>DEFINE_SYMBOL sets the name of the preprocessor symbol defined when compiling sources in a shared library. If not set here then it is set to target_EXPORTS by default (with some substitutions if the target is not a valid C identifier). This is useful for headers to know whether they are being included from inside their library or outside to properly setup dllexport/dllimport decorations. </p>

  </li>
  <li>
    <a name="prop_tgt:ENABLE_EXPORTS"></a><b><code>ENABLE_EXPORTS</code></b>: Specify whether an executable exports symbols for loadable modules.<br />
    <p>Normally an executable does not export any symbols because it is the final program.  It is possible for an executable to export symbols to be used by loadable modules.  When this property is set to true CMake will allow other targets to "link" to the executable with the TARGET_LINK_LIBRARIES command.  On all platforms a target-level dependency on the executable is created for targets that link to it.  For DLL platforms an import library will be created for the exported symbols and then used for linking.  All Windows-based systems including Cygwin are DLL platforms.  For non-DLL platforms that require all symbols to be resolved at link time, such as Mac OS X, the module will "link" to the executable using a flag like "-bundle_loader".  For other non-DLL platforms the link rule is simply ignored since the dynamic loader will automatically bind symbols when the module is loaded.  </p>

  </li>
  <li>
    <a name="prop_tgt:EXCLUDE_FROM_ALL"></a><b><code>EXCLUDE_FROM_ALL</code></b>: Exclude the target from the all target.<br />
    <p>A property on a target that indicates if the target is excluded from the default build target. If it is not, then with a Makefile for example typing make will cause this target to be built. The same concept applies to the default build of other generators. Installing a target with EXCLUDE_FROM_ALL set to true has undefined behavior.</p>

  </li>
  <li>
    <a name="prop_tgt:EXCLUDE_FROM_DEFAULT_BUILD"></a><b><code>EXCLUDE_FROM_DEFAULT_BUILD</code></b>: Exclude target from "Build Solution".<br />
    <p>This property is only used by Visual Studio generators 7 and above. When set to TRUE, the target will not be built when you press "Build Solution".</p>

  </li>
  <li>
    <a name="prop_tgt:EXCLUDE_FROM_DEFAULT_BUILD_CONFIG"></a><b><code>EXCLUDE_FROM_DEFAULT_BUILD_&lt;CONFIG&gt;</code></b>: Per-configuration version of target exclusion from "Build Solution". <br />
    <p>This is the configuration-specific version of EXCLUDE_FROM_DEFAULT_BUILD. If the generic EXCLUDE_FROM_DEFAULT_BUILD is also set on a target, EXCLUDE_FROM_DEFAULT_BUILD_&lt;CONFIG&gt; takes precedence in configurations for which it has a value.</p>

  </li>
  <li>
    <a name="prop_tgt:EXPORT_NAME"></a><b><code>EXPORT_NAME</code></b>: Exported name for target files.<br />
    <p>This sets the name for the IMPORTED target generated when it this target is is exported.  If not set, the logical target name is used by default.</p>

  </li>
  <li>
    <a name="prop_tgt:EchoString"></a><b><code>EchoString</code></b>: A message to be displayed when the target is built.<br />
    <p>A message to display on some generators (such as makefiles) when the target is built.</p>

  </li>
  <li>
    <a name="prop_tgt:FOLDER"></a><b><code>FOLDER</code></b>: Set the folder name. Use to organize targets in an IDE.<br />
    <p>Targets with no FOLDER property will appear as top level entities in IDEs like Visual Studio. Targets with the same FOLDER property value will appear next to each other in a folder of that name. To nest folders, use FOLDER values such as 'GUI/Dialogs' with '/' characters separating folder levels.</p>

  </li>
  <li>
    <a name="prop_tgt:FRAMEWORK"></a><b><code>FRAMEWORK</code></b>: This target is a framework on the Mac.<br />
    <p>If a shared library target has this property set to true it will be built as a framework when built on the mac. It will have the directory structure required for a framework and will be suitable to be used with the -framework option</p>

  </li>
  <li>
    <a name="prop_tgt:Fortran_FORMAT"></a><b><code>Fortran_FORMAT</code></b>: Set to FIXED or FREE to indicate the Fortran source layout.<br />
    <p>This property tells CMake whether the Fortran source files in a target use fixed-format or free-format.  CMake will pass the corresponding format flag to the compiler.  Use the source-specific Fortran_FORMAT property to change the format of a specific source file.  If the variable CMAKE_Fortran_FORMAT is set when a target is created its value is used to initialize this property.</p>

  </li>
  <li>
    <a name="prop_tgt:Fortran_MODULE_DIRECTORY"></a><b><code>Fortran_MODULE_DIRECTORY</code></b>: Specify output directory for Fortran modules provided by the target.<br />
    <p>If the target contains Fortran source files that provide modules and the compiler supports a module output directory this specifies the directory in which the modules will be placed.  When this property is not set the modules will be placed in the build directory corresponding to the target's source directory.  If the variable CMAKE_Fortran_MODULE_DIRECTORY is set when a target is created its value is used to initialize this property.<br /></p>
<p>Note that some compilers will automatically search the module output directory for modules USEd during compilation but others will not.  If your sources USE modules their location must be specified by INCLUDE_DIRECTORIES regardless of this property.</p>

  </li>
  <li>
    <a name="prop_tgt:GENERATOR_FILE_NAME"></a><b><code>GENERATOR_FILE_NAME</code></b>: Generator's file for this target.<br />
    <p>An internal property used by some generators to record the name of the project or dsp file associated with this target. Note that at configure time, this property is only set for targets created by include_external_msproject().</p>

  </li>
  <li>
    <a name="prop_tgt:GNUtoMS"></a><b><code>GNUtoMS</code></b>: Convert GNU import library (.dll.a) to MS format (.lib).<br />
    <p>When linking a shared library or executable that exports symbols using GNU tools on Windows (MinGW/MSYS) with Visual Studio installed convert the import library (.dll.a) from GNU to MS format (.lib).  Both import libraries will be installed by install(TARGETS) and exported by install(EXPORT) and export() to be linked by applications with either GNU- or MS-compatible tools.<br /></p>
<p>If the variable CMAKE_GNUtoMS is set when a target is created its value is used to initialize this property.  The variable must be set prior to the first command that enables a language such as project() or enable_language().  CMake provides the variable as an option to the user automatically when configuring on Windows with GNU tools.</p>

  </li>
  <li>
    <a name="prop_tgt:HAS_CXX"></a><b><code>HAS_CXX</code></b>: Link the target using the C++ linker tool (obsolete).<br />
    <p>This is equivalent to setting the LINKER_LANGUAGE property to CXX.  See that property's documentation for details.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPLICIT_DEPENDS_INCLUDE_TRANSFORM"></a><b><code>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</code></b>: Specify #include line transforms for dependencies in a target.<br />
    <p>This property specifies rules to transform macro-like #include lines during implicit dependency scanning of C and C++ source files.  The list of rules must be semicolon-separated with each entry of the form "A_MACRO(%)=value-with-%" (the % must be literal).  During dependency scanning occurrences of A_MACRO(...) on #include lines will be replaced by the value given with the macro argument substituted for '%'.  For example, the entry<br /></p>
<pre>  MYDIR(%)=&lt;mydir/%&gt;<br /></pre>
    <p>will convert lines of the form<br /></p>
<pre>  #include MYDIR(myheader.h)<br /></pre>
    <p>to<br /></p>
<pre>  #include &lt;mydir/myheader.h&gt;<br /></pre>
    <p>allowing the dependency to be followed.<br /></p>
<p>This property applies to sources in the target on which it is set.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED"></a><b><code>IMPORTED</code></b>: Read-only indication of whether a target is IMPORTED.<br />
    <p>The boolean value of this property is true for targets created with the IMPORTED option to add_executable or add_library.  It is false for targets built within the project.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_CONFIGURATIONS"></a><b><code>IMPORTED_CONFIGURATIONS</code></b>: Configurations provided for an IMPORTED target.<br />
    <p>Set this to the list of configuration names available for an IMPORTED target.  The names correspond to configurations defined in the project from which the target is imported.  If the importing project uses a different set of configurations the names may be mapped using the MAP_IMPORTED_CONFIG_&lt;CONFIG&gt; property.  Ignored for non-imported targets.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_IMPLIB"></a><b><code>IMPORTED_IMPLIB</code></b>: Full path to the import library for an IMPORTED target.<br />
    <p>Set this to the location of the ".lib" part of a windows DLL.  Ignored for non-imported targets.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_IMPLIB_CONFIG"></a><b><code>IMPORTED_IMPLIB_&lt;CONFIG&gt;</code></b>: &lt;CONFIG&gt;-specific version of IMPORTED_IMPLIB property.<br />
    <p>Configuration names correspond to those provided by the project from which the target is imported.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LINK_DEPENDENT_LIBRARIES"></a><b><code>IMPORTED_LINK_DEPENDENT_LIBRARIES</code></b>: Dependent shared libraries of an imported shared library.<br />
    <p>Shared libraries may be linked to other shared libraries as part of their implementation.  On some platforms the linker searches for the dependent libraries of shared libraries they are including in the link.  Set this property to the list of dependent shared libraries of an imported library.  The list should be disjoint from the list of interface libraries in the INTERFACE_LINK_LIBRARIES property.  On platforms requiring dependent shared libraries to be found at link time CMake uses this list to add appropriate files or paths to the link command line.  Ignored for non-imported targets.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LINK_DEPENDENT_LIBRARIES_CONFIG"></a><b><code>IMPORTED_LINK_DEPENDENT_LIBRARIES_&lt;CONFIG&gt;</code></b>: &lt;CONFIG&gt;-specific version of IMPORTED_LINK_DEPENDENT_LIBRARIES.<br />
    <p>Configuration names correspond to those provided by the project from which the target is imported.  If set, this property completely overrides the generic property for the named configuration.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LINK_INTERFACE_LANGUAGES"></a><b><code>IMPORTED_LINK_INTERFACE_LANGUAGES</code></b>: Languages compiled into an IMPORTED static library.<br />
    <p>Set this to the list of languages of source files compiled to produce a STATIC IMPORTED library (such as "C" or "CXX").  CMake accounts for these languages when computing how to link a target to the imported library.  For example, when a C executable links to an imported C++ static library CMake chooses the C++ linker to satisfy language runtime dependencies of the static library.  <br /></p>
<p>This property is ignored for targets that are not STATIC libraries.  This property is ignored for non-imported targets.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LINK_INTERFACE_LANGUAGES_CONFIG"></a><b><code>IMPORTED_LINK_INTERFACE_LANGUAGES_&lt;CONFIG&gt;</code></b>: &lt;CONFIG&gt;-specific version of IMPORTED_LINK_INTERFACE_LANGUAGES.<br />
    <p>Configuration names correspond to those provided by the project from which the target is imported.  If set, this property completely overrides the generic property for the named configuration.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LINK_INTERFACE_LIBRARIES"></a><b><code>IMPORTED_LINK_INTERFACE_LIBRARIES</code></b>: Transitive link interface of an IMPORTED target.<br />
    <p>Set this to the list of libraries whose interface is included when an IMPORTED library target is linked to another target.  The libraries will be included on the link line for the target.  Unlike the LINK_INTERFACE_LIBRARIES property, this property applies to all imported target types, including STATIC libraries.  This property is ignored for non-imported targets.<br /></p>
<p>This property is ignored if the target also has a non-empty INTERFACE_LINK_LIBRARIES property.<br /></p>
<p>This property is deprecated. Use INTERFACE_LINK_LIBRARIES instead.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LINK_INTERFACE_LIBRARIES_CONFIG"></a><b><code>IMPORTED_LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;</code></b>: &lt;CONFIG&gt;-specific version of IMPORTED_LINK_INTERFACE_LIBRARIES.<br />
    <p>Configuration names correspond to those provided by the project from which the target is imported.  If set, this property completely overrides the generic property for the named configuration.<br /></p>
<p>This property is ignored if the target also has a non-empty INTERFACE_LINK_LIBRARIES property.<br /></p>
<p>This property is deprecated. Use INTERFACE_LINK_LIBRARIES instead.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LINK_INTERFACE_MULTIPLICITY"></a><b><code>IMPORTED_LINK_INTERFACE_MULTIPLICITY</code></b>: Repetition count for cycles of IMPORTED static libraries.<br />
    <p>This is LINK_INTERFACE_MULTIPLICITY for IMPORTED targets.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LINK_INTERFACE_MULTIPLICITY_CONFIG"></a><b><code>IMPORTED_LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;</code></b>: &lt;CONFIG&gt;-specific version of IMPORTED_LINK_INTERFACE_MULTIPLICITY.<br />
    <p>If set, this property completely overrides the generic property for the named configuration.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LOCATION"></a><b><code>IMPORTED_LOCATION</code></b>: Full path to the main file on disk for an IMPORTED target.<br />
    <p>Set this to the location of an IMPORTED target file on disk.  For executables this is the location of the executable file.  For bundles on OS X this is the location of the executable file inside Contents/MacOS under the application bundle folder.  For static libraries and modules this is the location of the library or module.  For shared libraries on non-DLL platforms this is the location of the shared library.  For frameworks on OS X this is the location of the library file symlink just inside the framework folder.  For DLLs this is the location of the ".dll" part of the library.  For UNKNOWN libraries this is the location of the file to be linked.  Ignored for non-imported targets.<br /></p>
<p>Projects may skip IMPORTED_LOCATION if the configuration-specific property IMPORTED_LOCATION_&lt;CONFIG&gt; is set.  To get the location of an imported target read one of the LOCATION or LOCATION_&lt;CONFIG&gt; properties.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_LOCATION_CONFIG"></a><b><code>IMPORTED_LOCATION_&lt;CONFIG&gt;</code></b>: &lt;CONFIG&gt;-specific version of IMPORTED_LOCATION property.<br />
    <p>Configuration names correspond to those provided by the project from which the target is imported.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_NO_SONAME"></a><b><code>IMPORTED_NO_SONAME</code></b>: Specifies that an IMPORTED shared library target has no "soname".  <br />
    <p>Set this property to true for an imported shared library file that has no "soname" field.  CMake may adjust generated link commands for some platforms to prevent the linker from using the path to the library in place of its missing soname.  Ignored for non-imported targets.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_NO_SONAME_CONFIG"></a><b><code>IMPORTED_NO_SONAME_&lt;CONFIG&gt;</code></b>: &lt;CONFIG&gt;-specific version of IMPORTED_NO_SONAME property.<br />
    <p>Configuration names correspond to those provided by the project from which the target is imported.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_SONAME"></a><b><code>IMPORTED_SONAME</code></b>: The "soname" of an IMPORTED target of shared library type.<br />
    <p>Set this to the "soname" embedded in an imported shared library.  This is meaningful only on platforms supporting the feature.  Ignored for non-imported targets.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORTED_SONAME_CONFIG"></a><b><code>IMPORTED_SONAME_&lt;CONFIG&gt;</code></b>: &lt;CONFIG&gt;-specific version of IMPORTED_SONAME property.<br />
    <p>Configuration names correspond to those provided by the project from which the target is imported.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORT_PREFIX"></a><b><code>IMPORT_PREFIX</code></b>: What comes before the import library name.<br />
    <p>Similar to the target property PREFIX, but used for import libraries (typically corresponding to a DLL) instead of regular libraries. A target property that can be set to override the prefix (such as "lib") on an import library name.</p>

  </li>
  <li>
    <a name="prop_tgt:IMPORT_SUFFIX"></a><b><code>IMPORT_SUFFIX</code></b>: What comes after the import library name.<br />
    <p>Similar to the target property SUFFIX, but used for import libraries (typically corresponding to a DLL) instead of regular libraries. A target property that can be set to override the suffix (such as ".lib") on an import library name.</p>

  </li>
  <li>
    <a name="prop_tgt:INCLUDE_DIRECTORIES"></a><b><code>INCLUDE_DIRECTORIES</code></b>: List of preprocessor include file search directories.<br />
    <p>This property specifies the list of directories given so far to the include_directories command. This property exists on directories and targets. In addition to accepting values from the include_directories command, values may be set directly on any directory or any target using the set_property command. A target gets its initial value for this property from the value of the directory property. A directory gets its initial value from its parent directory if it has one. Both directory and target property values are adjusted by calls to the include_directories command.<br /></p>
<p>The target property values are used by the generators to set the include paths for the compiler.  See also the include_directories command.<br /></p>
<p>Contents of INCLUDE_DIRECTORIES may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="prop_tgt:INSTALL_NAME_DIR"></a><b><code>INSTALL_NAME_DIR</code></b>: Mac OSX directory name for installed targets.<br />
    <p>INSTALL_NAME_DIR is a string specifying the directory portion of the "install_name" field of shared libraries on Mac OSX to use in the installed targets. </p>

  </li>
  <li>
    <a name="prop_tgt:INSTALL_RPATH"></a><b><code>INSTALL_RPATH</code></b>: The rpath to use for installed targets.<br />
    <p>A semicolon-separated list specifying the rpath to use in installed targets (for platforms that support it).  This property is initialized by the value of the variable CMAKE_INSTALL_RPATH if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:INSTALL_RPATH_USE_LINK_PATH"></a><b><code>INSTALL_RPATH_USE_LINK_PATH</code></b>: Add paths to linker search and installed rpath.<br />
    <p>INSTALL_RPATH_USE_LINK_PATH is a boolean that if set to true will append directories in the linker search path and outside the project to the INSTALL_RPATH.  This property is initialized by the value of the variable CMAKE_INSTALL_RPATH_USE_LINK_PATH if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:INTERFACE_COMPILE_DEFINITIONS"></a><b><code>INTERFACE_COMPILE_DEFINITIONS</code></b>: List of public compile definitions for a library.<br />
    <p>Targets may populate this property to publish the compile definitions required to compile against the headers for the target.  Consuming targets can add entries to their own COMPILE_DEFINITIONS property such as $&lt;TARGET_PROPERTY:foo,INTERFACE_COMPILE_DEFINITIONS&gt; to use the compile definitions specified in the interface of 'foo'.<br /></p>
<p>Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="prop_tgt:INTERFACE_COMPILE_OPTIONS"></a><b><code>INTERFACE_COMPILE_OPTIONS</code></b>: List of interface options to pass to the compiler.<br />
    <p>Targets may populate this property to publish the compile options required to compile against the headers for the target.  Consuming targets can add entries to their own COMPILE_OPTIONS property such as $&lt;TARGET_PROPERTY:foo,INTERFACE_COMPILE_OPTIONS&gt; to use the compile options specified in the interface of 'foo'.<br /></p>
<p>Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="prop_tgt:INTERFACE_INCLUDE_DIRECTORIES"></a><b><code>INTERFACE_INCLUDE_DIRECTORIES</code></b>: List of public include directories for a library.<br />
    <p>Targets may populate this property to publish the include directories required to compile against the headers for the target.  Consuming targets can add entries to their own INCLUDE_DIRECTORIES property such as $&lt;TARGET_PROPERTY:foo,INTERFACE_INCLUDE_DIRECTORIES&gt; to use the include directories specified in the interface of 'foo'.<br /></p>
<p>Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="prop_tgt:INTERFACE_LINK_LIBRARIES"></a><b><code>INTERFACE_LINK_LIBRARIES</code></b>: List public interface libraries for a library.<br />
    <p>This property contains the list of transitive link dependencies.  When the target is linked into another target the libraries listed (and recursively their link interface libraries) will be provided to the other target also.  This property is overridden by the LINK_INTERFACE_LIBRARIES or LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt; property if policy CMP0022 is OLD or unset.<br /></p>
<p><br /></p>
<p>Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="prop_tgt:INTERFACE_POSITION_INDEPENDENT_CODE"></a><b><code>INTERFACE_POSITION_INDEPENDENT_CODE</code></b>: Whether consumers need to create a position-independent target<br />
    <p>The INTERFACE_POSITION_INDEPENDENT_CODE property informs consumers of this target whether they must set their POSITION_INDEPENDENT_CODE property to ON.  If this property is set to ON, then the POSITION_INDEPENDENT_CODE property on all consumers will be set to ON.  Similarly, if this property is set to OFF, then the POSITION_INDEPENDENT_CODE property on all consumers will be set to OFF.  If this property is undefined, then consumers will determine their POSITION_INDEPENDENT_CODE property by other means.  Consumers must ensure that the targets that they link to have a consistent requirement for their INTERFACE_POSITION_INDEPENDENT_CODE property.</p>

  </li>
  <li>
    <a name="prop_tgt:INTERFACE_SYSTEM_INCLUDE_DIRECTORIES"></a><b><code>INTERFACE_SYSTEM_INCLUDE_DIRECTORIES</code></b>: List of public system include directories for a library.<br />
    <p>Targets may populate this property to publish the include directories which contain system headers, and therefore should not result in compiler warnings.  Consuming targets will then mark the same include directories as system headers.<br /></p>
<p>Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="prop_tgt:INTERPROCEDURAL_OPTIMIZATION"></a><b><code>INTERPROCEDURAL_OPTIMIZATION</code></b>: Enable interprocedural optimization for a target.<br />
    <p>If set to true, enables interprocedural optimizations if they are known to be supported by the compiler.</p>

  </li>
  <li>
    <a name="prop_tgt:INTERPROCEDURAL_OPTIMIZATION_CONFIG"></a><b><code>INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;</code></b>: Per-configuration interprocedural optimization for a target.<br />
    <p>This is a per-configuration version of INTERPROCEDURAL_OPTIMIZATION.  If set, this property overrides the generic property for the named configuration.</p>

  </li>
  <li>
    <a name="prop_tgt:LABELS"></a><b><code>LABELS</code></b>: Specify a list of text labels associated with a target.<br />
    <p>Target label semantics are currently unspecified.</p>

  </li>
  <li>
    <a name="prop_tgt:LIBRARY_OUTPUT_DIRECTORY"></a><b><code>LIBRARY_OUTPUT_DIRECTORY</code></b>: Output directory in which to build LIBRARY target files.<br />
    <p>This property specifies the directory into which library target files should be built. Multi-configuration generators (VS, Xcode) append a per-configuration subdirectory to the specified directory.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.  This property is initialized by the value of the variable CMAKE_LIBRARY_OUTPUT_DIRECTORY if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:LIBRARY_OUTPUT_DIRECTORY_CONFIG"></a><b><code>LIBRARY_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</code></b>: Per-configuration output directory for LIBRARY target files.<br />
    <p>This is a per-configuration version of LIBRARY_OUTPUT_DIRECTORY, but multi-configuration generators (VS, Xcode) do NOT append a per-configuration subdirectory to the specified directory.  This property is initialized by the value of the variable CMAKE_LIBRARY_OUTPUT_DIRECTORY_&lt;CONFIG&gt; if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:LIBRARY_OUTPUT_NAME"></a><b><code>LIBRARY_OUTPUT_NAME</code></b>: Output name for LIBRARY target files.<br />
    <p>This property specifies the base name for library target files. It overrides OUTPUT_NAME and OUTPUT_NAME_&lt;CONFIG&gt; properties.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.</p>

  </li>
  <li>
    <a name="prop_tgt:LIBRARY_OUTPUT_NAME_CONFIG"></a><b><code>LIBRARY_OUTPUT_NAME_&lt;CONFIG&gt;</code></b>: Per-configuration output name for LIBRARY target files.<br />
    <p>This is the configuration-specific version of LIBRARY_OUTPUT_NAME.</p>

  </li>
  <li>
    <a name="prop_tgt:LINKER_LANGUAGE"></a><b><code>LINKER_LANGUAGE</code></b>: Specifies language whose compiler will invoke the linker.<br />
    <p>For executables, shared libraries, and modules, this sets the language whose compiler is used to link the target (such as "C" or "CXX").  A typical value for an executable is the language of the source file providing the program entry point (main).  If not set, the language with the highest linker preference value is the default.  See documentation of CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE variables.<br /></p>
<p>If this property is not set by the user, it will be calculated at generate-time by CMake.</p>

  </li>
  <li>
    <a name="prop_tgt:LINK_DEPENDS"></a><b><code>LINK_DEPENDS</code></b>: Additional files on which a target binary depends for linking.<br />
    <p>Specifies a semicolon-separated list of full-paths to files on which the link rule for this target depends.  The target binary will be linked if any of the named files is newer than it.<br /></p>
<p>This property is ignored by non-Makefile generators.  It is intended to specify dependencies on "linker scripts" for custom Makefile link rules.</p>

  </li>
  <li>
    <a name="prop_tgt:LINK_DEPENDS_NO_SHARED"></a><b><code>LINK_DEPENDS_NO_SHARED</code></b>: Do not depend on linked shared library files.<br />
    <p>Set this property to true to tell CMake generators not to add file-level dependencies on the shared library files linked by this target.  Modification to the shared libraries will not be sufficient to re-link this target.  Logical target-level dependencies will not be affected so the linked shared libraries will still be brought up to date before this target is built.<br /></p>
<p>This property is initialized by the value of the variable CMAKE_LINK_DEPENDS_NO_SHARED if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:LINK_FLAGS"></a><b><code>LINK_FLAGS</code></b>: Additional flags to use when linking this target.<br />
    <p>The LINK_FLAGS property can be used to add extra flags to the link step of a target. LINK_FLAGS_&lt;CONFIG&gt; will add to the configuration &lt;CONFIG&gt;, for example, DEBUG, RELEASE, MINSIZEREL, RELWITHDEBINFO. </p>

  </li>
  <li>
    <a name="prop_tgt:LINK_FLAGS_CONFIG"></a><b><code>LINK_FLAGS_&lt;CONFIG&gt;</code></b>: Per-configuration linker flags for a target.<br />
    <p>This is the configuration-specific version of LINK_FLAGS.</p>

  </li>
  <li>
    <a name="prop_tgt:LINK_INTERFACE_LIBRARIES"></a><b><code>LINK_INTERFACE_LIBRARIES</code></b>: List public interface libraries for a shared library or executable.<br />
    <p>By default linking to a shared library target transitively links to targets with which the library itself was linked.  For an executable with exports (see the ENABLE_EXPORTS property) no default transitive link dependencies are used.  This property replaces the default transitive link dependencies with an explicit list.  When the target is linked into another target the libraries listed (and recursively their link interface libraries) will be provided to the other target also.  If the list is empty then no transitive link dependencies will be incorporated when this target is linked into another target even if the default set is non-empty.  This property is initialized by the value of the variable CMAKE_LINK_INTERFACE_LIBRARIES if it is set when a target is created.  This property is ignored for STATIC libraries.<br /></p>
<p>This property is overridden by the INTERFACE_LINK_LIBRARIES property if policy CMP0022 is NEW.<br /></p>
<p>This property is deprecated. Use INTERFACE_LINK_LIBRARIES instead.</p>

  </li>
  <li>
    <a name="prop_tgt:LINK_INTERFACE_LIBRARIES_CONFIG"></a><b><code>LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;</code></b>: Per-configuration list of public interface libraries for a target.<br />
    <p>This is the configuration-specific version of LINK_INTERFACE_LIBRARIES.  If set, this property completely overrides the generic property for the named configuration.<br /></p>
<p>This property is overridden by the INTERFACE_LINK_LIBRARIES property if policy CMP0022 is NEW.<br /></p>
<p>This property is deprecated. Use INTERFACE_LINK_LIBRARIES instead.</p>

  </li>
  <li>
    <a name="prop_tgt:LINK_INTERFACE_MULTIPLICITY"></a><b><code>LINK_INTERFACE_MULTIPLICITY</code></b>: Repetition count for STATIC libraries with cyclic dependencies.<br />
    <p>When linking to a STATIC library target with cyclic dependencies the linker may need to scan more than once through the archives in the strongly connected component of the dependency graph.  CMake by default constructs the link line so that the linker will scan through the component at least twice.  This property specifies the minimum number of scans if it is larger than the default.  CMake uses the largest value specified by any target in a component.</p>

  </li>
  <li>
    <a name="prop_tgt:LINK_INTERFACE_MULTIPLICITY_CONFIG"></a><b><code>LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;</code></b>: Per-configuration repetition count for cycles of STATIC libraries.<br />
    <p>This is the configuration-specific version of LINK_INTERFACE_MULTIPLICITY.  If set, this property completely overrides the generic property for the named configuration.</p>

  </li>
  <li>
    <a name="prop_tgt:LINK_LIBRARIES"></a><b><code>LINK_LIBRARIES</code></b>: List of direct link dependencies.<br />
    <p>This property specifies the list of libraries or targets which will be used for linking. In addition to accepting values from the target_link_libraries command, values may be set directly on any target using the set_property command. <br /></p>
<p>The target property values are used by the generators to set the link libraries for the compiler.  See also the target_link_libraries command.<br /></p>
<p>Contents of LINK_LIBRARIES may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluated during build system generation to produce information specific to each build configuration.  Valid expressions are:<br /></p>
<pre>  $&lt;0:...&gt;                  = empty string (ignores "...")<br />  $&lt;1:...&gt;                  = content of "..."<br />  $&lt;CONFIG:cfg&gt;             = '1' if config is "cfg", else '0'<br />  $&lt;CONFIGURATION&gt;          = configuration name<br />  $&lt;BOOL:...&gt;               = '1' if the '...' is true, else '0'<br />  $&lt;STREQUAL:a,b&gt;           = '1' if a is STREQUAL b, else '0'<br />  $&lt;ANGLE-R&gt;                = A literal '&gt;'. Used to compare strings which contain a '&gt;' for example.<br />  $&lt;COMMA&gt;                  = A literal ','. Used to compare strings which contain a ',' for example.<br />  $&lt;SEMICOLON&gt;              = A literal ';'. Used to prevent list expansion on an argument with ';'.<br />  $&lt;JOIN:list,...&gt;          = joins the list with the content of "..."<br />  $&lt;TARGET_NAME:...&gt;        = Marks ... as being the name of a target.  This is required if exporting targets to multiple dependent export sets.  The '...' must be a literal name of a target- it may not contain generator expressions.<br />  $&lt;INSTALL_INTERFACE:...&gt;  = content of "..." when the property is exported using install(EXPORT), and empty otherwise.<br />  $&lt;BUILD_INTERFACE:...&gt;    = content of "..." when the property is exported using export(), or when the target is used by another target in the same buildsystem. Expands to the empty string otherwise.<br />  $&lt;C_COMPILER_ID&gt;          = The CMake-id of the C compiler used.<br />  $&lt;C_COMPILER_ID:comp&gt;     = '1' if the CMake-id of the C compiler matches comp, otherwise '0'.<br />  $&lt;CXX_COMPILER_ID&gt;        = The CMake-id of the CXX compiler used.<br />  $&lt;CXX_COMPILER_ID:comp&gt;   = '1' if the CMake-id of the CXX compiler matches comp, otherwise '0'.<br />  $&lt;VERSION_GREATER:v1,v2&gt;  = '1' if v1 is a version greater than v2, else '0'.<br />  $&lt;VERSION_LESS:v1,v2&gt;     = '1' if v1 is a version less than v2, else '0'.<br />  $&lt;VERSION_EQUAL:v1,v2&gt;    = '1' if v1 is the same version as v2, else '0'.<br />  $&lt;C_COMPILER_VERSION&gt;     = The version of the C compiler used.<br />  $&lt;C_COMPILER_VERSION:ver&gt; = '1' if the version of the C compiler matches ver, otherwise '0'.<br />  $&lt;CXX_COMPILER_VERSION&gt;   = The version of the CXX compiler used.<br />  $&lt;CXX_COMPILER_VERSION:ver&gt; = '1' if the version of the CXX compiler matches ver, otherwise '0'.<br />  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)<br />  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)<br />  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)<br /></pre>
    <p>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:<br /></p>
<pre>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;<br />  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;<br /></pre>
    <p><br /></p>
<pre>  $&lt;TARGET_PROPERTY:tgt,prop&gt;   = The value of the property prop on the target tgt.<br /></pre>
    <p>Note that tgt is not added as a dependency of the target this expression is evaluated on.<br /></p>
<pre>  $&lt;TARGET_POLICY:pol&gt;          = '1' if the policy was NEW when the 'head' target was created, else '0'.  If the policy was not set, the warning message for the policy will be emitted.  This generator expression only works for a subset of policies.<br />  $&lt;INSTALL_PREFIX&gt;         = Content of the install prefix when the target is exported via INSTALL(EXPORT) and empty otherwise.<br /></pre>
    <p>Boolean expressions:<br /></p>
<pre>  $&lt;AND:?[,?]...&gt;           = '1' if all '?' are '1', else '0'<br />  $&lt;OR:?[,?]...&gt;            = '0' if all '?' are '0', else '1'<br />  $&lt;NOT:?&gt;                  = '0' if '?' is '1', else '1'<br /></pre>
    <p>where '?' is always either '0' or '1'.<br /></p>
<p>Expressions with an implicit 'this' target:<br /></p>
<pre>  $&lt;TARGET_PROPERTY:prop&gt;   = The value of the property prop on the target on which the generator expression is evaluated.<br /></pre>
    
  </li>
  <li>
    <a name="prop_tgt:LINK_SEARCH_END_STATIC"></a><b><code>LINK_SEARCH_END_STATIC</code></b>: End a link line such that static system libraries are used.<br />
    <p>Some linkers support switches such as -Bstatic and -Bdynamic to determine whether to use static or shared libraries for -lXXX options.  CMake uses these options to set the link type for libraries whose full paths are not known or (in some cases) are in implicit link directories for the platform.  By default CMake adds an option at the end of the library list (if necessary) to set the linker search type back to its starting type.  This property switches the final linker search type to -Bstatic regardless of how it started.  See also LINK_SEARCH_START_STATIC.</p>

  </li>
  <li>
    <a name="prop_tgt:LINK_SEARCH_START_STATIC"></a><b><code>LINK_SEARCH_START_STATIC</code></b>: Assume the linker looks for static libraries by default.<br />
    <p>Some linkers support switches such as -Bstatic and -Bdynamic to determine whether to use static or shared libraries for -lXXX options.  CMake uses these options to set the link type for libraries whose full paths are not known or (in some cases) are in implicit link directories for the platform.  By default the linker search type is assumed to be -Bdynamic at the beginning of the library list.  This property switches the assumption to -Bstatic.  It is intended for use when linking an executable statically (e.g. with the GNU -static option).  See also LINK_SEARCH_END_STATIC.</p>

  </li>
  <li>
    <a name="prop_tgt:LOCATION"></a><b><code>LOCATION</code></b>: Read-only location of a target on disk.<br />
    <p>For an imported target, this read-only property returns the value of the LOCATION_&lt;CONFIG&gt; property for an unspecified configuration &lt;CONFIG&gt; provided by the target.<br /></p>
<p>For a non-imported target, this property is provided for compatibility with CMake 2.4 and below.  It was meant to get the location of an executable target's output file for use in add_custom_command.  The path may contain a build-system-specific portion that is replaced at build time with the configuration getting built (such as "$(ConfigurationName)" in VS). In CMake 2.6 and above add_custom_command automatically recognizes a target name in its COMMAND and DEPENDS options and computes the target location.  In CMake 2.8.4 and above add_custom_command recognizes generator expressions to refer to target locations anywhere in the command.  Therefore this property is not needed for creating custom commands.<br /></p>
<p>Do not set properties that affect the location of a target after reading this property.  These include properties whose names match "(RUNTIME|LIBRARY|ARCHIVE)_OUTPUT_(NAME|DIRECTORY)(_&lt;CONFIG&gt;)?", "(IMPLIB_)?(PREFIX|SUFFIX)", or "LINKER_LANGUAGE".  Failure to follow this rule is not diagnosed and leaves the location of the target undefined.</p>

  </li>
  <li>
    <a name="prop_tgt:LOCATION_CONFIG"></a><b><code>LOCATION_&lt;CONFIG&gt;</code></b>: Read-only property providing a target location on disk.<br />
    <p>A read-only property that indicates where a target's main file is located on disk for the configuration &lt;CONFIG&gt;.  The property is defined only for library and executable targets.  An imported target may provide a set of configurations different from that of the importing project.  By default CMake looks for an exact-match but otherwise uses an arbitrary available configuration.  Use the MAP_IMPORTED_CONFIG_&lt;CONFIG&gt; property to map imported configurations explicitly.<br /></p>
<p>Do not set properties that affect the location of a target after reading this property.  These include properties whose names match "(RUNTIME|LIBRARY|ARCHIVE)_OUTPUT_(NAME|DIRECTORY)(_&lt;CONFIG&gt;)?", "(IMPLIB_)?(PREFIX|SUFFIX)", or "LINKER_LANGUAGE".  Failure to follow this rule is not diagnosed and leaves the location of the target undefined.</p>

  </li>
  <li>
    <a name="prop_tgt:MACOSX_BUNDLE"></a><b><code>MACOSX_BUNDLE</code></b>: Build an executable as an application bundle on Mac OS X.<br />
    <p>When this property is set to true the executable when built on Mac OS X will be created as an application bundle.  This makes it a GUI executable that can be launched from the Finder.  See the MACOSX_BUNDLE_INFO_PLIST target property for information about creation of the Info.plist file for the application bundle.  This property is initialized by the value of the variable CMAKE_MACOSX_BUNDLE if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:MACOSX_BUNDLE_INFO_PLIST"></a><b><code>MACOSX_BUNDLE_INFO_PLIST</code></b>: Specify a custom Info.plist template for a Mac OS X App Bundle.<br />
    <p>An executable target with MACOSX_BUNDLE enabled will be built as an application bundle on Mac OS X.  By default its Info.plist file is created by configuring a template called MacOSXBundleInfo.plist.in located in the CMAKE_MODULE_PATH.  This property specifies an alternative template file name which may be a full path.<br /></p>
<p>The following target properties may be set to specify content to be configured into the file:<br /></p>
<pre>  MACOSX_BUNDLE_INFO_STRING<br />  MACOSX_BUNDLE_ICON_FILE<br />  MACOSX_BUNDLE_GUI_IDENTIFIER<br />  MACOSX_BUNDLE_LONG_VERSION_STRING<br />  MACOSX_BUNDLE_BUNDLE_NAME<br />  MACOSX_BUNDLE_SHORT_VERSION_STRING<br />  MACOSX_BUNDLE_BUNDLE_VERSION<br />  MACOSX_BUNDLE_COPYRIGHT<br /></pre>
    <p>CMake variables of the same name may be set to affect all targets in a directory that do not have each specific property set.  If a custom Info.plist is specified by this property it may of course hard-code all the settings instead of using the target properties.</p>

  </li>
  <li>
    <a name="prop_tgt:MACOSX_FRAMEWORK_INFO_PLIST"></a><b><code>MACOSX_FRAMEWORK_INFO_PLIST</code></b>: Specify a custom Info.plist template for a Mac OS X Framework.<br />
    <p>A library target with FRAMEWORK enabled will be built as a framework on Mac OS X.  By default its Info.plist file is created by configuring a template called MacOSXFrameworkInfo.plist.in located in the CMAKE_MODULE_PATH.  This property specifies an alternative template file name which may be a full path.<br /></p>
<p>The following target properties may be set to specify content to be configured into the file:<br /></p>
<pre>  MACOSX_FRAMEWORK_ICON_FILE<br />  MACOSX_FRAMEWORK_IDENTIFIER<br />  MACOSX_FRAMEWORK_SHORT_VERSION_STRING<br />  MACOSX_FRAMEWORK_BUNDLE_VERSION<br /></pre>
    <p>CMake variables of the same name may be set to affect all targets in a directory that do not have each specific property set.  If a custom Info.plist is specified by this property it may of course hard-code all the settings instead of using the target properties.</p>

  </li>
  <li>
    <a name="prop_tgt:MACOSX_RPATH"></a><b><code>MACOSX_RPATH</code></b>: Whether to use rpaths on Mac OS X.<br />
    <p>When this property is set to true, the directory portion of the"install_name" field of shared libraries will default to "@rpath".Runtime paths will also be embedded in binaries using this target.This property is initialized by the value of the variable CMAKE_MACOSX_RPATH if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:MAP_IMPORTED_CONFIG_CONFIG"></a><b><code>MAP_IMPORTED_CONFIG_&lt;CONFIG&gt;</code></b>: Map from project configuration to IMPORTED target's configuration.<br />
    <p>Set this to the list of configurations of an imported target that may be used for the current project's &lt;CONFIG&gt; configuration.  Targets imported from another project may not provide the same set of configuration names available in the current project.  Setting this property tells CMake what imported configurations are suitable for use when building the &lt;CONFIG&gt; configuration.  The first configuration in the list found to be provided by the imported target is selected.  If this property is set and no matching configurations are available, then the imported target is considered to be not found.  This property is ignored for non-imported targets.</p>

  </li>
  <li>
    <a name="prop_tgt:NAME"></a><b><code>NAME</code></b>: Logical name for the target.<br />
    <p>Read-only logical name for the target as used by CMake.</p>

  </li>
  <li>
    <a name="prop_tgt:NO_SONAME"></a><b><code>NO_SONAME</code></b>: Whether to set "soname" when linking a shared library or module.<br />
    <p>Enable this boolean property if a generated shared library or module should not have "soname" set. Default is to set "soname" on all shared libraries and modules as long as the platform supports it. Generally, use this property only for leaf private libraries or plugins. If you use it on normal shared libraries which other targets link against, on some platforms a linker will insert a full path to the library (as specified at link time) into the dynamic section of the dependent binary. Therefore, once installed, dynamic loader may eventually fail to locate the library for the binary.</p>

  </li>
  <li>
    <a name="prop_tgt:OSX_ARCHITECTURES"></a><b><code>OSX_ARCHITECTURES</code></b>: Target specific architectures for OS X.<br />
    <p>The OSX_ARCHITECTURES property sets the target binary architecture for targets on OS X.  This property is initialized by the value of the variable CMAKE_OSX_ARCHITECTURES if it is set when a target is created.  Use OSX_ARCHITECTURES_&lt;CONFIG&gt; to set the binary architectures on a per-configuration basis.  &lt;CONFIG&gt; is an upper-case name (ex: "OSX_ARCHITECTURES_DEBUG").</p>

  </li>
  <li>
    <a name="prop_tgt:OSX_ARCHITECTURES_CONFIG"></a><b><code>OSX_ARCHITECTURES_&lt;CONFIG&gt;</code></b>: Per-configuration OS X binary architectures for a target.<br />
    <p>This property is the configuration-specific version of OSX_ARCHITECTURES.</p>

  </li>
  <li>
    <a name="prop_tgt:OUTPUT_NAME"></a><b><code>OUTPUT_NAME</code></b>: Output name for target files.<br />
    <p>This sets the base name for output files created for an executable or library target.  If not set, the logical target name is used by default.</p>

  </li>
  <li>
    <a name="prop_tgt:OUTPUT_NAME_CONFIG"></a><b><code>OUTPUT_NAME_&lt;CONFIG&gt;</code></b>: Per-configuration target file base name.<br />
    <p>This is the configuration-specific version of OUTPUT_NAME.</p>

  </li>
  <li>
    <a name="prop_tgt:PDB_NAME"></a><b><code>PDB_NAME</code></b>: Output name for MS debug symbols .pdb file from linker.<br />
    <p>Set the base name for debug symbols file created for an executable or shared library target.  If not set, the logical target name is used by default.  <br /></p>
<p>This property is not implemented by the Visual Studio 6 generator.</p>

  </li>
  <li>
    <a name="prop_tgt:PDB_NAME_CONFIG"></a><b><code>PDB_NAME_&lt;CONFIG&gt;</code></b>: Per-configuration name for MS debug symbols .pdb file.  <br />
    <p>This is the configuration-specific version of PDB_NAME.  <br /></p>
<p>This property is not implemented by the Visual Studio 6 generator.</p>

  </li>
  <li>
    <a name="prop_tgt:PDB_OUTPUT_DIRECTORY"></a><b><code>PDB_OUTPUT_DIRECTORY</code></b>: Output directory for MS debug symbols .pdb file from linker.<br />
    <p>This property specifies the directory into which the MS debug symbols will be placed by the linker.  This property is initialized by the value of the variable CMAKE_PDB_OUTPUT_DIRECTORY if it is set when a target is created.<br /></p>
<p>This property is not implemented by the Visual Studio 6 generator.</p>

  </li>
  <li>
    <a name="prop_tgt:PDB_OUTPUT_DIRECTORY_CONFIG"></a><b><code>PDB_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</code></b>: Per-configuration output directory for MS debug symbols .pdb files.<br />
    <p>This is a per-configuration version of PDB_OUTPUT_DIRECTORY, but multi-configuration generators (VS, Xcode) do NOT append a per-configuration subdirectory to the specified directory. This property is initialized by the value of the variable CMAKE_PDB_OUTPUT_DIRECTORY_&lt;CONFIG&gt; if it is set when a target is created.<br /></p>
<p>This property is not implemented by the Visual Studio 6 generator.</p>

  </li>
  <li>
    <a name="prop_tgt:POSITION_INDEPENDENT_CODE"></a><b><code>POSITION_INDEPENDENT_CODE</code></b>: Whether to create a position-independent target<br />
    <p>The POSITION_INDEPENDENT_CODE property determines whether position independent executables or shared libraries will be created.  This property is true by default for SHARED and MODULE library targets and false otherwise.  This property is initialized by the value of the variable CMAKE_POSITION_INDEPENDENT_CODE if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:POST_INSTALL_SCRIPT"></a><b><code>POST_INSTALL_SCRIPT</code></b>: Deprecated install support.<br />
    <p>The PRE_INSTALL_SCRIPT and POST_INSTALL_SCRIPT properties are the old way to specify CMake scripts to run before and after installing a target.  They are used only when the old INSTALL_TARGETS command is used to install the target.  Use the INSTALL command instead.</p>

  </li>
  <li>
    <a name="prop_tgt:PREFIX"></a><b><code>PREFIX</code></b>: What comes before the library name.<br />
    <p>A target property that can be set to override the prefix (such as "lib") on a library name.</p>

  </li>
  <li>
    <a name="prop_tgt:PRE_INSTALL_SCRIPT"></a><b><code>PRE_INSTALL_SCRIPT</code></b>: Deprecated install support.<br />
    <p>The PRE_INSTALL_SCRIPT and POST_INSTALL_SCRIPT properties are the old way to specify CMake scripts to run before and after installing a target.  They are used only when the old INSTALL_TARGETS command is used to install the target.  Use the INSTALL command instead.</p>

  </li>
  <li>
    <a name="prop_tgt:PRIVATE_HEADER"></a><b><code>PRIVATE_HEADER</code></b>: Specify private header files in a FRAMEWORK shared library target.<br />
    <p>Shared library targets marked with the FRAMEWORK property generate frameworks on OS X and normal shared libraries on other platforms.  This property may be set to a list of header files to be placed in the PrivateHeaders directory inside the framework folder.  On non-Apple platforms these headers may be installed using the PRIVATE_HEADER option to the install(TARGETS) command.</p>

  </li>
  <li>
    <a name="prop_tgt:PROJECT_LABEL"></a><b><code>PROJECT_LABEL</code></b>: Change the name of a target in an IDE.<br />
    <p>Can be used to change the name of the target in an IDE like Visual Studio. </p>

  </li>
  <li>
    <a name="prop_tgt:PUBLIC_HEADER"></a><b><code>PUBLIC_HEADER</code></b>: Specify public header files in a FRAMEWORK shared library target.<br />
    <p>Shared library targets marked with the FRAMEWORK property generate frameworks on OS X and normal shared libraries on other platforms.  This property may be set to a list of header files to be placed in the Headers directory inside the framework folder.  On non-Apple platforms these headers may be installed using the PUBLIC_HEADER option to the install(TARGETS) command.</p>

  </li>
  <li>
    <a name="prop_tgt:RESOURCE"></a><b><code>RESOURCE</code></b>: Specify resource files in a FRAMEWORK shared library target.<br />
    <p>Shared library targets marked with the FRAMEWORK property generate frameworks on OS X and normal shared libraries on other platforms.  This property may be set to a list of files to be placed in the Resources directory inside the framework folder.  On non-Apple platforms these files may be installed using the RESOURCE option to the install(TARGETS) command.</p>

  </li>
  <li>
    <a name="prop_tgt:RULE_LAUNCH_COMPILE"></a><b><code>RULE_LAUNCH_COMPILE</code></b>: Specify a launcher for compile rules.<br />
    <p>See the global property of the same name for details.  This overrides the global and directory property for a target.</p>

  </li>
  <li>
    <a name="prop_tgt:RULE_LAUNCH_CUSTOM"></a><b><code>RULE_LAUNCH_CUSTOM</code></b>: Specify a launcher for custom rules.<br />
    <p>See the global property of the same name for details.  This overrides the global and directory property for a target.</p>

  </li>
  <li>
    <a name="prop_tgt:RULE_LAUNCH_LINK"></a><b><code>RULE_LAUNCH_LINK</code></b>: Specify a launcher for link rules.<br />
    <p>See the global property of the same name for details.  This overrides the global and directory property for a target.</p>

  </li>
  <li>
    <a name="prop_tgt:RUNTIME_OUTPUT_DIRECTORY"></a><b><code>RUNTIME_OUTPUT_DIRECTORY</code></b>: Output directory in which to build RUNTIME target files.<br />
    <p>This property specifies the directory into which runtime target files should be built. Multi-configuration generators (VS, Xcode) append a per-configuration subdirectory to the specified directory.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.  This property is initialized by the value of the variable CMAKE_RUNTIME_OUTPUT_DIRECTORY if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:RUNTIME_OUTPUT_DIRECTORY_CONFIG"></a><b><code>RUNTIME_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</code></b>: Per-configuration output directory for RUNTIME target files.<br />
    <p>This is a per-configuration version of RUNTIME_OUTPUT_DIRECTORY, but multi-configuration generators (VS, Xcode) do NOT append a per-configuration subdirectory to the specified directory.  This property is initialized by the value of the variable CMAKE_RUNTIME_OUTPUT_DIRECTORY_&lt;CONFIG&gt; if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:RUNTIME_OUTPUT_NAME"></a><b><code>RUNTIME_OUTPUT_NAME</code></b>: Output name for RUNTIME target files.<br />
    <p>This property specifies the base name for runtime target files.  It overrides OUTPUT_NAME and OUTPUT_NAME_&lt;CONFIG&gt; properties.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.</p>

  </li>
  <li>
    <a name="prop_tgt:RUNTIME_OUTPUT_NAME_CONFIG"></a><b><code>RUNTIME_OUTPUT_NAME_&lt;CONFIG&gt;</code></b>: Per-configuration output name for RUNTIME target files.<br />
    <p>This is the configuration-specific version of RUNTIME_OUTPUT_NAME.</p>

  </li>
  <li>
    <a name="prop_tgt:SKIP_BUILD_RPATH"></a><b><code>SKIP_BUILD_RPATH</code></b>: Should rpaths be used for the build tree.<br />
    <p>SKIP_BUILD_RPATH is a boolean specifying whether to skip automatic generation of an rpath allowing the target to run from the build tree.  This property is initialized by the value of the variable CMAKE_SKIP_BUILD_RPATH if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:SOURCES"></a><b><code>SOURCES</code></b>: Source names specified for a target.<br />
    <p>Read-only list of sources specified for a target.  The names returned are suitable for passing to the set_source_files_properties command.</p>

  </li>
  <li>
    <a name="prop_tgt:SOVERSION"></a><b><code>SOVERSION</code></b>: What version number is this target.<br />
    <p>For shared libraries VERSION and SOVERSION can be used to specify the build version and API version respectively. When building or installing appropriate symlinks are created if the platform supports symlinks and the linker supports so-names. If only one of both is specified the missing is assumed to have the same version number. SOVERSION is ignored if NO_SONAME property is set. For shared libraries and executables on Windows the VERSION attribute is parsed to extract a "major.minor" version number. These numbers are used as the image version of the binary. </p>

  </li>
  <li>
    <a name="prop_tgt:STATIC_LIBRARY_FLAGS"></a><b><code>STATIC_LIBRARY_FLAGS</code></b>: Extra flags to use when linking static libraries.<br />
    <p>Extra flags to use when linking a static library.</p>

  </li>
  <li>
    <a name="prop_tgt:STATIC_LIBRARY_FLAGS_CONFIG"></a><b><code>STATIC_LIBRARY_FLAGS_&lt;CONFIG&gt;</code></b>: Per-configuration flags for creating a static library.<br />
    <p>This is the configuration-specific version of STATIC_LIBRARY_FLAGS.</p>

  </li>
  <li>
    <a name="prop_tgt:SUFFIX"></a><b><code>SUFFIX</code></b>: What comes after the target name.<br />
    <p>A target property that can be set to override the suffix (such as ".so" or ".exe") on the name of a library, module or executable.</p>

  </li>
  <li>
    <a name="prop_tgt:TYPE"></a><b><code>TYPE</code></b>: The type of the target.<br />
    <p>This read-only property can be used to test the type of the given target. It will be one of STATIC_LIBRARY, MODULE_LIBRARY, SHARED_LIBRARY, EXECUTABLE or one of the internal target types.</p>

  </li>
  <li>
    <a name="prop_tgt:VERSION"></a><b><code>VERSION</code></b>: What version number is this target.<br />
    <p>For shared libraries VERSION and SOVERSION can be used to specify the build version and API version respectively. When building or installing appropriate symlinks are created if the platform supports symlinks and the linker supports so-names. If only one of both is specified the missing is assumed to have the same version number. For executables VERSION can be used to specify the build version. When building or installing appropriate symlinks are created if the platform supports symlinks. For shared libraries and executables on Windows the VERSION attribute is parsed to extract a "major.minor" version number. These numbers are used as the image version of the binary. </p>

  </li>
  <li>
    <a name="prop_tgt:VISIBILITY_INLINES_HIDDEN"></a><b><code>VISIBILITY_INLINES_HIDDEN</code></b>: Whether to add a compile flag to hide symbols of inline functions<br />
    <p>The VISIBILITY_INLINES_HIDDEN property determines whether a flag for hiding symbols for inline functions. the value passed used in a visibility related compile option, such as -fvisibility=.  This property only has an affect for libraries and executables with exports.  This property is initialized by the value of the variable CMAKE_VISIBILITY_INLINES_HIDDEN if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:VS_DOTNET_REFERENCES"></a><b><code>VS_DOTNET_REFERENCES</code></b>: Visual Studio managed project .NET references<br />
    <p>Adds one or more semicolon-delimited .NET references to a generated Visual Studio project. For example, "System;System.Windows.Forms".</p>

  </li>
  <li>
    <a name="prop_tgt:VS_DOTNET_TARGET_FRAMEWORK_VERSION"></a><b><code>VS_DOTNET_TARGET_FRAMEWORK_VERSION</code></b>: Specify the .NET target framework version.<br />
    <p>Used to specify the .NET target framework version for C++/CLI. For example, "v4.5".</p>

  </li>
  <li>
    <a name="prop_tgt:VS_GLOBAL_variable"></a><b><code>VS_GLOBAL_&lt;variable&gt;</code></b>: Visual Studio project-specific global variable.<br />
    <p>Tell the Visual Studio generator to set the global variable '&lt;variable&gt;' to a given value in the generated Visual Studio project. Ignored on other generators. Qt integration works better if VS_GLOBAL_QtVersion is set to the version FindQt4.cmake found. For example, "4.7.3"</p>

  </li>
  <li>
    <a name="prop_tgt:VS_GLOBAL_KEYWORD"></a><b><code>VS_GLOBAL_KEYWORD</code></b>: Visual Studio project keyword.<br />
    <p>Sets the "keyword" attribute for a generated Visual Studio project. Defaults to "Win32Proj". You may wish to override this value with "ManagedCProj", for example, in a Visual Studio managed C++ unit test project.</p>

  </li>
  <li>
    <a name="prop_tgt:VS_GLOBAL_PROJECT_TYPES"></a><b><code>VS_GLOBAL_PROJECT_TYPES</code></b>: Visual Studio project type(s).<br />
    <p>Can be set to one or more UUIDs recognized by Visual Studio to indicate the type of project. This value is copied verbatim into the generated project file. Example for a managed C++ unit testing project:<br /></p>
<pre> {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}<br /></pre>
    <p>UUIDs are semicolon-delimited.</p>

  </li>
  <li>
    <a name="prop_tgt:VS_GLOBAL_ROOTNAMESPACE"></a><b><code>VS_GLOBAL_ROOTNAMESPACE</code></b>: Visual Studio project root namespace.<br />
    <p>Sets the "RootNamespace" attribute for a generated Visual Studio project.  The attribute will be generated only if this is set.</p>

  </li>
  <li>
    <a name="prop_tgt:VS_KEYWORD"></a><b><code>VS_KEYWORD</code></b>: Visual Studio project keyword.<br />
    <p>Can be set to change the visual studio keyword, for example Qt integration works better if this is set to Qt4VSv1.0. </p>

  </li>
  <li>
    <a name="prop_tgt:VS_SCC_AUXPATH"></a><b><code>VS_SCC_AUXPATH</code></b>: Visual Studio Source Code Control Aux Path.<br />
    <p>Can be set to change the visual studio source code control auxpath property.</p>

  </li>
  <li>
    <a name="prop_tgt:VS_SCC_LOCALPATH"></a><b><code>VS_SCC_LOCALPATH</code></b>: Visual Studio Source Code Control Local Path.<br />
    <p>Can be set to change the visual studio source code control local path property.</p>

  </li>
  <li>
    <a name="prop_tgt:VS_SCC_PROJECTNAME"></a><b><code>VS_SCC_PROJECTNAME</code></b>: Visual Studio Source Code Control Project.<br />
    <p>Can be set to change the visual studio source code control project name property.</p>

  </li>
  <li>
    <a name="prop_tgt:VS_SCC_PROVIDER"></a><b><code>VS_SCC_PROVIDER</code></b>: Visual Studio Source Code Control Provider.<br />
    <p>Can be set to change the visual studio source code control provider property.</p>

  </li>
  <li>
    <a name="prop_tgt:VS_WINRT_EXTENSIONS"></a><b><code>VS_WINRT_EXTENSIONS</code></b>: Visual Studio project C++/CX language extensions for Windows Runtime<br />
    <p>Can be set to enable C++/CX language extensions.</p>

  </li>
  <li>
    <a name="prop_tgt:VS_WINRT_REFERENCES"></a><b><code>VS_WINRT_REFERENCES</code></b>: Visual Studio project Windows Runtime Metadata references<br />
    <p>Adds one or more semicolon-delimited WinRT references to a generated Visual Studio project. For example, "Windows;Windows.UI.Core".</p>

  </li>
  <li>
    <a name="prop_tgt:WIN32_EXECUTABLE"></a><b><code>WIN32_EXECUTABLE</code></b>: Build an executable with a WinMain entry point on windows.<br />
    <p>When this property is set to true the executable when linked on Windows will be created with a WinMain() entry point instead of just main().  This makes it a GUI executable instead of a console application.  See the CMAKE_MFC_FLAG variable documentation to configure use of MFC for WinMain executables.  This property is initialized by the value of the variable CMAKE_WIN32_EXECUTABLE if it is set when a target is created.</p>

  </li>
  <li>
    <a name="prop_tgt:XCODE_ATTRIBUTE_an-attribute"></a><b><code>XCODE_ATTRIBUTE_&lt;an-attribute&gt;</code></b>: Set Xcode target attributes directly.<br />
    <p>Tell the Xcode generator to set '&lt;an-attribute&gt;' to a given value in the generated Xcode project.  Ignored on other generators.</p>

  </li>
</ul>
<h2><a name="section_PropertiesonTests"></a>Properties on Tests</h2>
<ul>
    <li><a href="#prop_test:ATTACHED_FILES"><b><code>ATTACHED_FILES</code></b></a></li>
    <li><a href="#prop_test:ATTACHED_FILES_ON_FAIL"><b><code>ATTACHED_FILES_ON_FAIL</code></b></a></li>
    <li><a href="#prop_test:COST"><b><code>COST</code></b></a></li>
    <li><a href="#prop_test:DEPENDS"><b><code>DEPENDS</code></b></a></li>
    <li><a href="#prop_test:ENVIRONMENT"><b><code>ENVIRONMENT</code></b></a></li>
    <li><a href="#prop_test:FAIL_REGULAR_EXPRESSION"><b><code>FAIL_REGULAR_EXPRESSION</code></b></a></li>
    <li><a href="#prop_test:LABELS"><b><code>LABELS</code></b></a></li>
    <li><a href="#prop_test:MEASUREMENT"><b><code>MEASUREMENT</code></b></a></li>
    <li><a href="#prop_test:PASS_REGULAR_EXPRESSION"><b><code>PASS_REGULAR_EXPRESSION</code></b></a></li>
    <li><a href="#prop_test:PROCESSORS"><b><code>PROCESSORS</code></b></a></li>
    <li><a href="#prop_test:REQUIRED_FILES"><b><code>REQUIRED_FILES</code></b></a></li>
    <li><a href="#prop_test:RESOURCE_LOCK"><b><code>RESOURCE_LOCK</code></b></a></li>
    <li><a href="#prop_test:RUN_SERIAL"><b><code>RUN_SERIAL</code></b></a></li>
    <li><a href="#prop_test:TIMEOUT"><b><code>TIMEOUT</code></b></a></li>
    <li><a href="#prop_test:WILL_FAIL"><b><code>WILL_FAIL</code></b></a></li>
    <li><a href="#prop_test:WORKING_DIRECTORY"><b><code>WORKING_DIRECTORY</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="prop_test:ATTACHED_FILES"></a><b><code>ATTACHED_FILES</code></b>: Attach a list of files to a dashboard submission.<br />
    <p>Set this property to a list of files that will be encoded and submitted to the dashboard as an addition to the test result.</p>

  </li>
  <li>
    <a name="prop_test:ATTACHED_FILES_ON_FAIL"></a><b><code>ATTACHED_FILES_ON_FAIL</code></b>: Attach a list of files to a dashboard submission if the test fails.<br />
    <p>Same as ATTACHED_FILES, but these files will only be included if the test does not pass.</p>

  </li>
  <li>
    <a name="prop_test:COST"></a><b><code>COST</code></b>: Set this to a floating point value. Tests in a test set will be run in descending order of cost.<br />
    <p>This property describes the cost of a test. You can explicitly set this value; tests with higher COST values will run first.</p>

  </li>
  <li>
    <a name="prop_test:DEPENDS"></a><b><code>DEPENDS</code></b>: Specifies that this test should only be run after the specified list of tests.<br />
    <p>Set this to a list of tests that must finish before this test is run.</p>

  </li>
  <li>
    <a name="prop_test:ENVIRONMENT"></a><b><code>ENVIRONMENT</code></b>: Specify environment variables that should be defined for running a test.<br />
    <p>If set to a list of environment variables and values of the form MYVAR=value those environment variables will be defined while running the test. The environment is restored to its previous state after the test is done.</p>

  </li>
  <li>
    <a name="prop_test:FAIL_REGULAR_EXPRESSION"></a><b><code>FAIL_REGULAR_EXPRESSION</code></b>: If the output matches this regular expression the test will fail.<br />
    <p>If set, if the output matches one of specified regular expressions, the test will fail.For example: FAIL_REGULAR_EXPRESSION "[^a-z]Error;ERROR;Failed"</p>

  </li>
  <li>
    <a name="prop_test:LABELS"></a><b><code>LABELS</code></b>: Specify a list of text labels associated with a test.<br />
    <p>The list is reported in dashboard submissions.</p>

  </li>
  <li>
    <a name="prop_test:MEASUREMENT"></a><b><code>MEASUREMENT</code></b>: Specify a CDASH measurement and value to be reported for a test.<br />
    <p>If set to a name then that name will be reported to CDASH as a named measurement with a value of 1. You may also specify a value by setting MEASUREMENT to "measurement=value".</p>

  </li>
  <li>
    <a name="prop_test:PASS_REGULAR_EXPRESSION"></a><b><code>PASS_REGULAR_EXPRESSION</code></b>: The output must match this regular expression for the test to pass.<br />
    <p>If set, the test output will be checked against the specified regular expressions and at least one of the regular expressions has to match, otherwise the test will fail.</p>

  </li>
  <li>
    <a name="prop_test:PROCESSORS"></a><b><code>PROCESSORS</code></b>: How many process slots this test requires<br />
    <p>Denotes the number of processors that this test will require. This is typically used for MPI tests, and should be used in conjunction with the ctest_test PARALLEL_LEVEL option.</p>

  </li>
  <li>
    <a name="prop_test:REQUIRED_FILES"></a><b><code>REQUIRED_FILES</code></b>: List of files required to run the test.<br />
    <p>If set to a list of files, the test will not be run unless all of the files exist.</p>

  </li>
  <li>
    <a name="prop_test:RESOURCE_LOCK"></a><b><code>RESOURCE_LOCK</code></b>: Specify a list of resources that are locked by this test.<br />
    <p>If multiple tests specify the same resource lock, they are guaranteed not to run concurrently.</p>

  </li>
  <li>
    <a name="prop_test:RUN_SERIAL"></a><b><code>RUN_SERIAL</code></b>: Do not run this test in parallel with any other test.<br />
    <p>Use this option in conjunction with the ctest_test PARALLEL_LEVEL option to specify that this test should not be run in parallel with any other tests.</p>

  </li>
  <li>
    <a name="prop_test:TIMEOUT"></a><b><code>TIMEOUT</code></b>: How many seconds to allow for this test.<br />
    <p>This property if set will limit a test to not take more than the specified number of seconds to run. If it exceeds that the test process will be killed and ctest will move to the next test. This setting takes precedence over CTEST_TESTING_TIMEOUT.</p>

  </li>
  <li>
    <a name="prop_test:WILL_FAIL"></a><b><code>WILL_FAIL</code></b>: If set to true, this will invert the pass/fail flag of the test.<br />
    <p>This property can be used for tests that are expected to fail and return a non zero return code.</p>

  </li>
  <li>
    <a name="prop_test:WORKING_DIRECTORY"></a><b><code>WORKING_DIRECTORY</code></b>: The directory from which the test executable will be called.<br />
    <p>If this is not set it is called from the directory the test executable is located in.</p>

  </li>
</ul>
<h2><a name="section_PropertiesonSourceFiles"></a>Properties on Source Files</h2>
<ul>
    <li><a href="#prop_sf:ABSTRACT"><b><code>ABSTRACT</code></b></a></li>
    <li><a href="#prop_sf:COMPILE_DEFINITIONS"><b><code>COMPILE_DEFINITIONS</code></b></a></li>
    <li><a href="#prop_sf:COMPILE_DEFINITIONS_CONFIG"><b><code>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#prop_sf:COMPILE_FLAGS"><b><code>COMPILE_FLAGS</code></b></a></li>
    <li><a href="#prop_sf:EXTERNAL_OBJECT"><b><code>EXTERNAL_OBJECT</code></b></a></li>
    <li><a href="#prop_sf:Fortran_FORMAT"><b><code>Fortran_FORMAT</code></b></a></li>
    <li><a href="#prop_sf:GENERATED"><b><code>GENERATED</code></b></a></li>
    <li><a href="#prop_sf:HEADER_FILE_ONLY"><b><code>HEADER_FILE_ONLY</code></b></a></li>
    <li><a href="#prop_sf:KEEP_EXTENSION"><b><code>KEEP_EXTENSION</code></b></a></li>
    <li><a href="#prop_sf:LABELS"><b><code>LABELS</code></b></a></li>
    <li><a href="#prop_sf:LANGUAGE"><b><code>LANGUAGE</code></b></a></li>
    <li><a href="#prop_sf:LOCATION"><b><code>LOCATION</code></b></a></li>
    <li><a href="#prop_sf:MACOSX_PACKAGE_LOCATION"><b><code>MACOSX_PACKAGE_LOCATION</code></b></a></li>
    <li><a href="#prop_sf:OBJECT_DEPENDS"><b><code>OBJECT_DEPENDS</code></b></a></li>
    <li><a href="#prop_sf:OBJECT_OUTPUTS"><b><code>OBJECT_OUTPUTS</code></b></a></li>
    <li><a href="#prop_sf:SYMBOLIC"><b><code>SYMBOLIC</code></b></a></li>
    <li><a href="#prop_sf:WRAP_EXCLUDE"><b><code>WRAP_EXCLUDE</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="prop_sf:ABSTRACT"></a><b><code>ABSTRACT</code></b>: Is this source file an abstract class.<br />
    <p>A property on a source file that indicates if the source file represents a class that is abstract. This only makes sense for languages that have a notion of an abstract class and it is only used by some tools that wrap classes into other languages.</p>

  </li>
  <li>
    <a name="prop_sf:COMPILE_DEFINITIONS"></a><b><code>COMPILE_DEFINITIONS</code></b>: Preprocessor definitions for compiling a source file.<br />
    <p>The COMPILE_DEFINITIONS property may be set to a semicolon-separated list of preprocessor definitions using the syntax VAR or VAR=value.  Function-style definitions are not supported.  CMake will automatically escape the value correctly for the native build system (note that CMake language syntax may require escapes to specify some values).  This property may be set on a per-configuration basis using the name COMPILE_DEFINITIONS_&lt;CONFIG&gt; where &lt;CONFIG&gt; is an upper-case name (ex. "COMPILE_DEFINITIONS_DEBUG").<br /></p>
<p>CMake will automatically drop some definitions that are not supported by the native build tool.  The VS6 IDE does not support definition values with spaces (but NMake does).  Xcode does not support per-configuration definitions on source files.<br /></p>
<p>Disclaimer: Most native build tools have poor support for escaping certain values.  CMake has work-arounds for many cases but some values may just not be possible to pass correctly.  If a value does not seem to be escaped correctly, do not attempt to work-around the problem by adding escape sequences to the value.  Your work-around may break in a future version of CMake that has improved escape support.  Instead consider defining the macro in a (configured) header file.  Then report the limitation.  Known limitations include:<br /></p>
<pre>  #          - broken almost everywhere<br />  ;          - broken in VS IDE 7.0 and Borland Makefiles<br />  ,          - broken in VS IDE<br />  %          - broken in some cases in NMake<br />  &amp; |        - broken in some cases on MinGW<br />  ^ &lt; &gt; \"   - broken in most Make tools on Windows<br /></pre>
    <p>CMake does not reject these values outright because they do work in some cases.  Use with caution.  </p>

  </li>
  <li>
    <a name="prop_sf:COMPILE_DEFINITIONS_CONFIG"></a><b><code>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</code></b>: Per-configuration preprocessor definitions on a source file.<br />
    <p>This is the configuration-specific version of COMPILE_DEFINITIONS.  Note that Xcode does not support per-configuration source file flags so this property will be ignored by the Xcode generator.</p>

  </li>
  <li>
    <a name="prop_sf:COMPILE_FLAGS"></a><b><code>COMPILE_FLAGS</code></b>: Additional flags to be added when compiling this source file.<br />
    <p>These flags will be added to the list of compile flags when this source file builds.  Use COMPILE_DEFINITIONS to pass additional preprocessor definitions.</p>

  </li>
  <li>
    <a name="prop_sf:EXTERNAL_OBJECT"></a><b><code>EXTERNAL_OBJECT</code></b>: If set to true then this is an object file.<br />
    <p>If this property is set to true then the source file is really an object file and should not be compiled.  It will still be linked into the target though.</p>

  </li>
  <li>
    <a name="prop_sf:Fortran_FORMAT"></a><b><code>Fortran_FORMAT</code></b>: Set to FIXED or FREE to indicate the Fortran source layout.<br />
    <p>This property tells CMake whether a given Fortran source file uses fixed-format or free-format.  CMake will pass the corresponding format flag to the compiler.  Consider using the target-wide Fortran_FORMAT property if all source files in a target share the same format.</p>

  </li>
  <li>
    <a name="prop_sf:GENERATED"></a><b><code>GENERATED</code></b>: Is this source file generated as part of the build process.<br />
    <p>If a source file is generated by the build process CMake will handle it differently in terms of dependency checking etc. Otherwise having a non-existent source file could create problems.</p>

  </li>
  <li>
    <a name="prop_sf:HEADER_FILE_ONLY"></a><b><code>HEADER_FILE_ONLY</code></b>: Is this source file only a header file.<br />
    <p>A property on a source file that indicates if the source file is a header file with no associated implementation. This is set automatically based on the file extension and is used by CMake to determine if certain dependency information should be computed.</p>

  </li>
  <li>
    <a name="prop_sf:KEEP_EXTENSION"></a><b><code>KEEP_EXTENSION</code></b>: Make the output file have the same extension as the source file.<br />
    <p>If this property is set then the file extension of the output file will be the same as that of the source file. Normally the output file extension is computed based on the language of the source file, for example .cxx will go to a .o extension.</p>

  </li>
  <li>
    <a name="prop_sf:LABELS"></a><b><code>LABELS</code></b>: Specify a list of text labels associated with a source file.<br />
    <p>This property has meaning only when the source file is listed in a target whose LABELS property is also set.  No other semantics are currently specified.</p>

  </li>
  <li>
    <a name="prop_sf:LANGUAGE"></a><b><code>LANGUAGE</code></b>: What programming language is the file.<br />
    <p>A property that can be set to indicate what programming language the source file is. If it is not set the language is determined based on the file extension. Typical values are CXX C etc. Setting this property for a file means this file will be compiled. Do not set this for headers or files that should not be compiled.</p>

  </li>
  <li>
    <a name="prop_sf:LOCATION"></a><b><code>LOCATION</code></b>: The full path to a source file.<br />
    <p>A read only property on a SOURCE FILE that contains the full path to the source file.</p>

  </li>
  <li>
    <a name="prop_sf:MACOSX_PACKAGE_LOCATION"></a><b><code>MACOSX_PACKAGE_LOCATION</code></b>: Place a source file inside a Mac OS X bundle, CFBundle, or framework.<br />
    <p>Executable targets with the MACOSX_BUNDLE property set are built as Mac OS X application bundles on Apple platforms.  Shared library targets with the FRAMEWORK property set are built as Mac OS X frameworks on Apple platforms.  Module library targets with the BUNDLE property set are built as Mac OS X CFBundle bundles on Apple platforms.  Source files listed in the target with this property set will be copied to a directory inside the bundle or framework content folder specified by the property value.  For bundles the content folder is "&lt;name&gt;.app/Contents".  For frameworks the content folder is "&lt;name&gt;.framework/Versions/&lt;version&gt;".  For cfbundles the content folder is "&lt;name&gt;.bundle/Contents" (unless the extension is changed).  See the PUBLIC_HEADER, PRIVATE_HEADER, and RESOURCE target properties for specifying files meant for Headers, PrivateHeaders, or Resources directories.</p>

  </li>
  <li>
    <a name="prop_sf:OBJECT_DEPENDS"></a><b><code>OBJECT_DEPENDS</code></b>: Additional files on which a compiled object file depends.<br />
    <p>Specifies a semicolon-separated list of full-paths to files on which any object files compiled from this source file depend.  An object file will be recompiled if any of the named files is newer than it.<br /></p>
<p>This property need not be used to specify the dependency of a source file on a generated header file that it includes.  Although the property was originally introduced for this purpose, it is no longer necessary.  If the generated header file is created by a custom command in the same target as the source file, the automatic dependency scanning process will recognize the dependency.  If the generated header file is created by another target, an inter-target dependency should be created with the add_dependencies command (if one does not already exist due to linking relationships).</p>

  </li>
  <li>
    <a name="prop_sf:OBJECT_OUTPUTS"></a><b><code>OBJECT_OUTPUTS</code></b>: Additional outputs for a Makefile rule.<br />
    <p>Additional outputs created by compilation of this source file. If any of these outputs is missing the object will be recompiled. This is supported only on Makefile generators and will be ignored on other generators.</p>

  </li>
  <li>
    <a name="prop_sf:SYMBOLIC"></a><b><code>SYMBOLIC</code></b>: Is this just a name for a rule.<br />
    <p>If SYMBOLIC (boolean) is set to true the build system will be informed that the source file is not actually created on disk but instead used as a symbolic name for a build rule.</p>

  </li>
  <li>
    <a name="prop_sf:WRAP_EXCLUDE"></a><b><code>WRAP_EXCLUDE</code></b>: Exclude this source file from any code wrapping techniques.<br />
    <p>Some packages can wrap source files into alternate languages to provide additional functionality. For example, C++ code can be wrapped into Java or Python etc using SWIG etc. If WRAP_EXCLUDE is set to true (1 etc) that indicates that this source file should not be wrapped.</p>

  </li>
</ul>
<h2><a name="section_PropertiesonCacheEntries"></a>Properties on Cache Entries</h2>
<ul>
    <li><a href="#property:ADVANCED"><b><code>ADVANCED</code></b></a></li>
    <li><a href="#property:HELPSTRING"><b><code>HELPSTRING</code></b></a></li>
    <li><a href="#property:MODIFIED"><b><code>MODIFIED</code></b></a></li>
    <li><a href="#property:STRINGS"><b><code>STRINGS</code></b></a></li>
    <li><a href="#property:TYPE"><b><code>TYPE</code></b></a></li>
    <li><a href="#property:VALUE"><b><code>VALUE</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="property:ADVANCED"></a><b><code>ADVANCED</code></b>: True if entry should be hidden by default in GUIs.<br />
    <p>This is a boolean value indicating whether the entry is considered interesting only for advanced configuration.  The mark_as_advanced() command modifies this property.</p>

  </li>
  <li>
    <a name="property:HELPSTRING"></a><b><code>HELPSTRING</code></b>: Help associated with entry in GUIs.<br />
    <p>This string summarizes the purpose of an entry to help users set it through a CMake GUI.</p>

  </li>
  <li>
    <a name="property:MODIFIED"></a><b><code>MODIFIED</code></b>: Internal management property.  Do not set or get.<br />
    <p>This is an internal cache entry property managed by CMake to track interactive user modification of entries.  Ignore it.</p>

  </li>
  <li>
    <a name="property:STRINGS"></a><b><code>STRINGS</code></b>: Enumerate possible STRING entry values for GUI selection.<br />
    <p>For cache entries with type STRING, this enumerates a set of values.  CMake GUIs may use this to provide a selection widget instead of a generic string entry field.  This is for convenience only.  CMake does not enforce that the value matches one of those listed.</p>

  </li>
  <li>
    <a name="property:TYPE"></a><b><code>TYPE</code></b>: Widget type for entry in GUIs.<br />
    <p>Cache entry values are always strings, but CMake GUIs present widgets to help users set values.  The GUIs use this property as a hint to determine the widget type.  Valid TYPE values are:<br /></p>
<pre>  BOOL          = Boolean ON/OFF value.<br />  PATH          = Path to a directory.<br />  FILEPATH      = Path to a file.<br />  STRING        = Generic string value.<br />  INTERNAL      = Do not present in GUI at all.<br />  STATIC        = Value managed by CMake, do not change.<br />  UNINITIALIZED = Type not yet specified.<br /></pre>
    <p>Generally the TYPE of a cache entry should be set by the command which creates it (set, option, find_library, etc.).</p>

  </li>
  <li>
    <a name="property:VALUE"></a><b><code>VALUE</code></b>: Value of a cache entry.<br />
    <p>This property maps to the actual value of a cache entry.  Setting this property always sets the value without checking, so use with care.</p>

  </li>
</ul>
<h2><a name="section_CompatibilityCommands"></a>Compatibility Commands</h2>
<ul>
    <li><a href="#command:build_name"><b><code>build_name</code></b></a></li>
    <li><a href="#command:exec_program"><b><code>exec_program</code></b></a></li>
    <li><a href="#command:export_library_dependencies"><b><code>export_library_dependencies</code></b></a></li>
    <li><a href="#command:install_files"><b><code>install_files</code></b></a></li>
    <li><a href="#command:install_programs"><b><code>install_programs</code></b></a></li>
    <li><a href="#command:install_targets"><b><code>install_targets</code></b></a></li>
    <li><a href="#command:link_libraries"><b><code>link_libraries</code></b></a></li>
    <li><a href="#command:make_directory"><b><code>make_directory</code></b></a></li>
    <li><a href="#command:output_required_files"><b><code>output_required_files</code></b></a></li>
    <li><a href="#command:remove"><b><code>remove</code></b></a></li>
    <li><a href="#command:subdir_depends"><b><code>subdir_depends</code></b></a></li>
    <li><a href="#command:subdirs"><b><code>subdirs</code></b></a></li>
    <li><a href="#command:use_mangled_mesa"><b><code>use_mangled_mesa</code></b></a></li>
    <li><a href="#command:utility_source"><b><code>utility_source</code></b></a></li>
    <li><a href="#command:variable_requires"><b><code>variable_requires</code></b></a></li>
    <li><a href="#command:write_file"><b><code>write_file</code></b></a></li>
</ul>
<pre>  CMake Compatibility Listfile Commands - Obsolete commands supported by CMake for compatibility.</pre>
    
<p>This is the documentation for now obsolete listfile commands from previous CMake versions, which are still supported for compatibility reasons. You should instead use the newer, faster and shinier new commands. ;-)</p>

<ul>
  <li>
    <a name="command:build_name"></a><b><code>build_name</code></b>: Deprecated.  Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead.<br />
    <pre>  build_name(variable)<br /></pre>
    <p>Sets the specified variable to a string representing the platform and compiler settings.  These values are now available through the CMAKE_SYSTEM and CMAKE_CXX_COMPILER variables.</p>

  </li>
  <li>
    <a name="command:exec_program"></a><b><code>exec_program</code></b>: Deprecated.  Use the execute_process() command instead.<br />
    <p>Run an executable program during the processing of the CMakeList.txt file.<br /></p>
<pre>  exec_program(Executable [directory in which to run]<br />               [ARGS &lt;arguments to executable&gt;]<br />               [OUTPUT_VARIABLE &lt;var&gt;]<br />               [RETURN_VALUE &lt;var&gt;])<br /></pre>
    <p>The executable is run in the optionally specified directory.  The executable can include arguments if it is double quoted, but it is better to use the optional ARGS argument to specify arguments to the program.   This is because cmake will then be able to escape spaces in the executable path.  An optional argument OUTPUT_VARIABLE specifies a variable in which to store the output. To capture the return value of the execution, provide a RETURN_VALUE. If OUTPUT_VARIABLE is specified, then no output will go to the stdout/stderr of the console running cmake.<br /></p>

  </li>
  <li>
    <a name="command:export_library_dependencies"></a><b><code>export_library_dependencies</code></b>: Deprecated.  Use INSTALL(EXPORT) or EXPORT command.<br />
    <p>This command generates an old-style library dependencies file.  Projects requiring CMake 2.6 or later should not use the command.  Use instead the install(EXPORT) command to help export targets from an installation tree and the export() command to export targets from a build tree.<br /></p>
<p>The old-style library dependencies file does not take into account per-configuration names of libraries or the LINK_INTERFACE_LIBRARIES target property.<br /></p>
<pre>  export_library_dependencies(&lt;file&gt; [APPEND])<br /></pre>
    <p>Create a file named &lt;file&gt; that can be included into a CMake listfile with the INCLUDE command.  The file will contain a number of SET commands that will set all the variables needed for library dependency information.  This should be the last command in the top level CMakeLists.txt file of the project.  If the APPEND option is specified, the SET commands will be appended to the given file instead of replacing it.</p>

  </li>
  <li>
    <a name="command:install_files"></a><b><code>install_files</code></b>: Deprecated.  Use the install(FILES ) command instead.<br />
    <p>This command has been superceded by the install command.  It is provided for compatibility with older CMake code.  The FILES form is directly replaced by the FILES form of the install command.  The regexp form can be expressed more clearly using the GLOB form of the file command.<br /></p>
<pre>  install_files(&lt;dir&gt; extension file file ...)<br /></pre>
    <p>Create rules to install the listed files with the given extension into the given directory.  Only files existing in the current source tree or its corresponding location in the binary tree may be listed.  If a file specified already has an extension, that extension will be removed first.  This is useful for providing lists of source files such as foo.cxx when you want the corresponding foo.h to be installed. A typical extension is '.h'.<br /></p>
<pre>  install_files(&lt;dir&gt; regexp)<br /></pre>
    <p>Any files in the current source directory that match the regular expression will be installed.<br /></p>
<pre>  install_files(&lt;dir&gt; FILES file file ...)<br /></pre>
    <p>Any files listed after the FILES keyword will be installed explicitly from the names given.  Full paths are allowed in this form.<br /></p>
<p>The directory &lt;dir&gt; is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX.</p>

  </li>
  <li>
    <a name="command:install_programs"></a><b><code>install_programs</code></b>: Deprecated. Use the install(PROGRAMS ) command instead.<br />
    <p>This command has been superceded by the install command.  It is provided for compatibility with older CMake code.  The FILES form is directly replaced by the PROGRAMS form of the INSTALL command.  The regexp form can be expressed more clearly using the GLOB form of the FILE command.<br /></p>
<pre>  install_programs(&lt;dir&gt; file1 file2 [file3 ...])<br />  install_programs(&lt;dir&gt; FILES file1 [file2 ...])<br /></pre>
    <p>Create rules to install the listed programs into the given directory. Use the FILES argument to guarantee that the file list version of the command will be used even when there is only one argument.<br /></p>
<pre>  install_programs(&lt;dir&gt; regexp)<br /></pre>
    <p>In the second form any program in the current source directory that matches the regular expression will be installed.<br /></p>
<p>This command is intended to install programs that are not built by cmake, such as shell scripts.  See the TARGETS form of the INSTALL command to create installation rules for targets built by cmake.<br /></p>
<p>The directory &lt;dir&gt; is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX.</p>

  </li>
  <li>
    <a name="command:install_targets"></a><b><code>install_targets</code></b>: Deprecated. Use the install(TARGETS )  command instead.<br />
    <p>This command has been superceded by the install command.  It is provided for compatibility with older CMake code.<br /></p>
<pre>  install_targets(&lt;dir&gt; [RUNTIME_DIRECTORY dir] target target)<br /></pre>
    <p>Create rules to install the listed targets into the given directory.  The directory &lt;dir&gt; is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX. If RUNTIME_DIRECTORY is specified, then on systems with special runtime files (Windows DLL), the files will be copied to that directory.</p>

  </li>
  <li>
    <a name="command:link_libraries"></a><b><code>link_libraries</code></b>: Deprecated. Use the target_link_libraries() command instead.<br />
    <p>Link libraries to all targets added later.<br /></p>
<pre>  link_libraries(library1 &lt;debug | optimized&gt; library2 ...)<br /></pre>
    <p>Specify a list of libraries to be linked into any following targets (typically added with the add_executable or add_library calls).  This command is passed down to all subdirectories.  The debug and optimized strings may be used to indicate that the next library listed is to be used only for that specific type of build.</p>

  </li>
  <li>
    <a name="command:make_directory"></a><b><code>make_directory</code></b>: Deprecated. Use the file(MAKE_DIRECTORY ) command instead.<br />
    <pre>  make_directory(directory)<br /></pre>
    <p>Creates the specified directory.  Full paths should be given.  Any parent directories that do not exist will also be created.  Use with care.</p>

  </li>
  <li>
    <a name="command:output_required_files"></a><b><code>output_required_files</code></b>: Deprecated.  Approximate C preprocessor dependency scanning.<br />
    <p>This command exists only because ancient CMake versions provided it.  CMake handles preprocessor dependency scanning automatically using a more advanced scanner.<br /></p>
<pre>  output_required_files(srcfile outputfile)<br /></pre>
    <p>Outputs a list of all the source files that are required by the specified srcfile. This list is written into outputfile. This is similar to writing out the dependencies for srcfile except that it jumps from .h files into .cxx, .c and .cpp files if possible.</p>

  </li>
  <li>
    <a name="command:remove"></a><b><code>remove</code></b>: Deprecated. Use the list(REMOVE_ITEM ) command instead.<br />
    <pre>  remove(VAR VALUE VALUE ...)<br /></pre>
    <p>Removes VALUE from the variable VAR.  This is typically used to remove entries from a vector (e.g. semicolon separated list).  VALUE is expanded.</p>

  </li>
  <li>
    <a name="command:subdir_depends"></a><b><code>subdir_depends</code></b>: Deprecated.  Does nothing.<br />
    <pre>  subdir_depends(subdir dep1 dep2 ...)<br /></pre>
    <p>Does not do anything.  This command used to help projects order parallel builds correctly.  This functionality is now automatic.</p>

  </li>
  <li>
    <a name="command:subdirs"></a><b><code>subdirs</code></b>: Deprecated. Use the add_subdirectory() command instead.<br />
    <p>Add a list of subdirectories to the build.<br /></p>
<pre>  subdirs(dir1 dir2 ...[EXCLUDE_FROM_ALL exclude_dir1 exclude_dir2 ...]<br />          [PREORDER] )<br /></pre>
    <p>Add a list of subdirectories to the build. The add_subdirectory command should be used instead of subdirs although subdirs will still work. This will cause any CMakeLists.txt files in the sub directories to be processed by CMake.  Any directories after the PREORDER flag are traversed first by makefile builds, the PREORDER flag has no effect on IDE projects.  Any directories after the EXCLUDE_FROM_ALL marker will not be included in the top level makefile or project file. This is useful for having CMake create makefiles or projects for a set of examples in a project. You would want CMake to generate makefiles or project files for all the examples at the same time, but you would not want them to show up in the top level project or be built each time make is run from the top.</p>

  </li>
  <li>
    <a name="command:use_mangled_mesa"></a><b><code>use_mangled_mesa</code></b>: Copy mesa headers for use in combination with system GL.<br />
    <pre>  use_mangled_mesa(PATH_TO_MESA OUTPUT_DIRECTORY)<br /></pre>
    <p>The path to mesa includes, should contain gl_mangle.h.  The mesa headers are copied to the specified output directory.  This allows mangled mesa headers to override other GL headers by being added to the include directory path earlier.</p>

  </li>
  <li>
    <a name="command:utility_source"></a><b><code>utility_source</code></b>: Specify the source tree of a third-party utility.<br />
    <pre>  utility_source(cache_entry executable_name<br />                 path_to_source [file1 file2 ...])<br /></pre>
    <p>When a third-party utility's source is included in the distribution, this command specifies its location and name.  The cache entry will not be set unless the path_to_source and all listed files exist.  It is assumed that the source tree of the utility will have been built before it is needed.<br /></p>
<p>When cross compiling CMake will print a warning if a utility_source() command is executed, because in many cases it is used to build an executable which is executed later on. This doesn't work when cross compiling, since the executable can run only on their target platform. So in this case the cache entry has to be adjusted manually so it points to an executable which is runnable on the build host.</p>

  </li>
  <li>
    <a name="command:variable_requires"></a><b><code>variable_requires</code></b>: Deprecated. Use the if() command instead.<br />
    <p>Assert satisfaction of an option's required variables.<br /></p>
<pre>  variable_requires(TEST_VARIABLE RESULT_VARIABLE<br />                    REQUIRED_VARIABLE1<br />                    REQUIRED_VARIABLE2 ...)<br /></pre>
    <p>The first argument (TEST_VARIABLE) is the name of the variable to be tested, if that variable is false nothing else is done. If TEST_VARIABLE is true, then the next argument (RESULT_VARIABLE) is a variable that is set to true if all the required variables are set. The rest of the arguments are variables that must be true or not set to NOTFOUND to avoid an error.  If any are not true, an error is reported.</p>

  </li>
  <li>
    <a name="command:write_file"></a><b><code>write_file</code></b>: Deprecated. Use the file(WRITE ) command instead.<br />
    <pre>  write_file(filename "message to write"... [APPEND])<br /></pre>
    <p>The first argument is the file name, the rest of the arguments are messages to write. If the argument APPEND is specified, then the message will be appended.<br /></p>
<p>NOTE 1: file(WRITE ... and file(APPEND ... do exactly the same as this one but add some more functionality.<br /></p>
<p>NOTE 2: When using write_file the produced file cannot be used as an input to CMake (CONFIGURE_FILE, source file ...) because it will lead to an infinite loop. Use configure_file if you want to generate input files to CMake.</p>

  </li>
</ul>
<h2><a name="section_StandardCMakeModules"></a>Standard CMake Modules</h2>
<ul>
    <li><a href="#module:AddFileDependencies"><b><code>AddFileDependencies</code></b></a></li>
    <li><a href="#module:BundleUtilities"><b><code>BundleUtilities</code></b></a></li>
    <li><a href="#module:CMakeAddFortranSubdirectory"><b><code>CMakeAddFortranSubdirectory</code></b></a></li>
    <li><a href="#module:CMakeBackwardCompatibilityCXX"><b><code>CMakeBackwardCompatibilityCXX</code></b></a></li>
    <li><a href="#module:CMakeDependentOption"><b><code>CMakeDependentOption</code></b></a></li>
    <li><a href="#module:CMakeDetermineVSServicePack"><b><code>CMakeDetermineVSServicePack</code></b></a></li>
    <li><a href="#module:CMakeExpandImportedTargets"><b><code>CMakeExpandImportedTargets</code></b></a></li>
    <li><a href="#module:CMakeFindFrameworks"><b><code>CMakeFindFrameworks</code></b></a></li>
    <li><a href="#module:CMakeFindPackageMode"><b><code>CMakeFindPackageMode</code></b></a></li>
    <li><a href="#module:CMakeForceCompiler"><b><code>CMakeForceCompiler</code></b></a></li>
    <li><a href="#module:CMakeGraphVizOptions"><b><code>CMakeGraphVizOptions</code></b></a></li>
    <li><a href="#module:CMakePackageConfigHelpers"><b><code>CMakePackageConfigHelpers</code></b></a></li>
    <li><a href="#module:CMakeParseArguments"><b><code>CMakeParseArguments</code></b></a></li>
    <li><a href="#module:CMakePrintHelpers"><b><code>CMakePrintHelpers</code></b></a></li>
    <li><a href="#module:CMakePrintSystemInformation"><b><code>CMakePrintSystemInformation</code></b></a></li>
    <li><a href="#module:CMakePushCheckState"><b><code>CMakePushCheckState</code></b></a></li>
    <li><a href="#module:CMakeVerifyManifest"><b><code>CMakeVerifyManifest</code></b></a></li>
    <li><a href="#module:CPack"><b><code>CPack</code></b></a></li>
    <li><a href="#module:CPackBundle"><b><code>CPackBundle</code></b></a></li>
    <li><a href="#module:CPackComponent"><b><code>CPackComponent</code></b></a></li>
    <li><a href="#module:CPackCygwin"><b><code>CPackCygwin</code></b></a></li>
    <li><a href="#module:CPackDMG"><b><code>CPackDMG</code></b></a></li>
    <li><a href="#module:CPackDeb"><b><code>CPackDeb</code></b></a></li>
    <li><a href="#module:CPackNSIS"><b><code>CPackNSIS</code></b></a></li>
    <li><a href="#module:CPackPackageMaker"><b><code>CPackPackageMaker</code></b></a></li>
    <li><a href="#module:CPackRPM"><b><code>CPackRPM</code></b></a></li>
    <li><a href="#module:CPackWIX"><b><code>CPackWIX</code></b></a></li>
    <li><a href="#module:CTest"><b><code>CTest</code></b></a></li>
    <li><a href="#module:CTestScriptMode"><b><code>CTestScriptMode</code></b></a></li>
    <li><a href="#module:CTestUseLaunchers"><b><code>CTestUseLaunchers</code></b></a></li>
    <li><a href="#module:CheckCCompilerFlag"><b><code>CheckCCompilerFlag</code></b></a></li>
    <li><a href="#module:CheckCSourceCompiles"><b><code>CheckCSourceCompiles</code></b></a></li>
    <li><a href="#module:CheckCSourceRuns"><b><code>CheckCSourceRuns</code></b></a></li>
    <li><a href="#module:CheckCXXCompilerFlag"><b><code>CheckCXXCompilerFlag</code></b></a></li>
    <li><a href="#module:CheckCXXSourceCompiles"><b><code>CheckCXXSourceCompiles</code></b></a></li>
    <li><a href="#module:CheckCXXSourceRuns"><b><code>CheckCXXSourceRuns</code></b></a></li>
    <li><a href="#module:CheckCXXSymbolExists"><b><code>CheckCXXSymbolExists</code></b></a></li>
    <li><a href="#module:CheckFortranFunctionExists"><b><code>CheckFortranFunctionExists</code></b></a></li>
    <li><a href="#module:CheckFunctionExists"><b><code>CheckFunctionExists</code></b></a></li>
    <li><a href="#module:CheckIncludeFile"><b><code>CheckIncludeFile</code></b></a></li>
    <li><a href="#module:CheckIncludeFileCXX"><b><code>CheckIncludeFileCXX</code></b></a></li>
    <li><a href="#module:CheckIncludeFiles"><b><code>CheckIncludeFiles</code></b></a></li>
    <li><a href="#module:CheckLanguage"><b><code>CheckLanguage</code></b></a></li>
    <li><a href="#module:CheckLibraryExists"><b><code>CheckLibraryExists</code></b></a></li>
    <li><a href="#module:CheckPrototypeDefinition"><b><code>CheckPrototypeDefinition</code></b></a></li>
    <li><a href="#module:CheckStructHasMember"><b><code>CheckStructHasMember</code></b></a></li>
    <li><a href="#module:CheckSymbolExists"><b><code>CheckSymbolExists</code></b></a></li>
    <li><a href="#module:CheckTypeSize"><b><code>CheckTypeSize</code></b></a></li>
    <li><a href="#module:CheckVariableExists"><b><code>CheckVariableExists</code></b></a></li>
    <li><a href="#module:Dart"><b><code>Dart</code></b></a></li>
    <li><a href="#module:DeployQt4"><b><code>DeployQt4</code></b></a></li>
    <li><a href="#module:Documentation"><b><code>Documentation</code></b></a></li>
    <li><a href="#module:ExternalData"><b><code>ExternalData</code></b></a></li>
    <li><a href="#module:ExternalProject"><b><code>ExternalProject</code></b></a></li>
    <li><a href="#module:FeatureSummary"><b><code>FeatureSummary</code></b></a></li>
    <li><a href="#module:FindALSA"><b><code>FindALSA</code></b></a></li>
    <li><a href="#module:FindASPELL"><b><code>FindASPELL</code></b></a></li>
    <li><a href="#module:FindAVIFile"><b><code>FindAVIFile</code></b></a></li>
    <li><a href="#module:FindArmadillo"><b><code>FindArmadillo</code></b></a></li>
    <li><a href="#module:FindBISON"><b><code>FindBISON</code></b></a></li>
    <li><a href="#module:FindBLAS"><b><code>FindBLAS</code></b></a></li>
    <li><a href="#module:FindBZip2"><b><code>FindBZip2</code></b></a></li>
    <li><a href="#module:FindBoost"><b><code>FindBoost</code></b></a></li>
    <li><a href="#module:FindBullet"><b><code>FindBullet</code></b></a></li>
    <li><a href="#module:FindCABLE"><b><code>FindCABLE</code></b></a></li>
    <li><a href="#module:FindCUDA"><b><code>FindCUDA</code></b></a></li>
    <li><a href="#module:FindCURL"><b><code>FindCURL</code></b></a></li>
    <li><a href="#module:FindCVS"><b><code>FindCVS</code></b></a></li>
    <li><a href="#module:FindCoin3D"><b><code>FindCoin3D</code></b></a></li>
    <li><a href="#module:FindCups"><b><code>FindCups</code></b></a></li>
    <li><a href="#module:FindCurses"><b><code>FindCurses</code></b></a></li>
    <li><a href="#module:FindCxxTest"><b><code>FindCxxTest</code></b></a></li>
    <li><a href="#module:FindCygwin"><b><code>FindCygwin</code></b></a></li>
    <li><a href="#module:FindDCMTK"><b><code>FindDCMTK</code></b></a></li>
    <li><a href="#module:FindDart"><b><code>FindDart</code></b></a></li>
    <li><a href="#module:FindDevIL"><b><code>FindDevIL</code></b></a></li>
    <li><a href="#module:FindDoxygen"><b><code>FindDoxygen</code></b></a></li>
    <li><a href="#module:FindEXPAT"><b><code>FindEXPAT</code></b></a></li>
    <li><a href="#module:FindFLEX"><b><code>FindFLEX</code></b></a></li>
    <li><a href="#module:FindFLTK"><b><code>FindFLTK</code></b></a></li>
    <li><a href="#module:FindFLTK2"><b><code>FindFLTK2</code></b></a></li>
    <li><a href="#module:FindFreetype"><b><code>FindFreetype</code></b></a></li>
    <li><a href="#module:FindGCCXML"><b><code>FindGCCXML</code></b></a></li>
    <li><a href="#module:FindGDAL"><b><code>FindGDAL</code></b></a></li>
    <li><a href="#module:FindGIF"><b><code>FindGIF</code></b></a></li>
    <li><a href="#module:FindGLEW"><b><code>FindGLEW</code></b></a></li>
    <li><a href="#module:FindGLUT"><b><code>FindGLUT</code></b></a></li>
    <li><a href="#module:FindGTK"><b><code>FindGTK</code></b></a></li>
    <li><a href="#module:FindGTK2"><b><code>FindGTK2</code></b></a></li>
    <li><a href="#module:FindGTest"><b><code>FindGTest</code></b></a></li>
    <li><a href="#module:FindGettext"><b><code>FindGettext</code></b></a></li>
    <li><a href="#module:FindGit"><b><code>FindGit</code></b></a></li>
    <li><a href="#module:FindGnuTLS"><b><code>FindGnuTLS</code></b></a></li>
    <li><a href="#module:FindGnuplot"><b><code>FindGnuplot</code></b></a></li>
    <li><a href="#module:FindHDF5"><b><code>FindHDF5</code></b></a></li>
    <li><a href="#module:FindHSPELL"><b><code>FindHSPELL</code></b></a></li>
    <li><a href="#module:FindHTMLHelp"><b><code>FindHTMLHelp</code></b></a></li>
    <li><a href="#module:FindHg"><b><code>FindHg</code></b></a></li>
    <li><a href="#module:FindITK"><b><code>FindITK</code></b></a></li>
    <li><a href="#module:FindIcotool"><b><code>FindIcotool</code></b></a></li>
    <li><a href="#module:FindImageMagick"><b><code>FindImageMagick</code></b></a></li>
    <li><a href="#module:FindJNI"><b><code>FindJNI</code></b></a></li>
    <li><a href="#module:FindJPEG"><b><code>FindJPEG</code></b></a></li>
    <li><a href="#module:FindJasper"><b><code>FindJasper</code></b></a></li>
    <li><a href="#module:FindJava"><b><code>FindJava</code></b></a></li>
    <li><a href="#module:FindKDE3"><b><code>FindKDE3</code></b></a></li>
    <li><a href="#module:FindKDE4"><b><code>FindKDE4</code></b></a></li>
    <li><a href="#module:FindLAPACK"><b><code>FindLAPACK</code></b></a></li>
    <li><a href="#module:FindLATEX"><b><code>FindLATEX</code></b></a></li>
    <li><a href="#module:FindLibArchive"><b><code>FindLibArchive</code></b></a></li>
    <li><a href="#module:FindLibLZMA"><b><code>FindLibLZMA</code></b></a></li>
    <li><a href="#module:FindLibXml2"><b><code>FindLibXml2</code></b></a></li>
    <li><a href="#module:FindLibXslt"><b><code>FindLibXslt</code></b></a></li>
    <li><a href="#module:FindLua50"><b><code>FindLua50</code></b></a></li>
    <li><a href="#module:FindLua51"><b><code>FindLua51</code></b></a></li>
    <li><a href="#module:FindMFC"><b><code>FindMFC</code></b></a></li>
    <li><a href="#module:FindMPEG"><b><code>FindMPEG</code></b></a></li>
    <li><a href="#module:FindMPEG2"><b><code>FindMPEG2</code></b></a></li>
    <li><a href="#module:FindMPI"><b><code>FindMPI</code></b></a></li>
    <li><a href="#module:FindMatlab"><b><code>FindMatlab</code></b></a></li>
    <li><a href="#module:FindMotif"><b><code>FindMotif</code></b></a></li>
    <li><a href="#module:FindOpenAL"><b><code>FindOpenAL</code></b></a></li>
    <li><a href="#module:FindOpenGL"><b><code>FindOpenGL</code></b></a></li>
    <li><a href="#module:FindOpenMP"><b><code>FindOpenMP</code></b></a></li>
    <li><a href="#module:FindOpenSSL"><b><code>FindOpenSSL</code></b></a></li>
    <li><a href="#module:FindOpenSceneGraph"><b><code>FindOpenSceneGraph</code></b></a></li>
    <li><a href="#module:FindOpenThreads"><b><code>FindOpenThreads</code></b></a></li>
    <li><a href="#module:FindPHP4"><b><code>FindPHP4</code></b></a></li>
    <li><a href="#module:FindPNG"><b><code>FindPNG</code></b></a></li>
    <li><a href="#module:FindPackageHandleStandardArgs"><b><code>FindPackageHandleStandardArgs</code></b></a></li>
    <li><a href="#module:FindPackageMessage"><b><code>FindPackageMessage</code></b></a></li>
    <li><a href="#module:FindPerl"><b><code>FindPerl</code></b></a></li>
    <li><a href="#module:FindPerlLibs"><b><code>FindPerlLibs</code></b></a></li>
    <li><a href="#module:FindPhysFS"><b><code>FindPhysFS</code></b></a></li>
    <li><a href="#module:FindPike"><b><code>FindPike</code></b></a></li>
    <li><a href="#module:FindPkgConfig"><b><code>FindPkgConfig</code></b></a></li>
    <li><a href="#module:FindPostgreSQL"><b><code>FindPostgreSQL</code></b></a></li>
    <li><a href="#module:FindProducer"><b><code>FindProducer</code></b></a></li>
    <li><a href="#module:FindProtobuf"><b><code>FindProtobuf</code></b></a></li>
    <li><a href="#module:FindPythonInterp"><b><code>FindPythonInterp</code></b></a></li>
    <li><a href="#module:FindPythonLibs"><b><code>FindPythonLibs</code></b></a></li>
    <li><a href="#module:FindQt"><b><code>FindQt</code></b></a></li>
    <li><a href="#module:FindQt3"><b><code>FindQt3</code></b></a></li>
    <li><a href="#module:FindQt4"><b><code>FindQt4</code></b></a></li>
    <li><a href="#module:FindQuickTime"><b><code>FindQuickTime</code></b></a></li>
    <li><a href="#module:FindRTI"><b><code>FindRTI</code></b></a></li>
    <li><a href="#module:FindRuby"><b><code>FindRuby</code></b></a></li>
    <li><a href="#module:FindSDL"><b><code>FindSDL</code></b></a></li>
    <li><a href="#module:FindSDL_image"><b><code>FindSDL_image</code></b></a></li>
    <li><a href="#module:FindSDL_mixer"><b><code>FindSDL_mixer</code></b></a></li>
    <li><a href="#module:FindSDL_net"><b><code>FindSDL_net</code></b></a></li>
    <li><a href="#module:FindSDL_sound"><b><code>FindSDL_sound</code></b></a></li>
    <li><a href="#module:FindSDL_ttf"><b><code>FindSDL_ttf</code></b></a></li>
    <li><a href="#module:FindSWIG"><b><code>FindSWIG</code></b></a></li>
    <li><a href="#module:FindSelfPackers"><b><code>FindSelfPackers</code></b></a></li>
    <li><a href="#module:FindSquish"><b><code>FindSquish</code></b></a></li>
    <li><a href="#module:FindSubversion"><b><code>FindSubversion</code></b></a></li>
    <li><a href="#module:FindTCL"><b><code>FindTCL</code></b></a></li>
    <li><a href="#module:FindTIFF"><b><code>FindTIFF</code></b></a></li>
    <li><a href="#module:FindTclStub"><b><code>FindTclStub</code></b></a></li>
    <li><a href="#module:FindTclsh"><b><code>FindTclsh</code></b></a></li>
    <li><a href="#module:FindThreads"><b><code>FindThreads</code></b></a></li>
    <li><a href="#module:FindUnixCommands"><b><code>FindUnixCommands</code></b></a></li>
    <li><a href="#module:FindVTK"><b><code>FindVTK</code></b></a></li>
    <li><a href="#module:FindWget"><b><code>FindWget</code></b></a></li>
    <li><a href="#module:FindWish"><b><code>FindWish</code></b></a></li>
    <li><a href="#module:FindX11"><b><code>FindX11</code></b></a></li>
    <li><a href="#module:FindXMLRPC"><b><code>FindXMLRPC</code></b></a></li>
    <li><a href="#module:FindZLIB"><b><code>FindZLIB</code></b></a></li>
    <li><a href="#module:Findosg"><b><code>Findosg</code></b></a></li>
    <li><a href="#module:FindosgAnimation"><b><code>FindosgAnimation</code></b></a></li>
    <li><a href="#module:FindosgDB"><b><code>FindosgDB</code></b></a></li>
    <li><a href="#module:FindosgFX"><b><code>FindosgFX</code></b></a></li>
    <li><a href="#module:FindosgGA"><b><code>FindosgGA</code></b></a></li>
    <li><a href="#module:FindosgIntrospection"><b><code>FindosgIntrospection</code></b></a></li>
    <li><a href="#module:FindosgManipulator"><b><code>FindosgManipulator</code></b></a></li>
    <li><a href="#module:FindosgParticle"><b><code>FindosgParticle</code></b></a></li>
    <li><a href="#module:FindosgPresentation"><b><code>FindosgPresentation</code></b></a></li>
    <li><a href="#module:FindosgProducer"><b><code>FindosgProducer</code></b></a></li>
    <li><a href="#module:FindosgQt"><b><code>FindosgQt</code></b></a></li>
    <li><a href="#module:FindosgShadow"><b><code>FindosgShadow</code></b></a></li>
    <li><a href="#module:FindosgSim"><b><code>FindosgSim</code></b></a></li>
    <li><a href="#module:FindosgTerrain"><b><code>FindosgTerrain</code></b></a></li>
    <li><a href="#module:FindosgText"><b><code>FindosgText</code></b></a></li>
    <li><a href="#module:FindosgUtil"><b><code>FindosgUtil</code></b></a></li>
    <li><a href="#module:FindosgViewer"><b><code>FindosgViewer</code></b></a></li>
    <li><a href="#module:FindosgVolume"><b><code>FindosgVolume</code></b></a></li>
    <li><a href="#module:FindosgWidget"><b><code>FindosgWidget</code></b></a></li>
    <li><a href="#module:Findosg_functions"><b><code>Findosg_functions</code></b></a></li>
    <li><a href="#module:FindwxWidgets"><b><code>FindwxWidgets</code></b></a></li>
    <li><a href="#module:FindwxWindows"><b><code>FindwxWindows</code></b></a></li>
    <li><a href="#module:FortranCInterface"><b><code>FortranCInterface</code></b></a></li>
    <li><a href="#module:GNUInstallDirs"><b><code>GNUInstallDirs</code></b></a></li>
    <li><a href="#module:GenerateExportHeader"><b><code>GenerateExportHeader</code></b></a></li>
    <li><a href="#module:GetPrerequisites"><b><code>GetPrerequisites</code></b></a></li>
    <li><a href="#module:InstallRequiredSystemLibraries"><b><code>InstallRequiredSystemLibraries</code></b></a></li>
    <li><a href="#module:MacroAddFileDependencies"><b><code>MacroAddFileDependencies</code></b></a></li>
    <li><a href="#module:ProcessorCount"><b><code>ProcessorCount</code></b></a></li>
    <li><a href="#module:Qt4ConfigDependentSettings"><b><code>Qt4ConfigDependentSettings</code></b></a></li>
    <li><a href="#module:Qt4Macros"><b><code>Qt4Macros</code></b></a></li>
    <li><a href="#module:SelectLibraryConfigurations"><b><code>SelectLibraryConfigurations</code></b></a></li>
    <li><a href="#module:SquishTestScript"><b><code>SquishTestScript</code></b></a></li>
    <li><a href="#module:TestBigEndian"><b><code>TestBigEndian</code></b></a></li>
    <li><a href="#module:TestCXXAcceptsFlag"><b><code>TestCXXAcceptsFlag</code></b></a></li>
    <li><a href="#module:TestForANSIForScope"><b><code>TestForANSIForScope</code></b></a></li>
    <li><a href="#module:TestForANSIStreamHeaders"><b><code>TestForANSIStreamHeaders</code></b></a></li>
    <li><a href="#module:TestForSSTREAM"><b><code>TestForSSTREAM</code></b></a></li>
    <li><a href="#module:TestForSTDNamespace"><b><code>TestForSTDNamespace</code></b></a></li>
    <li><a href="#module:UseEcos"><b><code>UseEcos</code></b></a></li>
    <li><a href="#module:UseJava"><b><code>UseJava</code></b></a></li>
    <li><a href="#module:UseJavaClassFilelist"><b><code>UseJavaClassFilelist</code></b></a></li>
    <li><a href="#module:UseJavaSymlinks"><b><code>UseJavaSymlinks</code></b></a></li>
    <li><a href="#module:UsePkgConfig"><b><code>UsePkgConfig</code></b></a></li>
    <li><a href="#module:UseQt4"><b><code>UseQt4</code></b></a></li>
    <li><a href="#module:UseSWIG"><b><code>UseSWIG</code></b></a></li>
    <li><a href="#module:Use_wxWindows"><b><code>Use_wxWindows</code></b></a></li>
    <li><a href="#module:UsewxWidgets"><b><code>UsewxWidgets</code></b></a></li>
    <li><a href="#module:WriteBasicConfigVersionFile"><b><code>WriteBasicConfigVersionFile</code></b></a></li>
</ul>
<p>The following modules are provided with CMake. They can be used with INCLUDE(ModuleName).</p>

<pre>  CMake Modules - Modules coming with CMake, the Cross-Platform Makefile Generator.</pre>
    
<p>This is the documentation for the modules and scripts coming with CMake. Using these modules you can check the computer system for installed software packages, features of the compiler and the existence of headers to name just a few.</p>

<ul>
  <li>
    <a name="module:AddFileDependencies"></a><b><code>AddFileDependencies</code></b>: ADD_FILE_DEPENDENCIES(source_file depend_files...)<br />
    <p>Adds the given files as dependencies to source_file<br /></p>

  </li>
  <li>
    <a name="module:BundleUtilities"></a><b><code>BundleUtilities</code></b>: Functions to help assemble a standalone bundle application.<br />
    <p>A collection of CMake utility functions useful for dealing with .app bundles on the Mac and bundle-like directories on any OS.<br /></p>
<p>The following functions are provided by this module:<br /></p>
<pre>   fixup_bundle<br />   copy_and_fixup_bundle<br />   verify_app<br />   get_bundle_main_executable<br />   get_dotapp_dir<br />   get_bundle_and_executable<br />   get_bundle_all_executables<br />   get_item_key<br />   clear_bundle_keys<br />   set_bundle_key_values<br />   get_bundle_keys<br />   copy_resolved_item_into_bundle<br />   copy_resolved_framework_into_bundle<br />   fixup_bundle_item<br />   verify_bundle_prerequisites<br />   verify_bundle_symlinks<br /></pre>
    <p>Requires CMake 2.6 or greater because it uses function, break and PARENT_SCOPE. Also depends on GetPrerequisites.cmake.<br /></p>
<pre>  FIXUP_BUNDLE(&lt;app&gt; &lt;libs&gt; &lt;dirs&gt;)<br /></pre>
    <p>Fix up a bundle in-place and make it standalone, such that it can be drag-n-drop copied to another machine and run on that machine as long as all of the system libraries are compatible.<br /></p>
<p>If you pass plugins to fixup_bundle as the libs parameter, you should install them or copy them into the bundle before calling fixup_bundle. The "libs" parameter is a list of libraries that must be fixed up, but that cannot be determined by otool output analysis. (i.e., plugins)<br /></p>
<p>Gather all the keys for all the executables and libraries in a bundle, and then, for each key, copy each prerequisite into the bundle. Then fix each one up according to its own list of prerequisites.<br /></p>
<p>Then clear all the keys and call verify_app on the final bundle to ensure that it is truly standalone.<br /></p>
<pre>  COPY_AND_FIXUP_BUNDLE(&lt;src&gt; &lt;dst&gt; &lt;libs&gt; &lt;dirs&gt;)<br /></pre>
    <p>Makes a copy of the bundle &lt;src&gt; at location &lt;dst&gt; and then fixes up the new copied bundle in-place at &lt;dst&gt;...<br /></p>
<pre>  VERIFY_APP(&lt;app&gt;)<br /></pre>
    <p>Verifies that an application &lt;app&gt; appears valid based on running analysis tools on it. Calls "message(FATAL_ERROR" if the application is not verified.<br /></p>
<pre>  GET_BUNDLE_MAIN_EXECUTABLE(&lt;bundle&gt; &lt;result_var&gt;)<br /></pre>
    <p>The result will be the full path name of the bundle's main executable file or an "error:" prefixed string if it could not be determined.<br /></p>
<pre>  GET_DOTAPP_DIR(&lt;exe&gt; &lt;dotapp_dir_var&gt;)<br /></pre>
    <p>Returns the nearest parent dir whose name ends with ".app" given the full path to an executable. If there is no such parent dir, then simply return the dir containing the executable.<br /></p>
<p>The returned directory may or may not exist.<br /></p>
<pre>  GET_BUNDLE_AND_EXECUTABLE(&lt;app&gt; &lt;bundle_var&gt; &lt;executable_var&gt; &lt;valid_var&gt;)<br /></pre>
    <p>Takes either a ".app" directory name or the name of an executable nested inside a ".app" directory and returns the path to the ".app" directory in &lt;bundle_var&gt; and the path to its main executable in &lt;executable_var&gt;<br /></p>
<pre>  GET_BUNDLE_ALL_EXECUTABLES(&lt;bundle&gt; &lt;exes_var&gt;)<br /></pre>
    <p>Scans the given bundle recursively for all executable files and accumulates them into a variable.<br /></p>
<pre>  GET_ITEM_KEY(&lt;item&gt; &lt;key_var&gt;)<br /></pre>
    <p>Given a file (item) name, generate a key that should be unique considering the set of libraries that need copying or fixing up to make a bundle standalone. This is essentially the file name including extension with "." replaced by "_"<br /></p>
<p>This key is used as a prefix for CMake variables so that we can associate a set of variables with a given item based on its key.<br /></p>
<pre>  CLEAR_BUNDLE_KEYS(&lt;keys_var&gt;)<br /></pre>
    <p>Loop over the list of keys, clearing all the variables associated with each key. After the loop, clear the list of keys itself.<br /></p>
<p>Caller of get_bundle_keys should call clear_bundle_keys when done with list of keys.<br /></p>
<pre>  SET_BUNDLE_KEY_VALUES(&lt;keys_var&gt; &lt;context&gt; &lt;item&gt; &lt;exepath&gt; &lt;dirs&gt;<br />                        &lt;copyflag&gt;)<br /></pre>
    <p>Add a key to the list (if necessary) for the given item. If added, also set all the variables associated with that key.<br /></p>
<pre>  GET_BUNDLE_KEYS(&lt;app&gt; &lt;libs&gt; &lt;dirs&gt; &lt;keys_var&gt;)<br /></pre>
    <p>Loop over all the executable and library files within the bundle (and given as extra &lt;libs&gt;) and accumulate a list of keys representing them. Set values associated with each key such that we can loop over all of them and copy prerequisite libs into the bundle and then do appropriate install_name_tool fixups.<br /></p>
<pre>  COPY_RESOLVED_ITEM_INTO_BUNDLE(&lt;resolved_item&gt; &lt;resolved_embedded_item&gt;)<br /></pre>
    <p>Copy a resolved item into the bundle if necessary. Copy is not necessary if the resolved_item is "the same as" the resolved_embedded_item.<br /></p>
<pre>  COPY_RESOLVED_FRAMEWORK_INTO_BUNDLE(&lt;resolved_item&gt; &lt;resolved_embedded_item&gt;)<br /></pre>
    <p>Copy a resolved framework into the bundle if necessary. Copy is not necessary if the resolved_item is "the same as" the resolved_embedded_item.<br /></p>
<p>By default, BU_COPY_FULL_FRAMEWORK_CONTENTS is not set. If you want full frameworks embedded in your bundles, set BU_COPY_FULL_FRAMEWORK_CONTENTS to ON before calling fixup_bundle. By default, COPY_RESOLVED_FRAMEWORK_INTO_BUNDLE copies the framework dylib itself plus the framework Resources directory.<br /></p>
<pre>  FIXUP_BUNDLE_ITEM(&lt;resolved_embedded_item&gt; &lt;exepath&gt; &lt;dirs&gt;)<br /></pre>
    <p>Get the direct/non-system prerequisites of the resolved embedded item. For each prerequisite, change the way it is referenced to the value of the _EMBEDDED_ITEM keyed variable for that prerequisite. (Most likely changing to an "@executable_path" style reference.)<br /></p>
<p>This function requires that the resolved_embedded_item be "inside" the bundle already. In other words, if you pass plugins to fixup_bundle as the libs parameter, you should install them or copy them into the bundle before calling fixup_bundle. The "libs" parameter is a list of libraries that must be fixed up, but that cannot be determined by otool output analysis. (i.e., plugins)<br /></p>
<p>Also, change the id of the item being fixed up to its own _EMBEDDED_ITEM value.<br /></p>
<p>Accumulate changes in a local variable and make *one* call to install_name_tool at the end of the function with all the changes at once.<br /></p>
<p>If the BU_CHMOD_BUNDLE_ITEMS variable is set then bundle items will be marked writable before install_name_tool tries to change them.<br /></p>
<pre>  VERIFY_BUNDLE_PREREQUISITES(&lt;bundle&gt; &lt;result_var&gt; &lt;info_var&gt;)<br /></pre>
    <p>Verifies that the sum of all prerequisites of all files inside the bundle are contained within the bundle or are "system" libraries, presumed to exist everywhere.<br /></p>
<pre>  VERIFY_BUNDLE_SYMLINKS(&lt;bundle&gt; &lt;result_var&gt; &lt;info_var&gt;)<br /></pre>
    <p>Verifies that any symlinks found in the bundle point to other files that are already also in the bundle... Anything that points to an external file causes this function to fail the verification.</p>

  </li>
  <li>
    <a name="module:CMakeAddFortranSubdirectory"></a><b><code>CMakeAddFortranSubdirectory</code></b>: Use MinGW gfortran from VS if a fortran compiler is not found.<br />
    <p>The 'add_fortran_subdirectory' function adds a subdirectory to a project that contains a fortran only sub-project. The module will check the current compiler and see if it can support fortran. If no fortran compiler is found and the compiler is MSVC, then this module will find the MinGW gfortran.  It will then use an external project to build with the MinGW tools.  It will also create imported targets for the libraries created.  This will only work if the fortran code is built into a dll, so BUILD_SHARED_LIBS is turned on in the project.  In addition the CMAKE_GNUtoMS option is set to on, so that the MS .lib files are created. Usage is as follows:<br /></p>
<pre>  cmake_add_fortran_subdirectory(<br />   &lt;subdir&gt;                # name of subdirectory<br />   PROJECT &lt;project_name&gt;  # project name in subdir top CMakeLists.txt<br />   ARCHIVE_DIR &lt;dir&gt;       # dir where project places .lib files<br />   RUNTIME_DIR &lt;dir&gt;       # dir where project places .dll files<br />   LIBRARIES &lt;lib&gt;...      # names of library targets to import<br />   LINK_LIBRARIES          # link interface libraries for LIBRARIES<br />    [LINK_LIBS &lt;lib&gt; &lt;dep&gt;...]...<br />   CMAKE_COMMAND_LINE ...  # extra command line flags to pass to cmake<br />   NO_EXTERNAL_INSTALL     # skip installation of external project<br />   )<br /></pre>
    <p>Relative paths in ARCHIVE_DIR and RUNTIME_DIR are interpreted with respect to the build directory corresponding to the source directory in which the function is invoked.<br /></p>
<p>Limitations:<br /></p>
<p>NO_EXTERNAL_INSTALL is required for forward compatibility with a future version that supports installation of the external project binaries during "make install".</p>

  </li>
  <li>
    <a name="module:CMakeBackwardCompatibilityCXX"></a><b><code>CMakeBackwardCompatibilityCXX</code></b>: define a bunch of backwards compatibility variables<br />
    <pre>  CMAKE_ANSI_CXXFLAGS - flag for ansi c++<br />  CMAKE_HAS_ANSI_STRING_STREAM - has &lt;strstream&gt;<br />  include(TestForANSIStreamHeaders)<br />  include(CheckIncludeFileCXX)<br />  include(TestForSTDNamespace)<br />  include(TestForANSIForScope)<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeDependentOption"></a><b><code>CMakeDependentOption</code></b>: Macro to provide an option dependent on other options.<br />
    <p>This macro presents an option to the user only if a set of other conditions are true.  When the option is not presented a default value is used, but any value set by the user is preserved for when the option is presented again. Example invocation:<br /></p>
<pre>  CMAKE_DEPENDENT_OPTION(USE_FOO "Use Foo" ON<br />                         "USE_BAR;NOT USE_ZOT" OFF)<br /></pre>
    <p>If USE_BAR is true and USE_ZOT is false, this provides an option called USE_FOO that defaults to ON.  Otherwise, it sets USE_FOO to OFF.  If the status of USE_BAR or USE_ZOT ever changes, any value for the USE_FOO option is saved so that when the option is re-enabled it retains its old value.</p>

  </li>
  <li>
    <a name="module:CMakeDetermineVSServicePack"></a><b><code>CMakeDetermineVSServicePack</code></b>: Determine the Visual Studio service pack of the 'cl' in use.<br />
    <p>The functionality of this module has been superseded by the platform variable CMAKE_&lt;LANG&gt;_COMPILER_VERSION that contains the compiler version number.<br /></p>
<p>Usage:<br /></p>
<pre>  if(MSVC)<br />    include(CMakeDetermineVSServicePack)<br />    DetermineVSServicePack( my_service_pack )<br />    if( my_service_pack )<br />      message(STATUS "Detected: ${my_service_pack}")<br />    endif()<br />  endif()<br /></pre>
    <p>Function DetermineVSServicePack sets the given variable to one of the following values or an empty string if unknown:<br /></p>
<pre>  vc80, vc80sp1<br />  vc90, vc90sp1<br />  vc100, vc100sp1<br />  vc110, vc110sp1, vc110sp2<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeExpandImportedTargets"></a><b><code>CMakeExpandImportedTargets</code></b>:  <br />
    <p>CMAKE_EXPAND_IMPORTED_TARGETS(&lt;var&gt; LIBRARIES lib1 lib2...libN<br /></p>
<pre>                                     [CONFIGURATION &lt;config&gt;] )<br /></pre>
    <p><br /></p>
<p>CMAKE_EXPAND_IMPORTED_TARGETS() takes a list of libraries and replaces all imported targets contained in this list with their actual file paths of the referenced libraries on disk, including the libraries from their link interfaces. If a CONFIGURATION is given, it uses the respective configuration of the imported targets if it exists. If no CONFIGURATION is given, it uses the first configuration from ${CMAKE_CONFIGURATION_TYPES} if set, otherwise ${CMAKE_BUILD_TYPE}. This macro is used by all Check*.cmake files which use try_compile() or try_run() and support CMAKE_REQUIRED_LIBRARIES , so that these checks support imported targets in CMAKE_REQUIRED_LIBRARIES:<br /></p>
<pre>    cmake_expand_imported_targets(expandedLibs LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}<br />                                               CONFIGURATION "${CMAKE_TRY_COMPILE_CONFIGURATION}" )<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeFindFrameworks"></a><b><code>CMakeFindFrameworks</code></b>: helper module to find OSX frameworks
  </li>
  <li>
    <a name="module:CMakeFindPackageMode"></a><b><code>CMakeFindPackageMode</code></b>:  <br />
    <p>This file is executed by cmake when invoked with --find-package. It expects that the following variables are set using -D:<br /></p>
<pre>   NAME = name of the package<br />   COMPILER_ID = the CMake compiler ID for which the result is, i.e. GNU/Intel/Clang/MSVC, etc.<br />   LANGUAGE = language for which the result will be used, i.e. C/CXX/Fortan/ASM<br />   MODE = EXIST : only check for existence of the given package<br />          COMPILE : print the flags needed for compiling an object file which uses the given package<br />          LINK : print the flags needed for linking when using the given package<br />   QUIET = if TRUE, don't print anything<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeForceCompiler"></a><b><code>CMakeForceCompiler</code></b>:  <br />
    <p>This module defines macros intended for use by cross-compiling toolchain files when CMake is not able to automatically detect the compiler identification.<br /></p>
<p>Macro CMAKE_FORCE_C_COMPILER has the following signature:<br /></p>
<pre>   CMAKE_FORCE_C_COMPILER(&lt;compiler&gt; &lt;compiler-id&gt;)<br /></pre>
    <p>It sets CMAKE_C_COMPILER to the given compiler and the cmake internal variable CMAKE_C_COMPILER_ID to the given compiler-id. It also bypasses the check for working compiler and basic compiler information tests.<br /></p>
<p>Macro CMAKE_FORCE_CXX_COMPILER has the following signature:<br /></p>
<pre>   CMAKE_FORCE_CXX_COMPILER(&lt;compiler&gt; &lt;compiler-id&gt;)<br /></pre>
    <p>It sets CMAKE_CXX_COMPILER to the given compiler and the cmake internal variable CMAKE_CXX_COMPILER_ID to the given compiler-id. It also bypasses the check for working compiler and basic compiler information tests.<br /></p>
<p>Macro CMAKE_FORCE_Fortran_COMPILER has the following signature:<br /></p>
<pre>   CMAKE_FORCE_Fortran_COMPILER(&lt;compiler&gt; &lt;compiler-id&gt;)<br /></pre>
    <p>It sets CMAKE_Fortran_COMPILER to the given compiler and the cmake internal variable CMAKE_Fortran_COMPILER_ID to the given compiler-id. It also bypasses the check for working compiler and basic compiler information tests.<br /></p>
<p>So a simple toolchain file could look like this:<br /></p>
<pre>   include (CMakeForceCompiler)<br />   set(CMAKE_SYSTEM_NAME Generic)<br />   CMAKE_FORCE_C_COMPILER   (chc12 MetrowerksHicross)<br />   CMAKE_FORCE_CXX_COMPILER (chc12 MetrowerksHicross)<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeGraphVizOptions"></a><b><code>CMakeGraphVizOptions</code></b>: The builtin graphviz support of CMake.<br />
    <p>CMake can generate graphviz files, showing the dependencies between the targets in a project and also external libraries which are linked against. When CMake is run with the --graphiz=foo option, it will produce<br /></p>
<pre>    * a foo.dot file showing all dependencies in the project<br />    * a foo.dot.&lt;target&gt; file for each target, file showing on which other targets the respective target depends<br />    * a foo.dot.&lt;target&gt;.dependers file, showing which other targets depend on the respective target<br /></pre>
    <p><br /></p>
<p>This can result in huge graphs. Using the file CMakeGraphVizOptions.cmake the look and content of the generated graphs can be influenced. This file is searched first in ${CMAKE_BINARY_DIR} and then in ${CMAKE_SOURCE_DIR}. If found, it is read and the variables set in it are used to adjust options for the generated graphviz files.<br /></p>
<pre>  GRAPHVIZ_GRAPH_TYPE - The graph type<br />     Mandatory : NO<br />     Default   : "digraph"<br />  GRAPHVIZ_GRAPH_NAME - The graph name.<br />     Mandatory : NO<br />     Default   : "GG"<br />  GRAPHVIZ_GRAPH_HEADER - The header written at the top of the graphviz file.<br />     Mandatory : NO<br />     Default   : "node [n  fontsize = "12"];"<br />  GRAPHVIZ_NODE_PREFIX - The prefix for each node in the graphviz file.<br />     Mandatory : NO<br />     Default   : "node"<br />  GRAPHVIZ_EXECUTABLES - Set this to FALSE to exclude executables from the generated graphs.<br />     Mandatory : NO<br />     Default   : TRUE<br />  GRAPHVIZ_STATIC_LIBS - Set this to FALSE to exclude static libraries from the generated graphs.<br />     Mandatory : NO<br />     Default   : TRUE<br />  GRAPHVIZ_SHARED_LIBS - Set this to FALSE to exclude shared libraries from the generated graphs.<br />     Mandatory : NO<br />     Default   : TRUE<br />  GRAPHVIZ_MODULE_LIBS - Set this to FALSE to exclude static libraries from the generated graphs.<br />     Mandatory : NO<br />     Default   : TRUE<br />  GRAPHVIZ_EXTERNAL_LIBS - Set this to FALSE to exclude external libraries from the generated graphs.<br />     Mandatory : NO<br />     Default   : TRUE<br />  GRAPHVIZ_IGNORE_TARGETS - A list of regular expressions for ignoring targets.<br />     Mandatory : NO<br />     Default   : empty<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakePackageConfigHelpers"></a><b><code>CMakePackageConfigHelpers</code></b>: CONFIGURE_PACKAGE_CONFIG_FILE(), WRITE_BASIC_PACKAGE_VERSION_FILE()<br />
    <p><br /></p>
<pre>    CONFIGURE_PACKAGE_CONFIG_FILE(&lt;input&gt; &lt;output&gt; INSTALL_DESTINATION &lt;path&gt;<br />                                                   [PATH_VARS &lt;var1&gt; &lt;var2&gt; ... &lt;varN&gt;]<br />                                                   [NO_SET_AND_CHECK_MACRO]<br />                                                   [NO_CHECK_REQUIRED_COMPONENTS_MACRO])<br /></pre>
    <p><br /></p>
<p>CONFIGURE_PACKAGE_CONFIG_FILE() should be used instead of the plain configure_file() command when creating the &lt;Name&gt;Config.cmake or &lt;Name&gt;-config.cmake file for installing a project or library. It helps making the resulting package relocatable by avoiding hardcoded paths in the installed Config.cmake file.<br /></p>
<p>In a FooConfig.cmake file there may be code like this to make the install destinations know to the using project:<br /></p>
<pre>   set(FOO_INCLUDE_DIR   "@CMAKE_INSTALL_FULL_INCLUDEDIR@" )<br />   set(FOO_DATA_DIR   "@CMAKE_INSTALL_PREFIX@/@RELATIVE_DATA_INSTALL_DIR@" )<br />   set(FOO_ICONS_DIR   "@CMAKE_INSTALL_PREFIX@/share/icons" )<br />   ...logic to determine installedPrefix from the own location...<br />   set(FOO_CONFIG_DIR  "${installedPrefix}/@CONFIG_INSTALL_DIR@" )<br /></pre>
    <p>All 4 options shown above are not sufficient, since the first 3 hardcode the absolute directory locations, and the 4th case works only if the logic to determine the installedPrefix is correct, and if CONFIG_INSTALL_DIR contains a relative path, which in general cannot be guaranteed. This has the effect that the resulting FooConfig.cmake file would work poorly under Windows and OSX, where users are used to choose the install location of a binary package at install time, independent from how CMAKE_INSTALL_PREFIX was set at build/cmake time.<br /></p>
<p>Using CONFIGURE_PACKAGE_CONFIG_FILE() helps. If used correctly, it makes the resulting FooConfig.cmake file relocatable. Usage:<br /></p>
<pre>   1. write a FooConfig.cmake.in file as you are used to<br />   2. insert a line containing only the string "@PACKAGE_INIT@"<br />   3. instead of set(FOO_DIR "@SOME_INSTALL_DIR@"), use set(FOO_DIR "@PACKAGE_SOME_INSTALL_DIR@")<br />      (this must be after the @PACKAGE_INIT@ line)<br />   4. instead of using the normal configure_file(), use CONFIGURE_PACKAGE_CONFIG_FILE()<br /></pre>
    <p><br /></p>
<p>The &lt;input&gt; and &lt;output&gt; arguments are the input and output file, the same way as in configure_file().<br /></p>
<p>The &lt;path&gt; given to INSTALL_DESTINATION must be the destination where the FooConfig.cmake file will be installed to. This can either be a relative or absolute path, both work.<br /></p>
<p>The variables &lt;var1&gt; to &lt;varN&gt; given as PATH_VARS are the variables which contain install destinations. For each of them the macro will create a helper variable PACKAGE_&lt;var...&gt;. These helper variables must be used in the FooConfig.cmake.in file for setting the installed location. They are calculated by CONFIGURE_PACKAGE_CONFIG_FILE() so that they are always relative to the installed location of the package. This works both for relative and also for absolute locations. For absolute locations it works only if the absolute location is a subdirectory of CMAKE_INSTALL_PREFIX.<br /></p>
<p>By default configure_package_config_file() also generates two helper macros, set_and_check() and check_required_components() into the FooConfig.cmake file.<br /></p>
<p>set_and_check() should be used instead of the normal set() command for setting directories and file locations. Additionally to setting the variable it also checks that the referenced file or directory actually exists and fails with a FATAL_ERROR otherwise. This makes sure that the created FooConfig.cmake file does not contain wrong references. When using the NO_SET_AND_CHECK_MACRO, this macro is not generated into the FooConfig.cmake file.<br /></p>
<p>check_required_components(&lt;package_name&gt;) should be called at the end of the FooConfig.cmake file if the package supports components. This macro checks whether all requested, non-optional components have been found, and if this is not the case, sets the Foo_FOUND variable to FALSE, so that the package is considered to be not found. It does that by testing the Foo_&lt;Component&gt;_FOUND variables for all requested required components. When using the NO_CHECK_REQUIRED_COMPONENTS option, this macro is not generated into the FooConfig.cmake file.<br /></p>
<p>For an example see below the documentation for WRITE_BASIC_PACKAGE_VERSION_FILE().<br /></p>
<p><br /></p>
<pre>  WRITE_BASIC_PACKAGE_VERSION_FILE( filename VERSION major.minor.patch COMPATIBILITY (AnyNewerVersion|SameMajorVersion|ExactVersion) )<br /></pre>
    <p><br /></p>
<p>Writes a file for use as &lt;package&gt;ConfigVersion.cmake file to &lt;filename&gt;. See the documentation of find_package() for details on this.<br /></p>
<pre>    filename is the output filename, it should be in the build tree.<br />    major.minor.patch is the version number of the project to be installed<br /></pre>
    <p>The COMPATIBILITY mode AnyNewerVersion means that the installed package version will be considered compatible if it is newer or exactly the same as the requested version. This mode should be used for packages which are fully backward compatible, also across major versions. If SameMajorVersion is used instead, then the behaviour differs from AnyNewerVersion in that the major version number must be the same as requested, e.g. version 2.0 will not be considered compatible if 1.0 is requested. This mode should be used for packages which guarantee backward compatibility within the same major version. If ExactVersion is used, then the package is only considered compatible if the requested version matches exactly its own version number (not considering the tweak version). For example, version 1.2.3 of a package is only considered compatible to requested version 1.2.3. This mode is for packages without compatibility guarantees. If your project has more elaborated version matching rules, you will need to write your own custom ConfigVersion.cmake file instead of using this macro.<br /></p>
<p>Internally, this macro executes configure_file() to create the resulting version file. Depending on the COMPATIBLITY, either the file BasicConfigVersion-SameMajorVersion.cmake.in or BasicConfigVersion-AnyNewerVersion.cmake.in is used. Please note that these two files are internal to CMake and you should not call configure_file() on them yourself, but they can be used as starting point to create more sophisticted custom ConfigVersion.cmake files.<br /></p>
<p><br /></p>
<p>Example using both configure_package_config_file() and write_basic_package_version_file(): CMakeLists.txt:<br /></p>
<pre>   set(INCLUDE_INSTALL_DIR include/ ... CACHE )<br />   set(LIB_INSTALL_DIR lib/ ... CACHE )<br />   set(SYSCONFIG_INSTALL_DIR etc/foo/ ... CACHE )<br />   ...<br />   include(CMakePackageConfigHelpers)<br />   configure_package_config_file(FooConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/FooConfig.cmake<br />                                 INSTALL_DESTINATION ${LIB_INSTALL_DIR}/Foo/cmake<br />                                 PATH_VARS INCLUDE_INSTALL_DIR SYSCONFIG_INSTALL_DIR)<br />   write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake<br />                                    VERSION 1.2.3<br />                                    COMPATIBILITY SameMajorVersion )<br />   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FooConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake<br />           DESTINATION ${LIB_INSTALL_DIR}/Foo/cmake )<br /></pre>
    <p><br /></p>
<p>With a FooConfig.cmake.in:<br /></p>
<pre>   set(FOO_VERSION x.y.z)<br />   ...<br />   @PACKAGE_INIT@<br />   ...<br />   set_and_check(FOO_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")<br />   set_and_check(FOO_SYSCONFIG_DIR "@PACKAGE_SYSCONFIG_INSTALL_DIR@")<br /></pre>
    <p><br /></p>
<pre>   check_required_components(Foo)<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeParseArguments"></a><b><code>CMakeParseArguments</code></b>:  <br />
    <p>CMAKE_PARSE_ARGUMENTS(&lt;prefix&gt; &lt;options&gt; &lt;one_value_keywords&gt; &lt;multi_value_keywords&gt; args...)<br /></p>
<p>CMAKE_PARSE_ARGUMENTS() is intended to be used in macros or functions for parsing the arguments given to that macro or function. It processes the arguments and defines a set of variables which hold the values of the respective options.<br /></p>
<p>The &lt;options&gt; argument contains all options for the respective macro, i.e. keywords which can be used when calling the macro without any value following, like e.g. the OPTIONAL keyword of the install() command.<br /></p>
<p>The &lt;one_value_keywords&gt; argument contains all keywords for this macro which are followed by one value, like e.g. DESTINATION keyword of the install() command.<br /></p>
<p>The &lt;multi_value_keywords&gt; argument contains all keywords for this macro which can be followed by more than one value, like e.g. the TARGETS or FILES keywords of the install() command.<br /></p>
<p>When done, CMAKE_PARSE_ARGUMENTS() will have defined for each of the keywords listed in &lt;options&gt;, &lt;one_value_keywords&gt; and &lt;multi_value_keywords&gt; a variable composed of the given &lt;prefix&gt; followed by "_" and the name of the respective keyword. These variables will then hold the respective value from the argument list. For the &lt;options&gt; keywords this will be TRUE or FALSE.<br /></p>
<p>All remaining arguments are collected in a variable &lt;prefix&gt;_UNPARSED_ARGUMENTS, this can be checked afterwards to see whether your macro was called with unrecognized parameters.<br /></p>
<p>As an example here a my_install() macro, which takes similar arguments as the real install() command:<br /></p>
<pre>   function(MY_INSTALL)<br />     set(options OPTIONAL FAST)<br />     set(oneValueArgs DESTINATION RENAME)<br />     set(multiValueArgs TARGETS CONFIGURATIONS)<br />     cmake_parse_arguments(MY_INSTALL "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )<br />     ...<br /></pre>
    <p><br /></p>
<p>Assume my_install() has been called like this:<br /></p>
<pre>   my_install(TARGETS foo bar DESTINATION bin OPTIONAL blub)<br /></pre>
    <p><br /></p>
<p>After the cmake_parse_arguments() call the macro will have set the following variables:<br /></p>
<pre>   MY_INSTALL_OPTIONAL = TRUE<br />   MY_INSTALL_FAST = FALSE (this option was not used when calling my_install()<br />   MY_INSTALL_DESTINATION = "bin"<br />   MY_INSTALL_RENAME = "" (was not used)<br />   MY_INSTALL_TARGETS = "foo;bar"<br />   MY_INSTALL_CONFIGURATIONS = "" (was not used)<br />   MY_INSTALL_UNPARSED_ARGUMENTS = "blub" (no value expected after "OPTIONAL"<br /></pre>
    <p><br /></p>
<p>You can then continue and process these variables.<br /></p>
<p>Keywords terminate lists of values, e.g. if directly after a one_value_keyword another recognized keyword follows, this is interpreted as the beginning of the new option. E.g. my_install(TARGETS foo DESTINATION OPTIONAL) would result in MY_INSTALL_DESTINATION set to "OPTIONAL", but MY_INSTALL_DESTINATION would be empty and MY_INSTALL_OPTIONAL would be set to TRUE therefor.</p>

  </li>
  <li>
    <a name="module:CMakePrintHelpers"></a><b><code>CMakePrintHelpers</code></b>: Convenience macros for printing properties and variables, useful e.g. for debugging.<br />
    <p><br /></p>
<p><br /></p>
<p>CMAKE_PRINT_PROPERTIES([TARGETS target1 .. targetN]<br /></p>
<pre>                        [SOURCES source1 .. sourceN]<br />                        [DIRECTORIES dir1 .. dirN]<br />                        [TESTS test1 .. testN]<br />                        [CACHE_ENTRIES entry1 .. entryN]<br />                        PROPERTIES prop1 .. propN )<br /></pre>
    <p><br /></p>
<p>This macro prints the values of the properties of the given targets, source files, directories, tests or cache entries. Exactly one of the scope keywords must be used. Example:<br /></p>
<pre>   cmake_print_properties(TARGETS foo bar PROPERTIES LOCATION INTERFACE_INCLUDE_DIRS)<br /></pre>
    <p>This will print the LOCATION and INTERFACE_INCLUDE_DIRS properties for both targets foo and bar.<br /></p>
<p><br /></p>
<p>CMAKE_PRINT_VARIABLES(var1 var2 .. varN)<br /></p>
<p>This macro will print the name of each variable followed by its value. Example:<br /></p>
<pre>   cmake_print_variables(CMAKE_C_COMPILER CMAKE_MAJOR_VERSION THIS_ONE_DOES_NOT_EXIST)<br /></pre>
    <p>Gives:<br /></p>
<pre>   -- CMAKE_C_COMPILER="/usr/bin/gcc" ; CMAKE_MAJOR_VERSION="2" ; THIS_ONE_DOES_NOT_EXIST=""<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakePrintSystemInformation"></a><b><code>CMakePrintSystemInformation</code></b>: print system information<br />
    <p>This file can be used for diagnostic purposes just include it in a project to see various internal CMake variables.</p>

  </li>
  <li>
    <a name="module:CMakePushCheckState"></a><b><code>CMakePushCheckState</code></b>:  <br />
    <p>This module defines three macros: CMAKE_PUSH_CHECK_STATE() CMAKE_POP_CHECK_STATE() and CMAKE_RESET_CHECK_STATE() These macros can be used to save, restore and reset (i.e., clear contents) the state of the variables CMAKE_REQUIRED_FLAGS, CMAKE_REQUIRED_DEFINITIONS, CMAKE_REQUIRED_LIBRARIES and CMAKE_REQUIRED_INCLUDES used by the various Check-files coming with CMake, like e.g. check_function_exists() etc. The variable contents are pushed on a stack, pushing multiple times is supported. This is useful e.g. when executing such tests in a Find-module, where they have to be set, but after the Find-module has been executed they should have the same value as they had before.<br /></p>
<p>CMAKE_PUSH_CHECK_STATE() macro receives optional argument RESET. Whether it's specified, CMAKE_PUSH_CHECK_STATE() will set all CMAKE_REQUIRED_* variables to empty values, same as CMAKE_RESET_CHECK_STATE() call will do.<br /></p>
<p>Usage:<br /></p>
<pre>   cmake_push_check_state(RESET)<br />   set(CMAKE_REQUIRED_DEFINITIONS -DSOME_MORE_DEF)<br />   check_function_exists(...)<br />   cmake_reset_check_state()<br />   set(CMAKE_REQUIRED_DEFINITIONS -DANOTHER_DEF)<br />   check_function_exists(...)<br />   cmake_pop_check_state()<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeVerifyManifest"></a><b><code>CMakeVerifyManifest</code></b>:  <br />
    <p>CMakeVerifyManifest.cmake<br /></p>
<p>This script is used to verify that embeded manifests and side by side manifests for a project match.  To run this script, cd to a directory and run the script with cmake -P. On the command line you can pass in versions that are OK even if not found in the .manifest files. For example, cmake -Dallow_versions=8.0.50608.0 -PCmakeVerifyManifest.cmake could be used to allow an embeded manifest of 8.0.50608.0 to be used in a project even if that version was not found in the .manifest file.</p>

  </li>
  <li>
    <a name="module:CPack"></a><b><code>CPack</code></b>: Build binary and source package installers.<br />
    <p>The CPack module generates binary and source installers in a variety of formats using the cpack program. Inclusion of the CPack module adds two new targets to the resulting makefiles, package and package_source, which build the binary and source installers, respectively. The generated binary installers contain everything installed via CMake's INSTALL command (and the deprecated INSTALL_FILES, INSTALL_PROGRAMS, and INSTALL_TARGETS commands).<br /></p>
<p>For certain kinds of binary installers (including the graphical installers on Mac OS X and Windows), CPack generates installers that allow users to select individual application components to install. See CPackComponent module for that.<br /></p>
<p>The CPACK_GENERATOR variable has different meanings in different contexts. In your CMakeLists.txt file, CPACK_GENERATOR is a *list of generators*: when run with no other arguments, CPack will iterate over that list and produce one package for each generator. In a CPACK_PROJECT_CONFIG_FILE, though, CPACK_GENERATOR is a *string naming a single generator*. If you need per-cpack- generator logic to control *other* cpack settings, then you need a CPACK_PROJECT_CONFIG_FILE.<br /></p>
<p>The CMake source tree itself contains a CPACK_PROJECT_CONFIG_FILE. See the top level file CMakeCPackOptions.cmake.in for an example.<br /></p>
<p>If set, the CPACK_PROJECT_CONFIG_FILE is included automatically on a per-generator basis. It only need contain overrides.<br /></p>
<p>Here's how it works:<br /></p>
<pre>  - cpack runs<br />  - it includes CPackConfig.cmake<br />  - it iterates over the generators listed in that file's<br />    CPACK_GENERATOR list variable (unless told to use just a<br />    specific one via -G on the command line...)<br /></pre>
    <p><br /></p>
<pre>  - foreach generator, it then<br />    - sets CPACK_GENERATOR to the one currently being iterated<br />    - includes the CPACK_PROJECT_CONFIG_FILE<br />    - produces the package for that generator<br /></pre>
    <p><br /></p>
<p>This is the key: For each generator listed in CPACK_GENERATOR in CPackConfig.cmake, cpack will *reset* CPACK_GENERATOR internally to *the one currently being used* and then include the CPACK_PROJECT_CONFIG_FILE.<br /></p>
<p>Before including this CPack module in your CMakeLists.txt file, there are a variety of variables that can be set to customize the resulting installers. The most commonly-used variables are:<br /></p>
<pre>  CPACK_PACKAGE_NAME - The name of the package (or application). If<br />  not specified, defaults to the project name.<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_VENDOR - The name of the package vendor. (e.g.,<br />  "Kitware").<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_DIRECTORY - The directory in which CPack is doing its<br />  packaging. If it is not set then this will default (internally) to the<br />  build dir. This variable may be defined in CPack config file or from<br />  the cpack command line option "-B". If set the command line option<br />  override the value found in the config file.<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_VERSION_MAJOR - Package major Version<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_VERSION_MINOR - Package minor Version<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_VERSION_PATCH - Package patch Version<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_DESCRIPTION_FILE - A text file used to describe the<br />  project. Used, for example, the introduction screen of a<br />  CPack-generated Windows installer to describe the project.<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_DESCRIPTION_SUMMARY - Short description of the<br />  project (only a few words).<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_FILE_NAME - The name of the package file to generate,<br />  not including the extension. For example, cmake-2.6.1-Linux-i686.<br />  The default value is<br /></pre>
    <p><br /></p>
<pre>  ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}.<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_INSTALL_DIRECTORY - Installation directory on the<br />  target system. This may be used by some CPack generators<br />  like NSIS to create an installation directory e.g., "CMake 2.5"<br />  below the installation prefix. All installed element will be<br />  put inside this directory.<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_ICON - A branding image that will be displayed inside<br />   the installer (used by GUI installers).<br /></pre>
    <p><br /></p>
<pre>  CPACK_PROJECT_CONFIG_FILE - CPack-time project CPack configuration<br />  file. This file included at cpack time, once per<br />  generator after CPack has set CPACK_GENERATOR to the actual generator<br />  being used. It allows per-generator setting of CPACK_* variables at<br />  cpack time.<br /></pre>
    <p><br /></p>
<pre>  CPACK_RESOURCE_FILE_LICENSE - License to be embedded in the installer. It<br />  will typically be displayed to the user by the produced installer<br />  (often with an explicit "Accept" button, for graphical installers)<br />  prior to installation. This license file is NOT added to installed<br />  file but is used by some CPack generators like NSIS. If you want<br />  to install a license file (may be the same as this one)<br />  along with your project you must add an appropriate CMake INSTALL<br />  command in your CMakeLists.txt.<br /></pre>
    <p><br /></p>
<pre>  CPACK_RESOURCE_FILE_README - ReadMe file to be embedded in the installer. It<br />  typically describes in some detail the purpose of the project<br />  during the installation. Not all CPack generators uses<br />  this file.<br /></pre>
    <p><br /></p>
<pre>  CPACK_RESOURCE_FILE_WELCOME - Welcome file to be embedded in the<br />  installer. It welcomes users to this installer.<br />  Typically used in the graphical installers on Windows and Mac OS X.<br /></pre>
    <p><br /></p>
<pre>  CPACK_MONOLITHIC_INSTALL - Disables the component-based<br />  installation mechanism. When set the component specification is ignored<br />  and all installed items are put in a single "MONOLITHIC" package.<br />  Some CPack generators do monolithic packaging by default and<br />  may be asked to do component packaging by setting<br />  CPACK_&lt;GENNAME&gt;_COMPONENT_INSTALL to 1/TRUE.<br /></pre>
    <p><br /></p>
<pre>  CPACK_GENERATOR - List of CPack generators to use. If not<br />  specified, CPack will create a set of options CPACK_BINARY_&lt;GENNAME&gt; (e.g.,<br />  CPACK_BINARY_NSIS) allowing the user to enable/disable individual<br />  generators. This variable may be used on the command line<br />  as well as in:<br /></pre>
    <p><br /></p>
<pre>    cpack -D CPACK_GENERATOR="ZIP;TGZ" /path/to/build/tree<br /></pre>
    <p><br /></p>
<pre>  CPACK_OUTPUT_CONFIG_FILE - The name of the CPack binary configuration<br />  file. This file is the CPack configuration generated by the CPack module<br />  for binary installers. Defaults to CPackConfig.cmake.<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_EXECUTABLES - Lists each of the executables and associated<br />  text label to be used to create Start Menu shortcuts. For example,<br />  setting this to the list ccmake;CMake will<br />  create a shortcut named "CMake" that will execute the installed<br />  executable ccmake. Not all CPack generators use it (at least NSIS and<br />  OSXX11 do).<br /></pre>
    <p><br /></p>
<pre>  CPACK_STRIP_FILES - List of files to be stripped. Starting with<br />  CMake 2.6.0 CPACK_STRIP_FILES will be a boolean variable which<br />  enables stripping of all files (a list of files evaluates to TRUE<br />  in CMake, so this change is compatible).<br /></pre>
    <p><br /></p>
<p>The following CPack variables are specific to source packages, and will not affect binary packages:<br /></p>
<pre>  CPACK_SOURCE_PACKAGE_FILE_NAME - The name of the source package. For<br />  example cmake-2.6.1.<br /></pre>
    <p><br /></p>
<pre>  CPACK_SOURCE_STRIP_FILES - List of files in the source tree that<br />  will be stripped. Starting with CMake 2.6.0<br />  CPACK_SOURCE_STRIP_FILES will be a boolean variable which enables<br />  stripping of all files (a list of files evaluates to TRUE in CMake,<br />  so this change is compatible).<br /></pre>
    <p><br /></p>
<pre>  CPACK_SOURCE_GENERATOR - List of generators used for the source<br />  packages. As with CPACK_GENERATOR, if this is not specified then<br />  CPack will create a set of options (e.g., CPACK_SOURCE_ZIP)<br />  allowing users to select which packages will be generated.<br /></pre>
    <p><br /></p>
<pre>  CPACK_SOURCE_OUTPUT_CONFIG_FILE - The name of the CPack source<br />  configuration file. This file is the CPack configuration generated by the<br />  CPack module for source installers. Defaults to CPackSourceConfig.cmake.<br /></pre>
    <p><br /></p>
<pre>  CPACK_SOURCE_IGNORE_FILES - Pattern of files in the source tree<br />  that won't be packaged when building a source package. This is a<br />  list of regular expression patterns (that must be properly escaped),<br />  e.g., /CVS/;/\\.svn/;\\.swp$;\\.#;/#;.*~;cscope.*<br /></pre>
    <p><br /></p>
<p>The following variables are for advanced uses of CPack:<br /></p>
<pre>  CPACK_CMAKE_GENERATOR - What CMake generator should be used if the<br />  project is CMake project. Defaults to the value of CMAKE_GENERATOR<br />  few users will want to change this setting.<br /></pre>
    <p><br /></p>
<pre>  CPACK_INSTALL_CMAKE_PROJECTS - List of four values that specify<br />  what project to install. The four values are: Build directory,<br />  Project Name, Project Component, Directory. If omitted, CPack will<br />  build an installer that installers everything.<br /></pre>
    <p><br /></p>
<pre>  CPACK_SYSTEM_NAME - System name, defaults to the value of<br />  ${CMAKE_SYSTEM_NAME}.<br /></pre>
    <p><br /></p>
<pre>  CPACK_PACKAGE_VERSION - Package full version, used internally. By<br />  default, this is built from CPACK_PACKAGE_VERSION_MAJOR,<br />  CPACK_PACKAGE_VERSION_MINOR, and CPACK_PACKAGE_VERSION_PATCH.<br /></pre>
    <p><br /></p>
<pre>  CPACK_TOPLEVEL_TAG - Directory for the installed files.<br /></pre>
    <p><br /></p>
<pre>  CPACK_INSTALL_COMMANDS - Extra commands to install components.<br /></pre>
    <p><br /></p>
<pre>  CPACK_INSTALLED_DIRECTORIES - Extra directories to install.<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_INSTALL_REGISTRY_KEY - Registry key used when<br />   installing this project. This is only used by installer for Windows.<br />   The default value is based on the installation directory.<br />   CPACK_CREATE_DESKTOP_LINKS - List of desktop links to create.<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:CPackBundle"></a><b><code>CPackBundle</code></b>: CPack Bundle generator (Mac OS X) specific options<br />
    <p><br /></p>
<p>Installers built on Mac OS X using the Bundle generator use the aforementioned DragNDrop (CPACK_DMG_xxx) variables, plus the following Bundle-specific parameters (CPACK_BUNDLE_xxx).<br /></p>
<pre>  CPACK_BUNDLE_NAME - The name of the generated bundle. This<br />  appears in the OSX finder as the bundle name. Required.<br /></pre>
    <p><br /></p>
<pre>  CPACK_BUNDLE_PLIST - Path to an OSX plist file that will be used<br />  for the generated bundle. This assumes that the caller has generated<br />  or specified their own Info.plist file. Required.<br /></pre>
    <p><br /></p>
<pre>  CPACK_BUNDLE_ICON - Path to an OSX icon file that will be used as<br />  the icon for the generated bundle. This is the icon that appears in the<br />  OSX finder for the bundle, and in the OSX dock when the bundle is opened.<br />  Required.<br /></pre>
    <p><br /></p>
<pre>  CPACK_BUNDLE_STARTUP_COMMAND - Path to a startup script. This is a path to<br />  an executable or script that will be run whenever an end-user double-clicks<br />  the generated bundle in the OSX Finder. Optional.<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackComponent"></a><b><code>CPackComponent</code></b>: Build binary and source package installers<br />
    <p><br /></p>
<p>The CPackComponent module is the module which handles the component part of CPack. See CPack module for general information about CPack.<br /></p>
<p>For certain kinds of binary installers (including the graphical installers on Mac OS X and Windows), CPack generates installers that allow users to select individual application components to install. The contents of each of the components are identified by the COMPONENT argument of CMake's INSTALL command. These components can be annotated with user-friendly names and descriptions, inter-component dependencies, etc., and grouped in various ways to customize the resulting installer. See the cpack_add_* commands, described below, for more information about component-specific installations.<br /></p>
<p>Component-specific installation allows users to select specific sets of components to install during the install process. Installation components are identified by the COMPONENT argument of CMake's INSTALL commands, and should be further described by the following CPack commands:<br /></p>
<pre>  CPACK_COMPONENTS_ALL - The list of component to install.<br /></pre>
    <p><br /></p>
<p>The default value of this variable is computed by CPack and contains all components defined by the project. The user may set it to only include the specified components.<br /></p>
<pre>  CPACK_&lt;GENNAME&gt;_COMPONENT_INSTALL - Enable/Disable component install for<br />  CPack generator &lt;GENNAME&gt;.<br /></pre>
    <p><br /></p>
<p>Each CPack Generator (RPM, DEB, ARCHIVE, NSIS, DMG, etc...) has a legacy default behavior. e.g. RPM builds monolithic whereas NSIS builds component. One can change the default behavior by setting this variable to 0/1 or OFF/ON.<br /></p>
<pre>  CPACK_COMPONENTS_GROUPING - Specify how components are grouped for multi-package<br />  component-aware CPack generators.<br /></pre>
    <p><br /></p>
<p>Some generators like RPM or ARCHIVE family (TGZ, ZIP, ...) generates several packages files when asked for component packaging. They group the component differently depending on the value of this variable:<br /></p>
<pre>  - ONE_PER_GROUP (default): creates one package file per component group<br />  - ALL_COMPONENTS_IN_ONE : creates a single package with all (requested) component<br />  - IGNORE : creates one package per component, i.e. IGNORE component group<br /></pre>
    <p>One can specify different grouping for different CPack generator by using a CPACK_PROJECT_CONFIG_FILE.<br /></p>
<pre>  CPACK_COMPONENT_&lt;compName&gt;_DISPLAY_NAME - The name to be displayed for a component.<br />  CPACK_COMPONENT_&lt;compName&gt;_DESCRIPTION - The description of a component.<br />  CPACK_COMPONENT_&lt;compName&gt;_GROUP - The group of a component.<br />  CPACK_COMPONENT_&lt;compName&gt;_DEPENDS - The dependencies (list of components)<br />  on which this component depends.<br />  CPACK_COMPONENT_&lt;compName&gt;_REQUIRED - True is this component is required.<br /></pre>
    <p>cpack_add_component - Describes a CPack installation component named by the COMPONENT argument to a CMake INSTALL command.<br /></p>
<pre>  cpack_add_component(compname<br />                      [DISPLAY_NAME name]<br />                      [DESCRIPTION description]<br />                      [HIDDEN | REQUIRED | DISABLED ]<br />                      [GROUP group]<br />                      [DEPENDS comp1 comp2 ... ]<br />                      [INSTALL_TYPES type1 type2 ... ]<br />                      [DOWNLOADED]<br />                      [ARCHIVE_FILE filename])<br /></pre>
    <p><br /></p>
<p>The cmake_add_component command describes an installation component, which the user can opt to install or remove as part of the graphical installation process. compname is the name of the component, as provided to the COMPONENT argument of one or more CMake INSTALL commands.<br /></p>
<p>DISPLAY_NAME is the displayed name of the component, used in graphical installers to display the component name. This value can be any string.<br /></p>
<p>DESCRIPTION is an extended description of the component, used in graphical installers to give the user additional information about the component. Descriptions can span multiple lines using "\n" as the line separator. Typically, these descriptions should be no more than a few lines long.<br /></p>
<p>HIDDEN indicates that this component will be hidden in the graphical installer, so that the user cannot directly change whether it is installed or not.<br /></p>
<p>REQUIRED indicates that this component is required, and therefore will always be installed. It will be visible in the graphical installer, but it cannot be unselected. (Typically, required components are shown greyed out).<br /></p>
<p>DISABLED indicates that this component should be disabled (unselected) by default. The user is free to select this component for installation, unless it is also HIDDEN.<br /></p>
<p>DEPENDS lists the components on which this component depends. If this component is selected, then each of the components listed must also be selected. The dependency information is encoded within the installer itself, so that users cannot install inconsistent sets of components.<br /></p>
<p>GROUP names the component group of which this component is a part. If not provided, the component will be a standalone component, not part of any component group. Component groups are described with the cpack_add_component_group command, detailed below.<br /></p>
<p>INSTALL_TYPES lists the installation types of which this component is a part. When one of these installations types is selected, this component will automatically be selected. Installation types are described with the cpack_add_install_type command, detailed below.<br /></p>
<p>DOWNLOADED indicates that this component should be downloaded on-the-fly by the installer, rather than packaged in with the installer itself. For more information, see the cpack_configure_downloads command.<br /></p>
<p>ARCHIVE_FILE provides a name for the archive file created by CPack to be used for downloaded components. If not supplied, CPack will create a file with some name based on CPACK_PACKAGE_FILE_NAME and the name of the component. See cpack_configure_downloads for more information.<br /></p>
<p>cpack_add_component_group - Describes a group of related CPack installation components.<br /></p>
<pre>  cpack_add_component_group(groupname<br />                           [DISPLAY_NAME name]<br />                           [DESCRIPTION description]<br />                           [PARENT_GROUP parent]<br />                           [EXPANDED]<br />                           [BOLD_TITLE])<br /></pre>
    <p><br /></p>
<p>The cpack_add_component_group describes a group of installation components, which will be placed together within the listing of options. Typically, component groups allow the user to select/deselect all of the components within a single group via a single group-level option. Use component groups to reduce the complexity of installers with many options. groupname is an arbitrary name used to identify the group in the GROUP argument of the cpack_add_component command, which is used to place a component in a group. The name of the group must not conflict with the name of any component.<br /></p>
<p>DISPLAY_NAME is the displayed name of the component group, used in graphical installers to display the component group name. This value can be any string.<br /></p>
<p>DESCRIPTION is an extended description of the component group, used in graphical installers to give the user additional information about the components within that group. Descriptions can span multiple lines using "\n" as the line separator. Typically, these descriptions should be no more than a few lines long.<br /></p>
<p>PARENT_GROUP, if supplied, names the parent group of this group. Parent groups are used to establish a hierarchy of groups, providing an arbitrary hierarchy of groups.<br /></p>
<p>EXPANDED indicates that, by default, the group should show up as "expanded", so that the user immediately sees all of the components within the group. Otherwise, the group will initially show up as a single entry.<br /></p>
<p>BOLD_TITLE indicates that the group title should appear in bold, to call the user's attention to the group.<br /></p>
<p>cpack_add_install_type - Add a new installation type containing a set of predefined component selections to the graphical installer.<br /></p>
<pre>  cpack_add_install_type(typename<br />                         [DISPLAY_NAME name])<br /></pre>
    <p><br /></p>
<p>The cpack_add_install_type command identifies a set of preselected components that represents a common use case for an application. For example, a "Developer" install type might include an application along with its header and library files, while an "End user" install type might just include the application's executable. Each component identifies itself with one or more install types via the INSTALL_TYPES argument to cpack_add_component.<br /></p>
<p>DISPLAY_NAME is the displayed name of the install type, which will typically show up in a drop-down box within a graphical installer. This value can be any string.<br /></p>
<p>cpack_configure_downloads - Configure CPack to download selected components on-the-fly as part of the installation process.<br /></p>
<pre>  cpack_configure_downloads(site<br />                            [UPLOAD_DIRECTORY dirname]<br />                            [ALL]<br />                            [ADD_REMOVE|NO_ADD_REMOVE])<br /></pre>
    <p><br /></p>
<p>The cpack_configure_downloads command configures installation-time downloads of selected components. For each downloadable component, CPack will create an archive containing the contents of that component, which should be uploaded to the given site. When the user selects that component for installation, the installer will download and extract the component in place. This feature is useful for creating small installers that only download the requested components, saving bandwidth. Additionally, the installers are small enough that they will be installed as part of the normal installation process, and the "Change" button in Windows Add/Remove Programs control panel will allow one to add or remove parts of the application after the original installation. On Windows, the downloaded-components functionality requires the ZipDLL plug-in for NSIS, available at:<br /></p>
<pre>  <a href="http://nsis.sourceforge.net/ZipDLL_plug-in">http://nsis.sourceforge.net/ZipDLL_plug-in</a><br /></pre>
    <p><br /></p>
<p>On Mac OS X, installers that download components on-the-fly can only be built and installed on system using Mac OS X 10.5 or later.<br /></p>
<p>The site argument is a URL where the archives for downloadable components will reside, e.g., <a href="http://www.cmake.org/files/2.6.1/installer/">http://www.cmake.org/files/2.6.1/installer/</a> All of the archives produced by CPack should be uploaded to that location.<br /></p>
<p>UPLOAD_DIRECTORY is the local directory where CPack will create the various archives for each of the components. The contents of this directory should be uploaded to a location accessible by the URL given in the site argument. If omitted, CPack will use the directory CPackUploads inside the CMake binary directory to store the generated archives.<br /></p>
<p>The ALL flag indicates that all components be downloaded. Otherwise, only those components explicitly marked as DOWNLOADED or that have a specified ARCHIVE_FILE will be downloaded. Additionally, the ALL option implies ADD_REMOVE (unless NO_ADD_REMOVE is specified).<br /></p>
<p>ADD_REMOVE indicates that CPack should install a copy of the installer that can be called from Windows' Add/Remove Programs dialog (via the "Modify" button) to change the set of installed components. NO_ADD_REMOVE turns off this behavior. This option is ignored on Mac OS X.</p>

  </li>
  <li>
    <a name="module:CPackCygwin"></a><b><code>CPackCygwin</code></b>: Cygwin CPack generator (Cygwin).<br />
    <p>The following variable is specific to installers build on and/or for Cygwin:<br /></p>
<pre>   CPACK_CYGWIN_PATCH_NUMBER - The Cygwin patch number.<br />   FIXME: This documentation is incomplete.<br />   CPACK_CYGWIN_PATCH_FILE - The Cygwin patch file.<br />   FIXME: This documentation is incomplete.<br />   CPACK_CYGWIN_BUILD_SCRIPT - The Cygwin build script.<br />   FIXME: This documentation is incomplete.<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackDMG"></a><b><code>CPackDMG</code></b>: DragNDrop CPack generator (Mac OS X).<br />
    <p>The following variables are specific to the DragNDrop installers built on Mac OS X:<br /></p>
<pre>  CPACK_DMG_VOLUME_NAME - The volume name of the generated disk<br />  image. Defaults to CPACK_PACKAGE_FILE_NAME.<br /></pre>
    <p><br /></p>
<pre>  CPACK_DMG_FORMAT - The disk image format. Common values are UDRO<br />  (UDIF read-only), UDZO (UDIF zlib-compressed) or UDBZ (UDIF<br />  bzip2-compressed). Refer to hdiutil(1) for more information on<br />  other available formats.<br /></pre>
    <p><br /></p>
<pre>  CPACK_DMG_DS_STORE - Path to a custom DS_Store file. This .DS_Store<br />  file e.g. can be used to specify the Finder window<br />  position/geometry and layout (such as hidden toolbars, placement of the<br />  icons etc.). This file has to be generated by the Finder (either manually or<br />  through OSA-script) using a normal folder from which the .DS_Store<br />  file can then be extracted.<br /></pre>
    <p><br /></p>
<pre>  CPACK_DMG_BACKGROUND_IMAGE - Path to a background image file. This<br />  file will be used as the background for the Finder Window when the disk<br />  image is opened.  By default no background image is set. The background<br />  image is applied after applying the custom .DS_Store file.<br /></pre>
    <p><br /></p>
<pre>  CPACK_COMMAND_HDIUTIL - Path to the hdiutil(1) command used to<br />  operate on disk image files on Mac OS X. This variable can be used<br />  to override the automatically detected command (or specify its<br />  location if the auto-detection fails to find it.)<br /></pre>
    <p><br /></p>
<pre>  CPACK_COMMAND_SETFILE - Path to the SetFile(1) command used to set<br />  extended attributes on files and directories on Mac OS X. This<br />  variable can be used to override the automatically detected<br />  command (or specify its location if the auto-detection fails to<br />  find it.)<br /></pre>
    <p><br /></p>
<pre>  CPACK_COMMAND_REZ - Path to the Rez(1) command used to compile<br />  resources on Mac OS X. This variable can be used to override the<br />  automatically detected command (or specify its location if the<br />  auto-detection fails to find it.)<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackDeb"></a><b><code>CPackDeb</code></b>: The builtin (binary) CPack Deb generator (Unix only)<br />
    <p>CPackDeb may be used to create Deb package using CPack. CPackDeb is a CPack generator thus it uses the CPACK_XXX variables used by CPack : <a href="http://www.cmake.org/Wiki/CMake:CPackConfiguration.">http://www.cmake.org/Wiki/CMake:CPackConfiguration.</a> CPackDeb generator should work on any linux host but it will produce better deb package when Debian specific tools 'dpkg-xxx' are usable on the build system.<br /></p>
<p>CPackDeb has specific features which are controlled by the specifics CPACK_DEBIAN_XXX variables.You'll find a detailed usage on the wiki:<br /></p>
<pre>  <a href="http://www.cmake.org/Wiki/CMake:CPackPackageGenerators">http://www.cmake.org/Wiki/CMake:CPackPackageGenerators</a>#DEB_.28UNIX_only.29<br /></pre>
    <p>However as a handy reminder here comes the list of specific variables:<br /></p>
<p>CPACK_DEBIAN_PACKAGE_NAME<br /></p>
<pre>     Mandatory : YES<br />     Default   : CPACK_PACKAGE_NAME (lower case)<br />     The debian package summary<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_VERSION<br /></p>
<pre>     Mandatory : YES<br />     Default   : CPACK_PACKAGE_VERSION<br />     The debian package version<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_ARCHITECTURE<br /></p>
<pre>     Mandatory : YES<br />     Default   : Output of dpkg --print-architecture (or i386 if dpkg is not found)<br />     The debian package architecture<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_DEPENDS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     May be used to set deb dependencies.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_MAINTAINER<br /></p>
<pre>     Mandatory : YES<br />     Default   : CPACK_PACKAGE_CONTACT<br />     The debian package maintainer<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_DESCRIPTION<br /></p>
<pre>     Mandatory : YES<br />     Default   : CPACK_PACKAGE_DESCRIPTION_SUMMARY<br />     The debian package description<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_SECTION<br /></p>
<pre>     Mandatory : YES<br />     Default   : 'devel'<br />     The debian package section<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_PRIORITY<br /></p>
<pre>     Mandatory : YES<br />     Default   : 'optional'<br />     The debian package priority<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_HOMEPAGE<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     The URL of the web site for this package, preferably (when applicable) the<br />     site from which the original source can be obtained and any additional<br />     upstream documentation or information may be found.<br />     The content of this field is a simple URL without any surrounding<br />     characters such as &lt;&gt;.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_SHLIBDEPS<br /></p>
<pre>     Mandatory : NO<br />     Default   : OFF<br />     May be set to ON in order to use dpkg-shlibdeps to generate<br />     better package dependency list.<br />     You may need set CMAKE_INSTALL_RPATH toi appropriate value<br />     if you use this feature, because if you don't dpkg-shlibdeps<br />     may fail to find your own shared libs.<br />     See <a href="http://www.cmake.org/Wiki/CMake_RPATH_handling.">http://www.cmake.org/Wiki/CMake_RPATH_handling.</a><br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_DEBUG<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     May be set when invoking cpack in order to trace debug information<br />     during CPackDeb run.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_PREDEPENDS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     This field is like Depends, except that it also forces dpkg to complete installation of<br />     the packages named before even starting the installation of the package which declares<br />     the pre-dependency.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_ENHANCES<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     This field is similar to Suggests but works in the opposite direction.<br />     It is used to declare that a package can enhance the functionality of another package.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_BREAKS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     When one binary package declares that it breaks another, dpkg will refuse to allow the<br />     package which declares Breaks be installed unless the broken package is deconfigured first,<br />     and it will refuse to allow the broken package to be reconfigured.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_CONFLICTS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     When one binary package declares a conflict with another using a Conflicts field,<br />     dpkg will refuse to allow them to be installed on the system at the same time.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_PROVIDES<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     A virtual package is one which appears in the Provides control field of another package.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_REPLACES<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     Packages can declare in their control file that they should overwrite<br />     files in certain other packages, or completely replace other packages.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_RECOMMENDS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     Allows packages to declare a strong, but not absolute, dependency on other packages.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_SUGGESTS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     Allows packages to declare a suggested package install grouping.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     This variable allow advanced user to add custom script to the control.tar.gz<br />     Typical usage is for conffiles, postinst, postrm, prerm.<br />     Usage: set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA<br />            "${CMAKE_CURRENT_SOURCE_DIR/prerm;${CMAKE_CURRENT_SOURCE_DIR}/postrm")<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackNSIS"></a><b><code>CPackNSIS</code></b>: CPack NSIS generator specific options<br />
    <p><br /></p>
<p>The following variables are specific to the graphical installers built on Windows using the Nullsoft Installation System.<br /></p>
<pre>   CPACK_NSIS_INSTALL_ROOT - The default installation directory presented<br />   to the end user by the NSIS installer is under this root dir. The full<br />   directory presented to the end user is:<br />   ${CPACK_NSIS_INSTALL_ROOT}/${CPACK_PACKAGE_INSTALL_DIRECTORY}<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_MUI_ICON - An icon filename.<br />   The name of a *.ico file used as the main icon for the generated<br />   install program.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_MUI_UNIICON - An icon filename.<br />   The name of a *.ico file used as the main icon for the generated<br />   uninstall program.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_INSTALLER_MUI_ICON_CODE - undocumented.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS - Extra NSIS commands that<br />   will be added to the beginning of the install Section, before your<br />   install tree is available on the target system.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_EXTRA_INSTALL_COMMANDS - Extra NSIS commands that<br />   will be added to the end of the install Section, after your<br />   install tree is available on the target system.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS - Extra NSIS commands that will<br />   be added to the uninstall Section, before your install tree is<br />   removed from the target system.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_COMPRESSOR - The arguments that will be passed to the<br />   NSIS SetCompressor command.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL - Ask about uninstalling<br />   previous versions first.<br />   If this is set to "ON", then an installer will look for previous<br />   installed versions and if one is found, ask the user whether to<br />   uninstall it before proceeding with the install.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_MODIFY_PATH - Modify PATH toggle.<br />   If this is set to "ON", then an extra page<br />   will appear in the installer that will allow the user to choose<br />   whether the program directory should be added to the system PATH<br />   variable.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_DISPLAY_NAME - The display name string that appears in<br />   the Windows Add/Remove Program control panel<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_PACKAGE_NAME - The title displayed at the top of the<br />   installer.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_INSTALLED_ICON_NAME - A path to the executable that<br />   contains the installer icon.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_HELP_LINK - URL to a web site providing assistance in<br />   installing your application.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_URL_INFO_ABOUT - URL to a web site providing more<br />   information about your application.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_CONTACT - Contact information for questions and comments<br />   about the installation process.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_CREATE_ICONS_EXTRA - Additional NSIS commands for<br />   creating start menu shortcuts.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_DELETE_ICONS_EXTRA -Additional NSIS commands to<br />   uninstall start menu shortcuts.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_EXECUTABLES_DIRECTORY - Creating NSIS start menu links<br />   assumes that they are in 'bin' unless this variable is set.<br />   For example, you would set this to 'exec' if your executables are<br />   in an exec directory.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_MUI_FINISHPAGE_RUN - Specify an executable to add an option<br />   to run on the finish page of the NSIS installer.<br />   CPACK_NSIS_MENU_LINKS - Specify links in [application] menu.<br />   This should contain a list of pair "link" "link name". The link<br />   may be an URL or a path relative to installation prefix.<br />   Like:<br />     set(CPACK_NSIS_MENU_LINKS<br />         "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake.html" "CMake Help"<br />         "<a href="http://www.cmake.org">http://www.cmake.org</a>" "CMake Web Site")<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackPackageMaker"></a><b><code>CPackPackageMaker</code></b>: PackageMaker CPack generator (Mac OS X).<br />
    <p>The following variable is specific to installers built on Mac OS X using PackageMaker:<br /></p>
<pre>  CPACK_OSX_PACKAGE_VERSION - The version of Mac OS X that the<br />  resulting PackageMaker archive should be compatible with. Different<br />  versions of Mac OS X support different<br />  features. For example, CPack can only build component-based<br />  installers for Mac OS X 10.4 or newer, and can only build<br />  installers that download component son-the-fly for Mac OS X 10.5<br />  or newer. If left blank, this value will be set to the minimum<br />  version of Mac OS X that supports the requested features. Set this<br />  variable to some value (e.g., 10.4) only if you want to guarantee<br />  that your installer will work on that version of Mac OS X, and<br />  don't mind missing extra features available in the installer<br />  shipping with later versions of Mac OS X.<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackRPM"></a><b><code>CPackRPM</code></b>: The builtin (binary) CPack RPM generator (Unix only)<br />
    <p>CPackRPM may be used to create RPM package using CPack. CPackRPM is a CPack generator thus it uses the CPACK_XXX variables used by CPack : <a href="http://www.cmake.org/Wiki/CMake:CPackConfiguration">http://www.cmake.org/Wiki/CMake:CPackConfiguration</a><br /></p>
<p>However CPackRPM has specific features which are controlled by the specifics CPACK_RPM_XXX variables. CPackRPM is a component aware generator so when CPACK_RPM_COMPONENT_INSTALL is ON some more CPACK_RPM_&lt;ComponentName&gt;_XXXX variables may be used in order to have component specific values. Note however that &lt;componentName&gt; refers to the **grouping name**. This may be either a component name or a component GROUP name. Usually those vars correspond to RPM spec file entities, one may find information about spec files here <a href="http://www.rpm.org/wiki/Docs.">http://www.rpm.org/wiki/Docs.</a> You'll find a detailed usage of CPackRPM on the wiki:<br /></p>
<pre>  <a href="http://www.cmake.org/Wiki/CMake:CPackPackageGenerators">http://www.cmake.org/Wiki/CMake:CPackPackageGenerators</a>#RPM_.28Unix_Only.29<br /></pre>
    <p>However as a handy reminder here comes the list of specific variables:<br /></p>
<pre>  CPACK_RPM_PACKAGE_SUMMARY - The RPM package summary.<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_DESCRIPTION_SUMMARY<br />  CPACK_RPM_PACKAGE_NAME - The RPM package name.<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_NAME<br />  CPACK_RPM_PACKAGE_VERSION - The RPM package version.<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_VERSION<br />  CPACK_RPM_PACKAGE_ARCHITECTURE - The RPM package architecture.<br />     Mandatory : NO<br />     Default   : -<br />     This may be set to "noarch" if you<br />     know you are building a noarch package.<br />  CPACK_RPM_PACKAGE_RELEASE - The RPM package release.<br />     Mandatory : YES<br />     Default   : 1<br />     This is the numbering of the RPM package<br />     itself, i.e. the version of the packaging and not the version of the<br />     content (see CPACK_RPM_PACKAGE_VERSION). One may change the default<br />     value if the previous packaging was buggy and/or you want to put here<br />     a fancy Linux distro specific numbering.<br />  CPACK_RPM_PACKAGE_LICENSE - The RPM package license policy.<br />     Mandatory : YES<br />     Default   : "unknown"<br />  CPACK_RPM_PACKAGE_GROUP - The RPM package group.<br />     Mandatory : YES<br />     Default   : "unknown"<br />  CPACK_RPM_PACKAGE_VENDOR - The RPM package vendor.<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_VENDOR if set or "unknown"<br />  CPACK_RPM_PACKAGE_URL - The projects URL.<br />     Mandatory : NO<br />     Default   : -<br />  CPACK_RPM_PACKAGE_DESCRIPTION - RPM package description.<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_DESCRIPTION_FILE if set or "no package description available"<br />  CPACK_RPM_COMPRESSION_TYPE - RPM compression type.<br />     Mandatory : NO<br />     Default   : -<br />     May be used to override RPM compression type to be used<br />     to build the RPM. For example some Linux distribution now default<br />     to lzma or xz compression whereas older cannot use such RPM.<br />     Using this one can enforce compression type to be used.<br />     Possible value are: lzma, xz, bzip2 and gzip.<br />  CPACK_RPM_PACKAGE_REQUIRES - RPM spec requires field.<br />     Mandatory : NO<br />     Default   : -<br />     May be used to set RPM dependencies (requires).<br />     Note that you must enclose the complete requires string between quotes,<br />     for example:<br />     set(CPACK_RPM_PACKAGE_REQUIRES "python &gt;= 2.5.0, cmake &gt;= 2.8")<br />     The required package list of an RPM file could be printed with<br />     rpm -qp --requires file.rpm<br />  CPACK_RPM_PACKAGE_SUGGESTS - RPM spec suggest field.<br />     Mandatory : NO<br />     Default   : -<br />     May be used to set weak RPM dependencies (suggests).<br />     Note that you must enclose the complete requires string between quotes.<br />  CPACK_RPM_PACKAGE_PROVIDES - RPM spec provides field.<br />     Mandatory : NO<br />     Default   : -<br />     May be used to set RPM dependencies (provides).<br />     The provided package list of an RPM file could be printed with<br />     rpm -qp --provides file.rpm<br />  CPACK_RPM_PACKAGE_OBSOLETES - RPM spec obsoletes field.<br />     Mandatory : NO<br />     Default   : -<br />     May be used to set RPM packages that are obsoleted by this one.<br />  CPACK_RPM_PACKAGE_RELOCATABLE - build a relocatable RPM.<br />     Mandatory : NO<br />     Default   : CPACK_PACKAGE_RELOCATABLE<br />     If this variable is set to TRUE or ON CPackRPM will try<br />     to build a relocatable RPM package. A relocatable RPM may<br />     be installed using rpm --prefix or --relocate in order to<br />     install it at an alternate place see rpm(8).<br />     Note that currently this may fail if CPACK_SET_DESTDIR is set to ON.<br />     If CPACK_SET_DESTDIR is set then you will get a warning message<br />     but if there is file installed with absolute path you'll get<br />     unexpected behavior.<br />  CPACK_RPM_SPEC_INSTALL_POST - [deprecated].<br />     Mandatory : NO<br />     Default   : -<br />     This way of specifying post-install script is deprecated use<br />     CPACK_RPM_POST_INSTALL_SCRIPT_FILE<br />     May be used to set an RPM post-install command inside the spec file.<br />     For example setting it to "/bin/true" may be used to prevent<br />     rpmbuild to strip binaries.<br />  CPACK_RPM_SPEC_MORE_DEFINE - RPM extended spec definitions lines.<br />     Mandatory : NO<br />     Default   : -<br />     May be used to add any %define lines to the generated spec file.<br />  CPACK_RPM_PACKAGE_DEBUG - Toggle CPackRPM debug output.<br />     Mandatory : NO<br />     Default   : -<br />     May be set when invoking cpack in order to trace debug information<br />     during CPack RPM run. For example you may launch CPack like this<br />     cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM<br />  CPACK_RPM_USER_BINARY_SPECFILE - A user provided spec file.<br />     Mandatory : NO<br />     Default   : -<br />     May be set by the user in order to specify a USER binary spec file<br />     to be used by CPackRPM instead of generating the file.<br />     The specified file will be processed by configure_file( @ONLY).<br />     One can provide a component specific file by setting<br />     CPACK_RPM_&lt;componentName&gt;_USER_BINARY_SPECFILE.<br />  CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE - Spec file template.<br />     Mandatory : NO<br />     Default   : -<br />     If set CPack will generate a template for USER specified binary<br />     spec file and stop with an error. For example launch CPack like this<br />     cpack -D CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE=1 -G RPM<br />     The user may then use this file in order to hand-craft is own<br />     binary spec file which may be used with CPACK_RPM_USER_BINARY_SPECFILE.<br />  CPACK_RPM_PRE_INSTALL_SCRIPT_FILE<br />  CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE<br />     Mandatory : NO<br />     Default   : -<br />     May be used to embed a pre (un)installation script in the spec file.<br />     The refered script file(s) will be read and directly<br />     put after the %pre or %preun section<br />     If CPACK_RPM_COMPONENT_INSTALL is set to ON the (un)install script for<br />     each component can be overridden with<br />     CPACK_RPM_&lt;COMPONENT&gt;_PRE_INSTALL_SCRIPT_FILE and<br />     CPACK_RPM_&lt;COMPONENT&gt;_PRE_UNINSTALL_SCRIPT_FILE<br />     One may verify which scriptlet has been included with<br />      rpm -qp --scripts  package.rpm<br />  CPACK_RPM_POST_INSTALL_SCRIPT_FILE<br />  CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE<br />     Mandatory : NO<br />     Default   : -<br />     May be used to embed a post (un)installation script in the spec file.<br />     The refered script file(s) will be read and directly<br />     put after the %post or %postun section<br />     If CPACK_RPM_COMPONENT_INSTALL is set to ON the (un)install script for<br />     each component can be overridden with<br />     CPACK_RPM_&lt;COMPONENT&gt;_POST_INSTALL_SCRIPT_FILE and<br />     CPACK_RPM_&lt;COMPONENT&gt;_POST_UNINSTALL_SCRIPT_FILE<br />     One may verify which scriptlet has been included with<br />      rpm -qp --scripts  package.rpm<br />  CPACK_RPM_USER_FILELIST<br />  CPACK_RPM_&lt;COMPONENT&gt;_USER_FILELIST<br />     Mandatory : NO<br />     Default   : -<br />     May be used to explicitly specify %(&lt;directive&gt;) file line<br />     in the spec file. Like %config(noreplace) or any other directive<br />     that be found in the %files section. Since CPackRPM is generating<br />     the list of files (and directories) the user specified files of<br />     the CPACK_RPM_&lt;COMPONENT&gt;_USER_FILELIST list will be removed from the generated list.<br />  CPACK_RPM_CHANGELOG_FILE - RPM changelog file.<br />     Mandatory : NO<br />     Default   : -<br />     May be used to embed a changelog in the spec file.<br />     The refered file will be read and directly put after the %changelog<br />     section.<br />  CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST - list of path to be excluded.<br />     Mandatory : NO<br />     Default   : /etc /etc/init.d /usr /usr/share /usr/share/doc /usr/bin /usr/lib /usr/lib64 /usr/include<br />     May be used to exclude path (directories or files) from the auto-generated<br />     list of paths discovered by CPack RPM. The defaut value contains a reasonable<br />     set of values if the variable is not defined by the user. If the variable<br />     is defined by the user then CPackRPM will NOT any of the default path.<br />     If you want to add some path to the default list then you can use<br />     CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION variable.<br />  CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION - additional list of path to be excluded.<br />     Mandatory : NO<br />     Default   : -<br />     May be used to add more exclude path (directories or files) from the initial<br />     default list of excluded paths. See CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST.<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackWIX"></a><b><code>CPackWIX</code></b>: CPack WiX generator specific options<br />
    <p><br /></p>
<p>The following variables are specific to the installers built on Windows using WiX.<br /></p>
<pre>  CPACK_WIX_UPGRADE_GUID - Upgrade GUID (Product/@UpgradeCode)<br /></pre>
    <p><br /></p>
<p>Will be automatically generated unless explicitly provided.<br /></p>
<p>It should be explicitly set to a constant generated gloabally unique identifier (GUID) to allow your installers to replace existing installations that use the same GUID.<br /></p>
<p>You may for example explicitly set this variable in your CMakeLists.txt to the value that has been generated per default. You should not use GUIDs that you did not generate yourself or which may belong to other projects.<br /></p>
<p>A GUID shall have the following fixed length syntax: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX<br /></p>
<pre>  (each X represents an uppercase hexadecimal digit)<br />  CPACK_WIX_PRODUCT_GUID - Product GUID (Product/@Id)<br /></pre>
    <p><br /></p>
<p>Will be automatically generated unless explicitly provided.<br /></p>
<p>If explicitly provided this will set the Product Id of your installer.<br /></p>
<p>The installer will abort if it detects a pre-existing installation that uses the same GUID.<br /></p>
<p>The GUID shall use the syntax described for CPACK_WIX_UPGRADE_GUID.<br /></p>
<pre>  CPACK_WIX_LICENSE_RTF - RTF License File<br /></pre>
    <p><br /></p>
<p>If CPACK_RESOURCE_FILE_LICENSE has an .rtf extension it is used as-is.<br /></p>
<p>If CPACK_RESOURCE_FILE_LICENSE has an .txt extension it is implicitly converted to RTF by the WiX Generator.<br /></p>
<p>With CPACK_WIX_LICENSE_RTF you can override the license file used by the WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported format or the .txt -&gt; .rtf conversion does not work as expected.<br /></p>
<p><br /></p>
<p>CPACK_WIX_PRODUCT_ICON - The Icon shown next to the program name in Add/Remove programs.<br /></p>
<p>If set, this icon is used in place of the default icon.<br /></p>
<p><br /></p>
<p>CPACK_WIX_UI_BANNER - The bitmap will appear at the top of all installer pages other than the welcome and completion dialogs.<br /></p>
<p>If set, this image will replace the default banner image.<br /></p>
<p>This image must be 493 by 58 pixels.<br /></p>
<p><br /></p>
<p>CPACK_WIX_UI_DIALOG - Background bitmap used on the welcome and completion dialogs.<br /></p>
<p>If this variable is set, the installer will replace the default dialog image.<br /></p>
<p>This image must be 493 by 312 pixels.<br /></p>
<p><br /></p>
<p>CPACK_WIX_PROGRAM_MENU_FOLDER - Start menu folder name for launcher.<br /></p>
<p>If this variable is not set, it will be initialized with CPACK_PACKAGE_NAME<br /></p>
<p>CPACK_WIX_CULTURES - Language(s) of the installer<br /></p>
<p>Languages are compiled into the WixUI extension library. To use them, simply provide the name of the culture.  If you specify more than one culture identifier in a comma or semicolon delimited list, the first one that is found will be used.  You can find a list of supported languages at: <a href="http://wix.sourceforge.net/manual-wix3/WixUI_localization.htm">http://wix.sourceforge.net/manual-wix3/WixUI_localization.htm</a><br /></p>
<p>CPACK_WIX_TEMPLATE - Template file for WiX generation<br /></p>
<p>If this variable is set, the specified template will be used to generate the WiX wxs file. This should be used if further customization of the output is required.<br /></p>
<p>If this variable is not set, the default MSI template included with CMake will be used.<br /></p>

  </li>
  <li>
    <a name="module:CTest"></a><b><code>CTest</code></b>: Configure a project for testing with CTest/CDash<br />
    <p>Include this module in the top CMakeLists.txt file of a project to enable testing with CTest and dashboard submissions to CDash:<br /></p>
<pre>   project(MyProject)<br />   ...<br />   include(CTest)<br /></pre>
    <p>The module automatically creates a BUILD_TESTING option that selects whether to enable testing support (ON by default).  After including the module, use code like<br /></p>
<pre>   if(BUILD_TESTING)<br />     # ... CMake code to create tests ...<br />   endif()<br /></pre>
    <p>to creating tests when testing is enabled.<br /></p>
<p>To enable submissions to a CDash server, create a CTestConfig.cmake file at the top of the project with content such as<br /></p>
<pre>   set(CTEST_PROJECT_NAME "MyProject")<br />   set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")<br />   set(CTEST_DROP_METHOD "http")<br />   set(CTEST_DROP_SITE "my.cdash.org")<br />   set(CTEST_DROP_LOCATION "/submit.php?project=MyProject")<br />   set(CTEST_DROP_SITE_CDASH TRUE)<br /></pre>
    <p>(the CDash server can provide the file to a project administrator who configures 'MyProject'). Settings in the config file are shared by both this CTest module and the CTest command-line tool's dashboard script mode (ctest -S).<br /></p>
<p>While building a project for submission to CDash, CTest scans the build output for errors and warnings and reports them with surrounding context from the build log.  This generic approach works for all build tools, but does not give details about the command invocation that produced a given problem.  One may get more detailed reports by adding<br /></p>
<pre>   set(CTEST_USE_LAUNCHERS 1)<br /></pre>
    <p>to the CTestConfig.cmake file.  When this option is enabled, the CTest module tells CMake's Makefile generators to invoke every command in the generated build system through a CTest launcher program.  (Currently the CTEST_USE_LAUNCHERS option is ignored on non-Makefile generators.)  During a manual build each launcher transparently runs the command it wraps.  During a CTest-driven build for submission to CDash each launcher reports detailed information when its command fails or warns. (Setting CTEST_USE_LAUNCHERS in CTestConfig.cmake is convenient, but also adds the launcher overhead even for manual builds.  One may instead set it in a CTest dashboard script and add it to the CMake cache for the build tree.)</p>

  </li>
  <li>
    <a name="module:CTestScriptMode"></a><b><code>CTestScriptMode</code></b>:  <br />
    <p>This file is read by ctest in script mode (-S)</p>

  </li>
  <li>
    <a name="module:CTestUseLaunchers"></a><b><code>CTestUseLaunchers</code></b>: Set the RULE_LAUNCH_* global properties when CTEST_USE_LAUNCHERS is on.<br />
    <p>CTestUseLaunchers is automatically included when you include(CTest). However, it is split out into its own module file so projects can use the CTEST_USE_LAUNCHERS functionality independently.<br /></p>
<p>To use launchers, set CTEST_USE_LAUNCHERS to ON in a ctest -S dashboard script, and then also set it in the cache of the configured project. Both cmake and ctest need to know the value of it for the launchers to work properly. CMake needs to know in order to generate proper build rules, and ctest, in order to produce the proper error and warning analysis.<br /></p>
<p>For convenience, you may set the ENV variable CTEST_USE_LAUNCHERS_DEFAULT in your ctest -S script, too. Then, as long as your CMakeLists uses include(CTest) or include(CTestUseLaunchers), it will use the value of the ENV variable to initialize a CTEST_USE_LAUNCHERS cache variable. This cache variable initialization only occurs if CTEST_USE_LAUNCHERS is not already defined.</p>

  </li>
  <li>
    <a name="module:CheckCCompilerFlag"></a><b><code>CheckCCompilerFlag</code></b>: Check whether the C compiler supports a given flag.<br />
    <p>CHECK_C_COMPILER_FLAG(&lt;flag&gt; &lt;var&gt;)<br /></p>
<pre>  &lt;flag&gt; - the compiler flag<br />  &lt;var&gt;  - variable to store the result<br /></pre>
    <p>This internally calls the check_c_source_compiles macro and sets CMAKE_REQUIRED_DEFINITIONS to &lt;flag&gt;. See help for CheckCSourceCompiles for a listing of variables that can otherwise modify the build. The result only tells that the compiler does not give an error message when it encounters the flag. If the flag has any effect or even a specific one is beyond the scope of this module.</p>

  </li>
  <li>
    <a name="module:CheckCSourceCompiles"></a><b><code>CheckCSourceCompiles</code></b>: Check if given C source compiles and links into an executable<br />
    <p>CHECK_C_SOURCE_COMPILES(&lt;code&gt; &lt;var&gt; [FAIL_REGEX &lt;fail-regex&gt;])<br /></p>
<pre>  &lt;code&gt;       - source code to try to compile, must define 'main'<br />  &lt;var&gt;        - variable to store whether the source code compiled<br />  &lt;fail-regex&gt; - fail if test output matches this regex<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckCSourceRuns"></a><b><code>CheckCSourceRuns</code></b>: Check if the given C source code compiles and runs.<br />
    <p>CHECK_C_SOURCE_RUNS(&lt;code&gt; &lt;var&gt;)<br /></p>
<pre>  &lt;code&gt;   - source code to try to compile<br />  &lt;var&gt;    - variable to store the result<br />             (1 for success, empty for failure)<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckCXXCompilerFlag"></a><b><code>CheckCXXCompilerFlag</code></b>: Check whether the CXX compiler supports a given flag.<br />
    <p>CHECK_CXX_COMPILER_FLAG(&lt;flag&gt; &lt;var&gt;)<br /></p>
<pre>  &lt;flag&gt; - the compiler flag<br />  &lt;var&gt;  - variable to store the result<br /></pre>
    <p>This internally calls the check_cxx_source_compiles macro and sets CMAKE_REQUIRED_DEFINITIONS to &lt;flag&gt;. See help for CheckCXXSourceCompiles for a listing of variables that can otherwise modify the build. The result only tells that the compiler does not give an error message when it encounters the flag. If the flag has any effect or even a specific one is beyond the scope of this module.</p>

  </li>
  <li>
    <a name="module:CheckCXXSourceCompiles"></a><b><code>CheckCXXSourceCompiles</code></b>: Check if given C++ source compiles and links into an executable<br />
    <p>CHECK_CXX_SOURCE_COMPILES(&lt;code&gt; &lt;var&gt; [FAIL_REGEX &lt;fail-regex&gt;])<br /></p>
<pre>  &lt;code&gt;       - source code to try to compile, must define 'main'<br />  &lt;var&gt;        - variable to store whether the source code compiled<br />  &lt;fail-regex&gt; - fail if test output matches this regex<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckCXXSourceRuns"></a><b><code>CheckCXXSourceRuns</code></b>: Check if the given C++ source code compiles and runs.<br />
    <p>CHECK_CXX_SOURCE_RUNS(&lt;code&gt; &lt;var&gt;)<br /></p>
<pre>  &lt;code&gt;   - source code to try to compile<br />  &lt;var&gt;    - variable to store the result<br />             (1 for success, empty for failure)<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckCXXSymbolExists"></a><b><code>CheckCXXSymbolExists</code></b>: Check if a symbol exists as a function, variable, or macro in C++<br />
    <p>CHECK_CXX_SYMBOL_EXISTS(&lt;symbol&gt; &lt;files&gt; &lt;variable&gt;)<br /></p>
<p>Check that the &lt;symbol&gt; is available after including given header &lt;files&gt; and store the result in a &lt;variable&gt;.  Specify the list of files in one argument as a semicolon-separated list. CHECK_CXX_SYMBOL_EXISTS() can be used to check in C++ files, as opposed to CHECK_SYMBOL_EXISTS(), which works only for C.<br /></p>
<p>If the header files define the symbol as a macro it is considered available and assumed to work.  If the header files declare the symbol as a function or variable then the symbol must also be available for linking.  If the symbol is a type or enum value it will not be recognized (consider using CheckTypeSize or CheckCSourceCompiles).<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckFortranFunctionExists"></a><b><code>CheckFortranFunctionExists</code></b>: macro which checks if the Fortran function exists<br />
    <p>CHECK_FORTRAN_FUNCTION_EXISTS(FUNCTION VARIABLE)<br /></p>
<pre>  FUNCTION - the name of the Fortran function<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckFunctionExists"></a><b><code>CheckFunctionExists</code></b>: Check if a C function can be linked<br />
    <p>CHECK_FUNCTION_EXISTS(&lt;function&gt; &lt;variable&gt;)<br /></p>
<p>Check that the &lt;function&gt; is provided by libraries on the system and store the result in a &lt;variable&gt;.  This does not verify that any system header file declares the function, only that it can be found at link time (consider using CheckSymbolExists).<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckIncludeFile"></a><b><code>CheckIncludeFile</code></b>: macro which checks the include file exists.<br />
    <p>CHECK_INCLUDE_FILE(INCLUDE VARIABLE)<br /></p>
<pre>  INCLUDE  - name of include file<br />  VARIABLE - variable to return result<br /></pre>
    <p><br /></p>
<p>an optional third argument is the CFlags to add to the compile line or you can use CMAKE_REQUIRED_FLAGS<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:CheckIncludeFileCXX"></a><b><code>CheckIncludeFileCXX</code></b>: Check if the include file exists.<br />
    <pre>  CHECK_INCLUDE_FILE_CXX(INCLUDE VARIABLE)<br /></pre>
    <p><br /></p>
<pre>  INCLUDE  - name of include file<br />  VARIABLE - variable to return result<br /></pre>
    <p><br /></p>
<p>An optional third argument is the CFlags to add to the compile line or you can use CMAKE_REQUIRED_FLAGS.<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:CheckIncludeFiles"></a><b><code>CheckIncludeFiles</code></b>: Check if the files can be included<br />
    <p><br /></p>
<p>CHECK_INCLUDE_FILES(INCLUDE VARIABLE)<br /></p>
<pre>  INCLUDE  - list of files to include<br />  VARIABLE - variable to return result<br /></pre>
    <p><br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckLanguage"></a><b><code>CheckLanguage</code></b>: Check if a language can be enabled<br />
    <p>Usage:<br /></p>
<pre>  check_language(&lt;lang&gt;)<br /></pre>
    <p>where &lt;lang&gt; is a language that may be passed to enable_language() such as "Fortran".  If CMAKE_&lt;lang&gt;_COMPILER is already defined the check does nothing.  Otherwise it tries enabling the language in a test project.  The result is cached in CMAKE_&lt;lang&gt;_COMPILER as the compiler that was found, or NOTFOUND if the language cannot be enabled.<br /></p>
<p>Example:<br /></p>
<pre>  check_language(Fortran)<br />  if(CMAKE_Fortran_COMPILER)<br />    enable_language(Fortran)<br />  else()<br />    message(STATUS "No Fortran support")<br />  endif()<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckLibraryExists"></a><b><code>CheckLibraryExists</code></b>: Check if the function exists.<br />
    <p>CHECK_LIBRARY_EXISTS (LIBRARY FUNCTION LOCATION VARIABLE)<br /></p>
<pre>  LIBRARY  - the name of the library you are looking for<br />  FUNCTION - the name of the function<br />  LOCATION - location where the library should be found<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckPrototypeDefinition"></a><b><code>CheckPrototypeDefinition</code></b>: Check if the protoype we expect is correct.<br />
    <p>check_prototype_definition(FUNCTION PROTOTYPE RETURN HEADER VARIABLE)<br /></p>
<pre>  FUNCTION - The name of the function (used to check if prototype exists)<br />  PROTOTYPE- The prototype to check.<br />  RETURN - The return value of the function.<br />  HEADER - The header files required.<br />  VARIABLE - The variable to store the result.<br /></pre>
    <p>Example:<br /></p>
<pre>  check_prototype_definition(getpwent_r<br />   "struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)"<br />   "NULL"<br />   "unistd.h;pwd.h"<br />   SOLARIS_GETPWENT_R)<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckStructHasMember"></a><b><code>CheckStructHasMember</code></b>: Check if the given struct or class has the specified member variable<br />
    <p>CHECK_STRUCT_HAS_MEMBER (STRUCT MEMBER HEADER VARIABLE)<br /></p>
<pre>  STRUCT - the name of the struct or class you are interested in<br />  MEMBER - the member which existence you want to check<br />  HEADER - the header(s) where the prototype should be declared<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br /></pre>
    <p><br /></p>
<p>Example: CHECK_STRUCT_HAS_MEMBER("struct timeval" tv_sec sys/select.h HAVE_TIMEVAL_TV_SEC)</p>

  </li>
  <li>
    <a name="module:CheckSymbolExists"></a><b><code>CheckSymbolExists</code></b>: Check if a symbol exists as a function, variable, or macro<br />
    <p>CHECK_SYMBOL_EXISTS(&lt;symbol&gt; &lt;files&gt; &lt;variable&gt;)<br /></p>
<p>Check that the &lt;symbol&gt; is available after including given header &lt;files&gt; and store the result in a &lt;variable&gt;.  Specify the list of files in one argument as a semicolon-separated list.<br /></p>
<p>If the header files define the symbol as a macro it is considered available and assumed to work.  If the header files declare the symbol as a function or variable then the symbol must also be available for linking.  If the symbol is a type or enum value it will not be recognized (consider using CheckTypeSize or CheckCSourceCompiles). If the check needs to be done in C++, consider using CHECK_CXX_SYMBOL_EXISTS(), which does the same as CHECK_SYMBOL_EXISTS(), but in C++.<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckTypeSize"></a><b><code>CheckTypeSize</code></b>: Check sizeof a type<br />
    <pre>  CHECK_TYPE_SIZE(TYPE VARIABLE [BUILTIN_TYPES_ONLY])<br /></pre>
    <p>Check if the type exists and determine its size. On return, "HAVE_${VARIABLE}" holds the existence of the type, and "${VARIABLE}" holds one of the following:<br /></p>
<pre>   &lt;size&gt; = type has non-zero size &lt;size&gt;<br />   "0"    = type has arch-dependent size (see below)<br />   ""     = type does not exist<br /></pre>
    <p>Furthermore, the variable "${VARIABLE}_CODE" holds C preprocessor code to define the macro "${VARIABLE}" to the size of the type, or leave the macro undefined if the type does not exist.<br /></p>
<p>The variable "${VARIABLE}" may be "0" when CMAKE_OSX_ARCHITECTURES has multiple architectures for building OS X universal binaries. This indicates that the type size varies across architectures. In this case "${VARIABLE}_CODE" contains C preprocessor tests mapping from each architecture macro to the corresponding type size. The list of architecture macros is stored in "${VARIABLE}_KEYS", and the value for each key is stored in "${VARIABLE}-${KEY}".<br /></p>
<p>If the BUILTIN_TYPES_ONLY option is not given, the macro checks for headers &lt;sys/types.h&gt;, &lt;stdint.h&gt;, and &lt;stddef.h&gt;, and saves results in HAVE_SYS_TYPES_H, HAVE_STDINT_H, and HAVE_STDDEF_H.  The type size check automatically includes the available headers, thus supporting checks of types defined in the headers.<br /></p>
<p>Despite the name of the macro you may use it to check the size of more complex expressions, too. To check e.g. for the size of a struct member you can do something like this:<br /></p>
<pre>  check_type_size("((struct something*)0)-&gt;member" SIZEOF_MEMBER)<br /></pre>
    <p><br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br />  CMAKE_EXTRA_INCLUDE_FILES = list of extra headers to include<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckVariableExists"></a><b><code>CheckVariableExists</code></b>: Check if the variable exists.<br />
    <pre>  CHECK_VARIABLE_EXISTS(VAR VARIABLE)<br /></pre>
    <p><br /></p>
<pre>  VAR      - the name of the variable<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>
<p>This macro is only for C variables.<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:Dart"></a><b><code>Dart</code></b>: Configure a project for testing with CTest or old Dart Tcl Client<br />
    <p>This file is the backwards-compatibility version of the CTest module. It supports using the old Dart 1 Tcl client for driving dashboard submissions as well as testing with CTest.  This module should be included in the CMakeLists.txt file at the top of a project.  Typical usage:<br /></p>
<pre>  include(Dart)<br />  if(BUILD_TESTING)<br />    # ... testing related CMake code ...<br />  endif()<br /></pre>
    <p>The BUILD_TESTING option is created by the Dart module to determine whether testing support should be enabled.  The default is ON.</p>

  </li>
  <li>
    <a name="module:DeployQt4"></a><b><code>DeployQt4</code></b>: Functions to help assemble a standalone Qt4 executable.<br />
    <p>A collection of CMake utility functions useful for deploying Qt4 executables.<br /></p>
<p>The following functions are provided by this module:<br /></p>
<pre>   write_qt4_conf<br />   resolve_qt4_paths<br />   fixup_qt4_executable<br />   install_qt4_plugin_path<br />   install_qt4_plugin<br />   install_qt4_executable<br /></pre>
    <p>Requires CMake 2.6 or greater because it uses function and PARENT_SCOPE. Also depends on BundleUtilities.cmake.<br /></p>
<pre>  WRITE_QT4_CONF(&lt;qt_conf_dir&gt; &lt;qt_conf_contents&gt;)<br /></pre>
    <p>Writes a qt.conf file with the &lt;qt_conf_contents&gt; into &lt;qt_conf_dir&gt;.<br /></p>
<pre>  RESOLVE_QT4_PATHS(&lt;paths_var&gt; [&lt;executable_path&gt;])<br /></pre>
    <p>Loop through &lt;paths_var&gt; list and if any don't exist resolve them relative to the &lt;executable_path&gt; (if supplied) or the CMAKE_INSTALL_PREFIX.<br /></p>
<pre>  FIXUP_QT4_EXECUTABLE(&lt;executable&gt; [&lt;qtplugins&gt; &lt;libs&gt; &lt;dirs&gt; &lt;plugins_dir&gt; &lt;request_qt_conf&gt;])<br /></pre>
    <p>Copies Qt plugins, writes a Qt configuration file (if needed) and fixes up a Qt4 executable using BundleUtilities so it is standalone and can be drag-and-drop copied to another machine as long as all of the system libraries are compatible.<br /></p>
<p>&lt;executable&gt; should point to the executable to be fixed-up.<br /></p>
<p>&lt;qtplugins&gt; should contain a list of the names or paths of any Qt plugins to be installed.<br /></p>
<p>&lt;libs&gt; will be passed to BundleUtilities and should be a list of any already installed plugins, libraries or executables to also be fixed-up.<br /></p>
<p>&lt;dirs&gt; will be passed to BundleUtilities and should contain and directories to be searched to find library dependencies.<br /></p>
<p>&lt;plugins_dir&gt; allows an custom plugins directory to be used.<br /></p>
<p>&lt;request_qt_conf&gt; will force a qt.conf file to be written even if not needed.<br /></p>
<pre>  INSTALL_QT4_PLUGIN_PATH(plugin executable copy installed_plugin_path_var &lt;plugins_dir&gt; &lt;component&gt; &lt;configurations&gt;)<br /></pre>
    <p>Install (or copy) a resolved &lt;plugin&gt; to the default plugins directory (or &lt;plugins_dir&gt;) relative to &lt;executable&gt; and store the result in &lt;installed_plugin_path_var&gt;.<br /></p>
<p>If &lt;copy&gt; is set to TRUE then the plugins will be copied rather than installed. This is to allow this module to be used at CMake time rather than install time.<br /></p>
<p>If &lt;component&gt; is set then anything installed will use this COMPONENT.<br /></p>
<pre>  INSTALL_QT4_PLUGIN(plugin executable copy installed_plugin_path_var &lt;plugins_dir&gt; &lt;component&gt;)<br /></pre>
    <p>Install (or copy) an unresolved &lt;plugin&gt; to the default plugins directory (or &lt;plugins_dir&gt;) relative to &lt;executable&gt; and store the result in &lt;installed_plugin_path_var&gt;. See documentation of INSTALL_QT4_PLUGIN_PATH.<br /></p>
<pre>  INSTALL_QT4_EXECUTABLE(&lt;executable&gt; [&lt;qtplugins&gt; &lt;libs&gt; &lt;dirs&gt; &lt;plugins_dir&gt; &lt;request_qt_conf&gt; &lt;component&gt;])<br /></pre>
    <p>Installs Qt plugins, writes a Qt configuration file (if needed) and fixes up a Qt4 executable using BundleUtilities so it is standalone and can be drag-and-drop copied to another machine as long as all of the system libraries are compatible. The executable will be fixed-up at install time. &lt;component&gt; is the COMPONENT used for bundle fixup and plugin installation. See documentation of FIXUP_QT4_BUNDLE.</p>

  </li>
  <li>
    <a name="module:Documentation"></a><b><code>Documentation</code></b>: DocumentationVTK.cmake<br />
    <p>This file provides support for the VTK documentation framework. It relies on several tools (Doxygen, Perl, etc).</p>

  </li>
  <li>
    <a name="module:ExternalData"></a><b><code>ExternalData</code></b>: Manage data files stored outside source tree<br />
    <p>Use this module to unambiguously reference data files stored outside the source tree and fetch them at build time from arbitrary local and remote content-addressed locations.  Functions provided by this module recognize arguments with the syntax "DATA{&lt;name&gt;}" as references to external data, replace them with full paths to local copies of those data, and create build rules to fetch and update the local copies.<br /></p>
<p>The DATA{} syntax is literal and the &lt;name&gt; is a full or relative path within the source tree.  The source tree must contain either a real data file at &lt;name&gt; or a "content link" at &lt;name&gt;&lt;ext&gt; containing a hash of the real file using a hash algorithm corresponding to &lt;ext&gt;.  For example, the argument "DATA{img.png}" may be satisfied by either a real "img.png" file in the current source directory or a "img.png.md5" file containing its MD5 sum.<br /></p>
<p>The 'ExternalData_Expand_Arguments' function evaluates DATA{} references in its arguments and constructs a new list of arguments:<br /></p>
<pre>  ExternalData_Expand_Arguments(<br />    &lt;target&gt;   # Name of data management target<br />    &lt;outVar&gt;   # Output variable<br />    [args...]  # Input arguments, DATA{} allowed<br />    )<br /></pre>
    <p>It replaces each DATA{} reference in an argument with the full path of a real data file on disk that will exist after the &lt;target&gt; builds.<br /></p>
<p>The 'ExternalData_Add_Test' function wraps around the CMake add_test() command but supports DATA{} references in its arguments:<br /></p>
<pre>  ExternalData_Add_Test(<br />    &lt;target&gt;   # Name of data management target<br />    ...        # Arguments of add_test(), DATA{} allowed<br />    )<br /></pre>
    <p>It passes its arguments through ExternalData_Expand_Arguments and then invokes add_test() using the results.<br /></p>
<p>The 'ExternalData_Add_Target' function creates a custom target to manage local instances of data files stored externally:<br /></p>
<pre>  ExternalData_Add_Target(<br />    &lt;target&gt;   # Name of data management target<br />    )<br /></pre>
    <p>It creates custom commands in the target as necessary to make data files available for each DATA{} reference previously evaluated by other functions provided by this module.  A list of URL templates must be provided in the variable ExternalData_URL_TEMPLATES using the placeholders "%(algo)" and "%(hash)" in each template.  Data fetch rules try each URL template in order by substituting the hash algorithm name for "%(algo)" and the hash value for "%(hash)".<br /></p>
<p>The following hash algorithms are supported:<br /></p>
<pre>    %(algo)     &lt;ext&gt;     Description<br />    -------     -----     -----------<br />    MD5         .md5      Message-Digest Algorithm 5, RFC 1321<br />    SHA1        .sha1     US Secure Hash Algorithm 1, RFC 3174<br />    SHA224      .sha224   US Secure Hash Algorithms, RFC 4634<br />    SHA256      .sha256   US Secure Hash Algorithms, RFC 4634<br />    SHA384      .sha384   US Secure Hash Algorithms, RFC 4634<br />    SHA512      .sha512   US Secure Hash Algorithms, RFC 4634<br /></pre>
    <p>Note that the hashes are used only for unique data identification and download verification.  This is not security software.<br /></p>
<p>Example usage:<br /></p>
<pre>   include(ExternalData)<br />   set(ExternalData_URL_TEMPLATES "file:///local/%(algo)/%(hash)"<br />                                  "<a href="http://data.org/">http://data.org/</a>%(algo)/%(hash)")<br />   ExternalData_Add_Test(MyData<br />     NAME MyTest<br />     COMMAND MyExe DATA{MyInput.png}<br />     )<br />   ExternalData_Add_Target(MyData)<br /></pre>
    <p>When test "MyTest" runs the "DATA{MyInput.png}" argument will be replaced by the full path to a real instance of the data file "MyInput.png" on disk.  If the source tree contains a content link such as "MyInput.png.md5" then the "MyData" target creates a real "MyInput.png" in the build tree.<br /></p>
<p>The DATA{} syntax can be told to fetch a file series using the form "DATA{&lt;name&gt;,:}", where the ":" is literal.  If the source tree contains a group of files or content links named like a series then a reference to one member adds rules to fetch all of them.  Although all members of a series are fetched, only the file originally named by the DATA{} argument is substituted for it.  The default configuration recognizes file series names ending with "#.ext", "_#.ext", ".#.ext", or "-#.ext" where "#" is a sequence of decimal digits and ".ext" is any single extension.  Configure it with a regex that parses &lt;number&gt; and &lt;suffix&gt; parts from the end of &lt;name&gt;:<br /></p>
<pre>  ExternalData_SERIES_PARSE = regex of the form (&lt;number&gt;)(&lt;suffix&gt;)$<br /></pre>
    <p>For more complicated cases set:<br /></p>
<pre>  ExternalData_SERIES_PARSE = regex with at least two () groups<br />  ExternalData_SERIES_PARSE_PREFIX = &lt;prefix&gt; regex group number, if any<br />  ExternalData_SERIES_PARSE_NUMBER = &lt;number&gt; regex group number<br />  ExternalData_SERIES_PARSE_SUFFIX = &lt;suffix&gt; regex group number<br /></pre>
    <p>Configure series number matching with a regex that matches the &lt;number&gt; part of series members named &lt;prefix&gt;&lt;number&gt;&lt;suffix&gt;:<br /></p>
<pre>  ExternalData_SERIES_MATCH = regex matching &lt;number&gt; in all series members<br /></pre>
    <p>Note that the &lt;suffix&gt; of a series does not include a hash-algorithm extension.<br /></p>
<p>The DATA{} syntax can alternatively match files associated with the named file and contained in the same directory.  Associated files may be specified by options using the syntax DATA{&lt;name&gt;,&lt;opt1&gt;,&lt;opt2&gt;,...}.  Each option may specify one file by name or specify a regular expression to match file names using the syntax REGEX:&lt;regex&gt;.  For example, the arguments<br /></p>
<pre>   DATA{MyData/MyInput.mhd,MyInput.img}                   # File pair<br />   DATA{MyData/MyFrames00.png,REGEX:MyFrames[0-9]+\\.png} # Series<br /></pre>
    <p>will pass MyInput.mha and MyFrames00.png on the command line but ensure that the associated files are present next to them.<br /></p>
<p>The DATA{} syntax may reference a directory using a trailing slash and a list of associated files.  The form DATA{&lt;name&gt;/,&lt;opt1&gt;,&lt;opt2&gt;,...} adds rules to fetch any files in the directory that match one of the associated file options.  For example, the argument DATA{MyDataDir/,REGEX:.*} will pass the full path to a MyDataDir directory on the command line and ensure that the directory contains files corresponding to every file or content link in the MyDataDir source directory.<br /></p>
<p>The variable ExternalData_LINK_CONTENT may be set to the name of a supported hash algorithm to enable automatic conversion of real data files referenced by the DATA{} syntax into content links.  For each such &lt;file&gt; a content link named "&lt;file&gt;&lt;ext&gt;" is created.  The original file is renamed to the form ".ExternalData_&lt;algo&gt;_&lt;hash&gt;" to stage it for future transmission to one of the locations in the list of URL templates (by means outside the scope of this module).  The data fetch rule created for the content link will use the staged object if it cannot be found using any URL template.<br /></p>
<p>The variable ExternalData_OBJECT_STORES may be set to a list of local directories that store objects using the layout &lt;dir&gt;/%(algo)/%(hash). These directories will be searched first for a needed object.  If the object is not available in any store then it will be fetched remotely using the URL templates and added to the first local store listed.  If no stores are specified the default is a location inside the build tree.<br /></p>
<p>The variable ExternalData_SOURCE_ROOT may be set to the highest source directory containing any path named by a DATA{} reference.  The default is CMAKE_SOURCE_DIR.  ExternalData_SOURCE_ROOT and CMAKE_SOURCE_DIR must refer to directories within a single source distribution (e.g. they come together in one tarball).<br /></p>
<p>The variable ExternalData_BINARY_ROOT may be set to the directory to hold the real data files named by expanded DATA{} references.  The default is CMAKE_BINARY_DIR.  The directory layout will mirror that of content links under ExternalData_SOURCE_ROOT.<br /></p>
<p>Variables ExternalData_TIMEOUT_INACTIVITY and ExternalData_TIMEOUT_ABSOLUTE set the download inactivity and absolute timeouts, in seconds.  The defaults are 60 seconds and 300 seconds, respectively.  Set either timeout to 0 seconds to disable enforcement.</p>

  </li>
  <li>
    <a name="module:ExternalProject"></a><b><code>ExternalProject</code></b>: Create custom targets to build projects in external trees<br />
    <p>The 'ExternalProject_Add' function creates a custom target to drive download, update/patch, configure, build, install and test steps of an external project:<br /></p>
<pre>  ExternalProject_Add(&lt;name&gt;    # Name for custom target<br />    [DEPENDS projects...]       # Targets on which the project depends<br />    [PREFIX dir]                # Root dir for entire project<br />    [LIST_SEPARATOR sep]        # Sep to be replaced by ; in cmd lines<br />    [TMP_DIR dir]               # Directory to store temporary files<br />    [STAMP_DIR dir]             # Directory to store step timestamps<br />   #--Download step--------------<br />    [DOWNLOAD_NAME fname]       # File name to store (if not end of URL)<br />    [DOWNLOAD_DIR dir]          # Directory to store downloaded files<br />    [DOWNLOAD_COMMAND cmd...]   # Command to download source tree<br />    [CVS_REPOSITORY cvsroot]    # CVSROOT of CVS repository<br />    [CVS_MODULE mod]            # Module to checkout from CVS repo<br />    [CVS_TAG tag]               # Tag to checkout from CVS repo<br />    [SVN_REPOSITORY url]        # URL of Subversion repo<br />    [SVN_REVISION rev]          # Revision to checkout from Subversion repo<br />    [SVN_USERNAME john ]        # Username for Subversion checkout and update<br />    [SVN_PASSWORD doe ]         # Password for Subversion checkout and update<br />    [SVN_TRUST_CERT 1 ]         # Trust the Subversion server site certificate<br />    [GIT_REPOSITORY url]        # URL of git repo<br />    [GIT_TAG tag]               # Git branch name, commit id or tag<br />    [HG_REPOSITORY url]         # URL of mercurial repo<br />    [HG_TAG tag]                # Mercurial branch name, commit id or tag<br />    [URL /.../src.tgz]          # Full path or URL of source<br />    [URL_HASH ALGO=value]       # Hash of file at URL<br />    [URL_MD5 md5]               # Equivalent to URL_HASH MD5=md5<br />    [TLS_VERIFY bool]           # Should certificate for https be checked<br />    [TLS_CAINFO file]           # Path to a certificate authority file<br />    [TIMEOUT seconds]           # Time allowed for file download operations<br />   #--Update/Patch step----------<br />    [UPDATE_COMMAND cmd...]     # Source work-tree update command<br />    [PATCH_COMMAND cmd...]      # Command to patch downloaded source<br />   #--Configure step-------------<br />    [SOURCE_DIR dir]            # Source dir to be used for build<br />    [CONFIGURE_COMMAND cmd...]  # Build tree configuration command<br />    [CMAKE_COMMAND /.../cmake]  # Specify alternative cmake executable<br />    [CMAKE_GENERATOR gen]       # Specify generator for native build<br />    [CMAKE_GENERATOR_TOOLSET t] # Generator-specific toolset name<br />    [CMAKE_ARGS args...]        # Arguments to CMake command line<br />    [CMAKE_CACHE_ARGS args...]  # Initial cache arguments, of the form -Dvar:string=on<br />   #--Build step-----------------<br />    [BINARY_DIR dir]            # Specify build dir location<br />    [BUILD_COMMAND cmd...]      # Command to drive the native build<br />    [BUILD_IN_SOURCE 1]         # Use source dir for build dir<br />   #--Install step---------------<br />    [INSTALL_DIR dir]           # Installation prefix<br />    [INSTALL_COMMAND cmd...]    # Command to drive install after build<br />   #--Test step------------------<br />    [TEST_BEFORE_INSTALL 1]     # Add test step executed before install step<br />    [TEST_AFTER_INSTALL 1]      # Add test step executed after install step<br />    [TEST_COMMAND cmd...]       # Command to drive test<br />   #--Output logging-------------<br />    [LOG_DOWNLOAD 1]            # Wrap download in script to log output<br />    [LOG_UPDATE 1]              # Wrap update in script to log output<br />    [LOG_CONFIGURE 1]           # Wrap configure in script to log output<br />    [LOG_BUILD 1]               # Wrap build in script to log output<br />    [LOG_TEST 1]                # Wrap test in script to log output<br />    [LOG_INSTALL 1]             # Wrap install in script to log output<br />   #--Custom targets-------------<br />    [STEP_TARGETS st1 st2 ...]  # Generate custom targets for these steps<br />    )<br /></pre>
    <p>The *_DIR options specify directories for the project, with default directories computed as follows. If the PREFIX option is given to ExternalProject_Add() or the EP_PREFIX directory property is set, then an external project is built and installed under the specified prefix:<br /></p>
<pre>   TMP_DIR      = &lt;prefix&gt;/tmp<br />   STAMP_DIR    = &lt;prefix&gt;/src/&lt;name&gt;-stamp<br />   DOWNLOAD_DIR = &lt;prefix&gt;/src<br />   SOURCE_DIR   = &lt;prefix&gt;/src/&lt;name&gt;<br />   BINARY_DIR   = &lt;prefix&gt;/src/&lt;name&gt;-build<br />   INSTALL_DIR  = &lt;prefix&gt;<br /></pre>
    <p>Otherwise, if the EP_BASE directory property is set then components of an external project are stored under the specified base:<br /></p>
<pre>   TMP_DIR      = &lt;base&gt;/tmp/&lt;name&gt;<br />   STAMP_DIR    = &lt;base&gt;/Stamp/&lt;name&gt;<br />   DOWNLOAD_DIR = &lt;base&gt;/Download/&lt;name&gt;<br />   SOURCE_DIR   = &lt;base&gt;/Source/&lt;name&gt;<br />   BINARY_DIR   = &lt;base&gt;/Build/&lt;name&gt;<br />   INSTALL_DIR  = &lt;base&gt;/Install/&lt;name&gt;<br /></pre>
    <p>If no PREFIX, EP_PREFIX, or EP_BASE is specified then the default is to set PREFIX to "&lt;name&gt;-prefix". Relative paths are interpreted with respect to the build directory corresponding to the source directory in which ExternalProject_Add is invoked.<br /></p>
<p>If SOURCE_DIR is explicitly set to an existing directory the project will be built from it. Otherwise a download step must be specified using one of the DOWNLOAD_COMMAND, CVS_*, SVN_*, or URL options. The URL option may refer locally to a directory or source tarball, or refer to a remote tarball (e.g. <a href="http://.../src.tgz">http://.../src.tgz</a>).<br /></p>
<p>The 'ExternalProject_Add_Step' function adds a custom step to an external project:<br /></p>
<pre>  ExternalProject_Add_Step(&lt;name&gt; &lt;step&gt; # Names of project and custom step<br />    [COMMAND cmd...]        # Command line invoked by this step<br />    [COMMENT "text..."]     # Text printed when step executes<br />    [DEPENDEES steps...]    # Steps on which this step depends<br />    [DEPENDERS steps...]    # Steps that depend on this step<br />    [DEPENDS files...]      # Files on which this step depends<br />    [ALWAYS 1]              # No stamp file, step always runs<br />    [WORKING_DIRECTORY dir] # Working directory for command<br />    [LOG 1]                 # Wrap step in script to log output<br />    )<br /></pre>
    <p>The command line, comment, and working directory of every standard and custom step is processed to replace tokens &lt;SOURCE_DIR&gt;, &lt;BINARY_DIR&gt;, &lt;INSTALL_DIR&gt;, and &lt;TMP_DIR&gt; with corresponding property values.<br /></p>
<p>Any builtin step that specifies a "&lt;step&gt;_COMMAND cmd..." or custom step that specifies a "COMMAND cmd..." may specify additional command lines using the form "COMMAND cmd...".  At build time the commands will be executed in order and aborted if any one fails.  For example:<br /></p>
<pre>  ... BUILD_COMMAND make COMMAND echo done ...<br /></pre>
    <p>specifies to run "make" and then "echo done" during the build step. Whether the current working directory is preserved between commands is not defined.  Behavior of shell operators like "&amp;&amp;" is not defined.<br /></p>
<p>The 'ExternalProject_Get_Property' function retrieves external project target properties:<br /></p>
<pre>  ExternalProject_Get_Property(&lt;name&gt; [prop1 [prop2 [...]]])<br /></pre>
    <p>It stores property values in variables of the same name. Property names correspond to the keyword argument names of 'ExternalProject_Add'.<br /></p>
<p>The 'ExternalProject_Add_StepTargets' function generates custom targets for the steps listed:<br /></p>
<pre>  ExternalProject_Add_StepTargets(&lt;name&gt; [step1 [step2 [...]]])<br /></pre>
    <p><br /></p>
<p>If STEP_TARGETS is set then ExternalProject_Add_StepTargets is automatically called at the end of matching calls to ExternalProject_Add_Step. Pass STEP_TARGETS explicitly to individual ExternalProject_Add calls, or implicitly to all ExternalProject_Add calls by setting the directory property EP_STEP_TARGETS.<br /></p>
<p>If STEP_TARGETS is not set, clients may still manually call ExternalProject_Add_StepTargets after calling ExternalProject_Add or ExternalProject_Add_Step.<br /></p>
<p>This functionality is provided to make it easy to drive the steps independently of each other by specifying targets on build command lines. For example, you may be submitting to a sub-project based dashboard, where you want to drive the configure portion of the build, then submit to the dashboard, followed by the build portion, followed by tests. If you invoke a custom target that depends on a step halfway through the step dependency chain, then all the previous steps will also run to ensure everything is up to date.<br /></p>
<p>For example, to drive configure, build and test steps independently for each ExternalProject_Add call in your project, write the following line prior to any ExternalProject_Add calls in your CMakeLists file:<br /></p>
<pre>   set_property(DIRECTORY PROPERTY EP_STEP_TARGETS configure build test)<br /></pre>
    
  </li>
  <li>
    <a name="module:FeatureSummary"></a><b><code>FeatureSummary</code></b>: Macros for generating a summary of enabled/disabled features<br />
    <p><br /></p>
<p>This module provides the macros feature_summary(), set_package_properties() and add_feature_info(). For compatibility it also still provides set_package_info(), set_feature_info(), print_enabled_features() and print_disabled_features().<br /></p>
<p>These macros can be used to generate a summary of enabled and disabled packages and/or feature for a build tree:<br /></p>
<pre>    -- The following OPTIONAL packages have been found:<br />    LibXml2 (required version &gt;= 2.4) , XML processing library. , &lt;<a href="http://xmlsoft.org">http://xmlsoft.org</a>&gt;<br />       * Enables HTML-import in MyWordProcessor<br />       * Enables odt-export in MyWordProcessor<br />    PNG , A PNG image library. , &lt;<a href="http://www.libpng.org/pub/png/">http://www.libpng.org/pub/png/</a>&gt;<br />       * Enables saving screenshots<br />    -- The following OPTIONAL packages have not been found:<br />    Lua51 , The Lua scripting language. , &lt;<a href="http://www.lua.org">http://www.lua.org</a>&gt;<br />       * Enables macros in MyWordProcessor<br />    Foo , Foo provides cool stuff.<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>    FEATURE_SUMMARY( [FILENAME &lt;file&gt;]<br />                     [APPEND]<br />                     [VAR &lt;variable_name&gt;]<br />                     [INCLUDE_QUIET_PACKAGES]<br />                     [FATAL_ON_MISSING_REQUIRED_PACKAGES]<br />                     [DESCRIPTION "Found packages:"]<br />                     WHAT (ALL | PACKAGES_FOUND | PACKAGES_NOT_FOUND<br />                          | ENABLED_FEATURES | DISABLED_FEATURES]<br />                   )<br /></pre>
    <p><br /></p>
<p>The FEATURE_SUMMARY() macro can be used to print information about enabled or disabled packages or features of a project. By default, only the names of the features/packages will be printed and their required version when one was specified. Use SET_PACKAGE_PROPERTIES() to add more useful information, like e.g. a download URL for the respective package or their purpose in the project.<br /></p>
<p>The WHAT option is the only mandatory option. Here you specify what information will be printed:<br /></p>
<pre>    ALL: print everything<br />    ENABLED_FEATURES: the list of all features which are enabled<br />    DISABLED_FEATURES: the list of all features which are disabled<br />    PACKAGES_FOUND: the list of all packages which have been found<br />    PACKAGES_NOT_FOUND: the list of all packages which have not been found<br />    OPTIONAL_PACKAGES_FOUND: only those packages which have been found which have the type OPTIONAL<br />    OPTIONAL_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type OPTIONAL<br />    RECOMMENDED_PACKAGES_FOUND: only those packages which have been found which have the type RECOMMENDED<br />    RECOMMENDED_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type RECOMMENDED<br />    REQUIRED_PACKAGES_FOUND: only those packages which have been found which have the type REQUIRED<br />    REQUIRED_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type REQUIRED<br />    RUNTIME_PACKAGES_FOUND: only those packages which have been found which have the type RUNTIME<br />    RUNTIME_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type RUNTIME<br /></pre>
    <p><br /></p>
<p>If a FILENAME is given, the information is printed into this file. If APPEND is used, it is appended to this file, otherwise the file is overwritten if it already existed. If the VAR option is used, the information is "printed" into the specified variable. If FILENAME is not used, the information is printed to the terminal. Using the DESCRIPTION option a description or headline can be set which will be printed above the actual content. If INCLUDE_QUIET_PACKAGES is given, packages which have been searched with find_package(... QUIET) will also be listed. By default they are skipped. If FATAL_ON_MISSING_REQUIRED_PACKAGES is given, CMake will abort if a package which is marked as REQUIRED has not been found.<br /></p>
<p>Example 1, append everything to a file:<br /></p>
<pre>   feature_summary(WHAT ALL<br />                   FILENAME ${CMAKE_BINARY_DIR}/all.log APPEND)<br /></pre>
    <p><br /></p>
<p>Example 2, print the enabled features into the variable enabledFeaturesText, including QUIET packages:<br /></p>
<pre>   feature_summary(WHAT ENABLED_FEATURES<br />                   INCLUDE_QUIET_PACKAGES<br />                   DESCRIPTION "Enabled Features:"<br />                   VAR enabledFeaturesText)<br />   message(STATUS "${enabledFeaturesText}")<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>    SET_PACKAGE_PROPERTIES(&lt;name&gt; PROPERTIES [ URL &lt;url&gt; ]<br />                                             [ DESCRIPTION &lt;description&gt; ]<br />                                             [ TYPE (RUNTIME|OPTIONAL|RECOMMENDED|REQUIRED) ]<br />                                             [ PURPOSE &lt;purpose&gt; ]<br />                          )<br /></pre>
    <p><br /></p>
<p>Use this macro to set up information about the named package, which can then be displayed via FEATURE_SUMMARY(). This can be done either directly in the Find-module or in the project which uses the module after the find_package() call. The features for which information can be set are added automatically by the find_package() command.<br /></p>
<p>URL: this should be the homepage of the package, or something similar. Ideally this is set already directly in the Find-module.<br /></p>
<p>DESCRIPTION: A short description what that package is, at most one sentence. Ideally this is set already directly in the Find-module.<br /></p>
<p>TYPE: What type of dependency has the using project on that package. Default is OPTIONAL. In this case it is a package which can be used by the project when available at buildtime, but it also work without. RECOMMENDED is similar to OPTIONAL, i.e. the project will build if the package is not present, but the functionality of the resulting binaries will be severly limited. If a REQUIRED package is not available at buildtime, the project may not even build. This can be combined with the FATAL_ON_MISSING_REQUIRED_PACKAGES argument for feature_summary(). Last, a RUNTIME package is a package which is actually not used at all during the build, but which is required for actually running the resulting binaries. So if such a package is missing, the project can still be built, but it may not work later on. If set_package_properties() is called multiple times for the same package with different TYPEs, the TYPE is only changed to higher TYPEs ( RUNTIME &lt; OPTIONAL &lt; RECOMMENDED &lt; REQUIRED ), lower TYPEs are ignored. The TYPE property is project-specific, so it cannot be set by the Find-module, but must be set in the project.<br /></p>
<p>PURPOSE: This describes which features this package enables in the project, i.e. it tells the user what functionality he gets in the resulting binaries. If set_package_properties() is called multiple times for a package, all PURPOSE properties are appended to a list of purposes of the package in the project. As the TYPE property, also the PURPOSE property is project-specific, so it cannot be set by the Find-module, but must be set in the project.<br /></p>
<p><br /></p>
<p>Example for setting the info for a package:<br /></p>
<pre>   find_package(LibXml2)<br />   set_package_properties(LibXml2 PROPERTIES DESCRIPTION "A XML processing library."<br />                                             URL "<a href="http://xmlsoft.org/">http://xmlsoft.org/</a>")<br /></pre>
    <p><br /></p>
<pre>   set_package_properties(LibXml2 PROPERTIES TYPE RECOMMENDED<br />                                             PURPOSE "Enables HTML-import in MyWordProcessor")<br />   ...<br />   set_package_properties(LibXml2 PROPERTIES TYPE OPTIONAL<br />                                             PURPOSE "Enables odt-export in MyWordProcessor")<br /></pre>
    <p><br /></p>
<pre>   find_package(DBUS)<br />   set_package_properties(DBUS PROPERTIES TYPE RUNTIME<br />                                             PURPOSE "Necessary to disable the screensaver during a presentation" )<br /></pre>
    <p><br /></p>
<pre>    ADD_FEATURE_INFO(&lt;name&gt; &lt;enabled&gt; &lt;description&gt;)<br /></pre>
    <p>Use this macro to add information about a feature with the given &lt;name&gt;. &lt;enabled&gt; contains whether this feature is enabled or not, &lt;description&gt; is a text describing the feature. The information can be displayed using feature_summary() for ENABLED_FEATURES and DISABLED_FEATURES respectively.<br /></p>
<p>Example for setting the info for a feature:<br /></p>
<pre>   option(WITH_FOO "Help for foo" ON)<br />   add_feature_info(Foo WITH_FOO "The Foo feature provides very cool stuff.")<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>The following macros are provided for compatibility with previous CMake versions:<br /></p>
<pre>    SET_PACKAGE_INFO(&lt;name&gt; &lt;description&gt; [&lt;url&gt; [&lt;purpose&gt;] ] )<br /></pre>
    <p>Use this macro to set up information about the named package, which can then be displayed via FEATURE_SUMMARY(). This can be done either directly in the Find-module or in the project which uses the module after the find_package() call. The features for which information can be set are added automatically by the find_package() command.<br /></p>
<pre>    PRINT_ENABLED_FEATURES()<br /></pre>
    <p>Does the same as FEATURE_SUMMARY(WHAT ENABLED_FEATURES  DESCRIPTION "Enabled features:")<br /></p>
<pre>    PRINT_DISABLED_FEATURES()<br /></pre>
    <p>Does the same as FEATURE_SUMMARY(WHAT DISABLED_FEATURES  DESCRIPTION "Disabled features:")<br /></p>
<pre>    SET_FEATURE_INFO(&lt;name&gt; &lt;description&gt; [&lt;url&gt;] )<br /></pre>
    <p>Does the same as SET_PACKAGE_INFO(&lt;name&gt; &lt;description&gt; &lt;url&gt; )</p>

  </li>
  <li>
    <a name="module:FindALSA"></a><b><code>FindALSA</code></b>: Find alsa<br />
    <p>Find the alsa libraries (asound)<br /></p>
<pre>  This module defines the following variables:<br />     ALSA_FOUND       - True if ALSA_INCLUDE_DIR &amp; ALSA_LIBRARY are found<br />     ALSA_LIBRARIES   - Set when ALSA_LIBRARY is found<br />     ALSA_INCLUDE_DIRS - Set when ALSA_INCLUDE_DIR is found<br /></pre>
    <p><br /></p>
<pre>     ALSA_INCLUDE_DIR - where to find asoundlib.h, etc.<br />     ALSA_LIBRARY     - the asound library<br />     ALSA_VERSION_STRING - the version of alsa found (since CMake 2.8.8)<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindASPELL"></a><b><code>FindASPELL</code></b>: Try to find ASPELL<br />
    <p>Once done this will define<br /></p>
<pre>  ASPELL_FOUND - system has ASPELL<br />  ASPELL_EXECUTABLE - the ASPELL executable<br />  ASPELL_INCLUDE_DIR - the ASPELL include directory<br />  ASPELL_LIBRARIES - The libraries needed to use ASPELL<br />  ASPELL_DEFINITIONS - Compiler switches required for using ASPELL<br /></pre>
    
  </li>
  <li>
    <a name="module:FindAVIFile"></a><b><code>FindAVIFile</code></b>: Locate AVIFILE library and include paths<br />
    <p>AVIFILE (<a href="http://avifile.sourceforge.net/">http://avifile.sourceforge.net/</a>)is a set of libraries for i386 machines to use various AVI codecs. Support is limited beyond Linux. Windows provides native AVI support, and so doesn't need this library. This module defines<br /></p>
<pre>  AVIFILE_INCLUDE_DIR, where to find avifile.h , etc.<br />  AVIFILE_LIBRARIES, the libraries to link against<br />  AVIFILE_DEFINITIONS, definitions to use when compiling<br />  AVIFILE_FOUND, If false, don't try to use AVIFILE<br /></pre>
    
  </li>
  <li>
    <a name="module:FindArmadillo"></a><b><code>FindArmadillo</code></b>: Find Armadillo<br />
    <p>Find the Armadillo C++ library<br /></p>
<p>Using Armadillo:<br /></p>
<pre>  find_package(Armadillo REQUIRED)<br />  include_directories(${ARMADILLO_INCLUDE_DIRS})<br />  add_executable(foo foo.cc)<br />  target_link_libraries(foo ${ARMADILLO_LIBRARIES})<br /></pre>
    <p>This module sets the following variables:<br /></p>
<pre>  ARMADILLO_FOUND - set to true if the library is found<br />  ARMADILLO_INCLUDE_DIRS - list of required include directories<br />  ARMADILLO_LIBRARIES - list of libraries to be linked<br />  ARMADILLO_VERSION_MAJOR - major version number<br />  ARMADILLO_VERSION_MINOR - minor version number<br />  ARMADILLO_VERSION_PATCH - patch version number<br />  ARMADILLO_VERSION_STRING - version number as a string (ex: "1.0.4")<br />  ARMADILLO_VERSION_NAME - name of the version (ex: "Antipodean Antileech")<br /></pre>
    
  </li>
  <li>
    <a name="module:FindBISON"></a><b><code>FindBISON</code></b>: Find bison executable and provides macros to generate custom build rules<br />
    <p>The module defines the following variables:<br /></p>
<pre>  BISON_EXECUTABLE - path to the bison program<br />  BISON_VERSION - version of bison<br />  BISON_FOUND - true if the program was found<br /></pre>
    <p><br /></p>
<p>The minimum required version of bison can be specified using the standard CMake syntax, e.g. find_package(BISON 2.1.3)<br /></p>
<p>If bison is found, the module defines the macros:<br /></p>
<pre>  BISON_TARGET(&lt;Name&gt; &lt;YaccInput&gt; &lt;CodeOutput&gt; [VERBOSE &lt;file&gt;]<br />              [COMPILE_FLAGS &lt;string&gt;])<br /></pre>
    <p>which will create  a custom rule to generate  a parser. &lt;YaccInput&gt; is the path to  a yacc file. &lt;CodeOutput&gt; is the name  of the source file generated by bison.  A header file is also  be generated, and contains the  token  list.  If  COMPILE_FLAGS  option is  specified,  the  next parameter is  added in the bison  command line.  if  VERBOSE option is specified, &lt;file&gt; is created  and contains verbose descriptions of the grammar and parser. The macro defines a set of variables:<br /></p>
<pre>  BISON_${Name}_DEFINED - true is the macro ran successfully<br />  BISON_${Name}_INPUT - The input source file, an alias for &lt;YaccInput&gt;<br />  BISON_${Name}_OUTPUT_SOURCE - The source file generated by bison<br />  BISON_${Name}_OUTPUT_HEADER - The header file generated by bison<br />  BISON_${Name}_OUTPUTS - The sources files generated by bison<br />  BISON_${Name}_COMPILE_FLAGS - Options used in the bison command line<br /></pre>
    <p><br /></p>
<pre>  ====================================================================<br />  Example:<br /></pre>
    <p><br /></p>
<pre>   find_package(BISON)<br />   BISON_TARGET(MyParser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)<br />   add_executable(Foo main.cpp ${BISON_MyParser_OUTPUTS})<br />  ====================================================================<br /></pre>
    
  </li>
  <li>
    <a name="module:FindBLAS"></a><b><code>FindBLAS</code></b>: Find BLAS library<br />
    <p>This module finds an installed fortran library that implements the BLAS linear-algebra interface (see <a href="http://www.netlib.org/blas/">http://www.netlib.org/blas/</a>). The list of libraries searched for is taken from the autoconf macro file, acx_blas.m4 (distributed at <a href="http://ac-archive.sourceforge.net/ac-archive/acx_blas.html">http://ac-archive.sourceforge.net/ac-archive/acx_blas.html</a>).<br /></p>
<p>This module sets the following variables:<br /></p>
<pre>  BLAS_FOUND - set to true if a library implementing the BLAS interface<br />    is found<br />  BLAS_LINKER_FLAGS - uncached list of required linker flags (excluding -l<br />    and -L).<br />  BLAS_LIBRARIES - uncached list of libraries (using full path name) to<br />    link against to use BLAS<br />  BLAS95_LIBRARIES - uncached list of libraries (using full path name)<br />    to link against to use BLAS95 interface<br />  BLAS95_FOUND - set to true if a library implementing the BLAS f95 interface<br />    is found<br />  BLA_STATIC  if set on this determines what kind of linkage we do (static)<br />  BLA_VENDOR  if set checks only the specified vendor, if not set checks<br />     all the possibilities<br />  BLA_F95     if set on tries to find the f95 interfaces for BLAS/LAPACK<br /></pre>
    <p>C/CXX should be enabled to use Intel mkl</p>

  </li>
  <li>
    <a name="module:FindBZip2"></a><b><code>FindBZip2</code></b>: Try to find BZip2<br />
    <p>Once done this will define<br /></p>
<pre>  BZIP2_FOUND - system has BZip2<br />  BZIP2_INCLUDE_DIR - the BZip2 include directory<br />  BZIP2_LIBRARIES - Link these to use BZip2<br />  BZIP2_NEED_PREFIX - this is set if the functions are prefixed with BZ2_<br />  BZIP2_VERSION_STRING - the version of BZip2 found (since CMake 2.8.8)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindBoost"></a><b><code>FindBoost</code></b>: Find Boost include dirs and libraries<br />
    <p>Use this module by invoking find_package with the form:<br /></p>
<pre>  find_package(Boost<br />    [version] [EXACT]      # Minimum or EXACT version e.g. 1.36.0<br />    [REQUIRED]             # Fail with error if Boost is not found<br />    [COMPONENTS &lt;libs&gt;...] # Boost libraries by their canonical name<br />    )                      # e.g. "date_time" for "libboost_date_time"<br /></pre>
    <p>This module finds headers and requested component libraries OR a CMake package configuration file provided by a "Boost CMake" build.  For the latter case skip to the "Boost CMake" section below.  For the former case results are reported in variables:<br /></p>
<pre>  Boost_FOUND            - True if headers and requested libraries were found<br />  Boost_INCLUDE_DIRS     - Boost include directories<br />  Boost_LIBRARY_DIRS     - Link directories for Boost libraries<br />  Boost_LIBRARIES        - Boost component libraries to be linked<br />  Boost_&lt;C&gt;_FOUND        - True if component &lt;C&gt; was found (&lt;C&gt; is upper-case)<br />  Boost_&lt;C&gt;_LIBRARY      - Libraries to link for component &lt;C&gt; (may include<br />                           target_link_libraries debug/optimized keywords)<br />  Boost_VERSION          - BOOST_VERSION value from boost/version.hpp<br />  Boost_LIB_VERSION      - Version string appended to library filenames<br />  Boost_MAJOR_VERSION    - Boost major version number (X in X.y.z)<br />  Boost_MINOR_VERSION    - Boost minor version number (Y in x.Y.z)<br />  Boost_SUBMINOR_VERSION - Boost subminor version number (Z in x.y.Z)<br />  Boost_LIB_DIAGNOSTIC_DEFINITIONS (Windows)<br />                         - Pass to add_definitions() to have diagnostic<br />                           information about Boost's automatic linking<br />                           displayed during compilation<br /></pre>
    <p><br /></p>
<p>This module reads hints about search locations from variables:<br /></p>
<pre>  BOOST_ROOT             - Preferred installation prefix<br />   (or BOOSTROOT)<br />  BOOST_INCLUDEDIR       - Preferred include directory e.g. &lt;prefix&gt;/include<br />  BOOST_LIBRARYDIR       - Preferred library directory e.g. &lt;prefix&gt;/lib<br />  Boost_NO_SYSTEM_PATHS  - Set to ON to disable searching in locations not<br />                           specified by these hint variables. Default is OFF.<br />  Boost_ADDITIONAL_VERSIONS<br />                         - List of Boost versions not known to this module<br />                           (Boost install locations may contain the version)<br /></pre>
    <p>and saves search results persistently in CMake cache entries:<br /></p>
<pre>  Boost_INCLUDE_DIR         - Directory containing Boost headers<br />  Boost_LIBRARY_DIR         - Directory containing Boost libraries<br />  Boost_&lt;C&gt;_LIBRARY_DEBUG   - Component &lt;C&gt; library debug variant<br />  Boost_&lt;C&gt;_LIBRARY_RELEASE - Component &lt;C&gt; library release variant<br /></pre>
    <p>Users may set these hints or results as cache entries.  Projects should not read these entries directly but instead use the above result variables. Note that some hint names start in upper-case "BOOST".  One may specify these as environment variables if they are not specified as CMake variables or cache entries.<br /></p>
<p>This module first searches for the Boost header files using the above hint variables (excluding BOOST_LIBRARYDIR) and saves the result in Boost_INCLUDE_DIR.  Then it searches for requested component libraries using the above hints (excluding BOOST_INCLUDEDIR and Boost_ADDITIONAL_VERSIONS), "lib" directories near Boost_INCLUDE_DIR, and the library name configuration settings below.  It saves the library directory in Boost_LIBRARY_DIR and individual library locations in Boost_&lt;C&gt;_LIBRARY_DEBUG and Boost_&lt;C&gt;_LIBRARY_RELEASE.  When one changes settings used by previous searches in the same build tree (excluding environment variables) this module discards previous search results affected by the changes and searches again.<br /></p>
<p>Boost libraries come in many variants encoded in their file name.  Users or projects may tell this module which variant to find by setting variables:<br /></p>
<pre>  Boost_USE_MULTITHREADED  - Set to OFF to use the non-multithreaded<br />                             libraries ('mt' tag).  Default is ON.<br />  Boost_USE_STATIC_LIBS    - Set to ON to force the use of the static<br />                             libraries.  Default is OFF.<br />  Boost_USE_STATIC_RUNTIME - Set to ON or OFF to specify whether to use<br />                             libraries linked statically to the C++ runtime<br />                             ('s' tag).  Default is platform dependent.<br />  Boost_USE_DEBUG_PYTHON   - Set to ON to use libraries compiled with a<br />                             debug Python build ('y' tag). Default is OFF.<br />  Boost_USE_STLPORT        - Set to ON to use libraries compiled with<br />                             STLPort ('p' tag).  Default is OFF.<br />  Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS<br />                           - Set to ON to use libraries compiled with<br />                             STLPort deprecated "native iostreams"<br />                             ('n' tag).  Default is OFF.<br />  Boost_COMPILER           - Set to the compiler-specific library suffix<br />                             (e.g. "-gcc43").  Default is auto-computed<br />                             for the C++ compiler in use.<br />  Boost_THREADAPI          - Suffix for "thread" component library name,<br />                             such as "pthread" or "win32".  Names with<br />                             and without this suffix will both be tried.<br /></pre>
    <p>Other variables one may set to control this module are:<br /></p>
<pre>  Boost_DEBUG              - Set to ON to enable debug output from FindBoost.<br />                             Please enable this before filing any bug report.<br />  Boost_DETAILED_FAILURE_MSG<br />                           - Set to ON to add detailed information to the<br />                             failure message even when the REQUIRED option<br />                             is not given to the find_package call.<br />  Boost_REALPATH           - Set to ON to resolve symlinks for discovered<br />                             libraries to assist with packaging.  For example,<br />                             the "system" component library may be resolved to<br />                             "/usr/lib/libboost_system.so.1.42.0" instead of<br />                             "/usr/lib/libboost_system.so".  This does not<br />                             affect linking and should not be enabled unless<br />                             the user needs this information.<br /></pre>
    <p>On Visual Studio and Borland compilers Boost headers request automatic linking to corresponding libraries.  This requires matching libraries to be linked explicitly or available in the link library search path.  In this case setting Boost_USE_STATIC_LIBS to OFF may not achieve dynamic linking. Boost automatic linking typically requests static libraries with a few exceptions (such as Boost.Python).  Use<br /></p>
<pre>  add_definitions(${Boost_LIB_DIAGNOSTIC_DEFINITIONS})<br /></pre>
    <p>to ask Boost to report information about automatic linking requests.<br /></p>
<p>Example to find Boost headers only:<br /></p>
<pre>  find_package(Boost 1.36.0)<br />  if(Boost_FOUND)<br />    include_directories(${Boost_INCLUDE_DIRS})<br />    add_executable(foo foo.cc)<br />  endif()<br /></pre>
    <p>Example to find Boost headers and some libraries:<br /></p>
<pre>  set(Boost_USE_STATIC_LIBS        ON)<br />  set(Boost_USE_MULTITHREADED      ON)<br />  set(Boost_USE_STATIC_RUNTIME    OFF)<br />  find_package(Boost 1.36.0 COMPONENTS date_time filesystem system ...)<br />  if(Boost_FOUND)<br />    include_directories(${Boost_INCLUDE_DIRS})<br />    add_executable(foo foo.cc)<br />    target_link_libraries(foo ${Boost_LIBRARIES})<br />  endif()<br /></pre>
    <p><br /></p>
<p>Boost CMake ----------------------------------------------------------<br /></p>
<p>If Boost was built using the boost-cmake project it provides a package configuration file for use with find_package's Config mode.  This module looks for the package configuration file called BoostConfig.cmake or boost-config.cmake and stores the result in cache entry "Boost_DIR".  If found, the package configuration file is loaded and this module returns with no further action.  See documentation of the Boost CMake package configuration for details on what it provides.<br /></p>
<p>Set Boost_NO_BOOST_CMAKE to ON to disable the search for boost-cmake.</p>

  </li>
  <li>
    <a name="module:FindBullet"></a><b><code>FindBullet</code></b>: Try to find the Bullet physics engine<br />
    <p><br /></p>
<pre>  This module defines the following variables<br /></pre>
    <p><br /></p>
<pre>  BULLET_FOUND - Was bullet found<br />  BULLET_INCLUDE_DIRS - the Bullet include directories<br />  BULLET_LIBRARIES - Link to this, by default it includes<br />                     all bullet components (Dynamics,<br />                     Collision, LinearMath, &amp; SoftBody)<br /></pre>
    <p><br /></p>
<pre>  This module accepts the following variables<br /></pre>
    <p><br /></p>
<pre>  BULLET_ROOT - Can be set to bullet install path or Windows build path<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindCABLE"></a><b><code>FindCABLE</code></b>: Find CABLE<br />
    <p>This module finds if CABLE is installed and determines where the include files and libraries are.  This code sets the following variables:<br /></p>
<pre>  CABLE             the path to the cable executable<br />  CABLE_TCL_LIBRARY the path to the Tcl wrapper library<br />  CABLE_INCLUDE_DIR the path to the include directory<br /></pre>
    <p><br /></p>
<p>To build Tcl wrappers, you should add shared library and link it to ${CABLE_TCL_LIBRARY}.  You should also add ${CABLE_INCLUDE_DIR} as an include directory.</p>

  </li>
  <li>
    <a name="module:FindCUDA"></a><b><code>FindCUDA</code></b>: Tools for building CUDA C files: libraries and build dependencies.<br />
    <p>This script locates the NVIDIA CUDA C tools. It should work on linux, windows, and mac and should be reasonably up to date with CUDA C releases.<br /></p>
<p>This script makes use of the standard find_package arguments of &lt;VERSION&gt;, REQUIRED and QUIET.  CUDA_FOUND will report if an acceptable version of CUDA was found.<br /></p>
<p>The script will prompt the user to specify CUDA_TOOLKIT_ROOT_DIR if the prefix cannot be determined by the location of nvcc in the system path and REQUIRED is specified to find_package(). To use a different installed version of the toolkit set the environment variable CUDA_BIN_PATH before running cmake (e.g. CUDA_BIN_PATH=/usr/local/cuda1.0 instead of the default /usr/local/cuda) or set CUDA_TOOLKIT_ROOT_DIR after configuring.  If you change the value of CUDA_TOOLKIT_ROOT_DIR, various components that depend on the path will be relocated.<br /></p>
<p>It might be necessary to set CUDA_TOOLKIT_ROOT_DIR manually on certain platforms, or to use a cuda runtime not installed in the default location. In newer versions of the toolkit the cuda library is included with the graphics driver- be sure that the driver version matches what is needed by the cuda runtime version.<br /></p>
<p>The following variables affect the behavior of the macros in the script (in alphebetical order).  Note that any of these flags can be changed multiple times in the same directory before calling CUDA_ADD_EXECUTABLE, CUDA_ADD_LIBRARY, CUDA_COMPILE, CUDA_COMPILE_PTX or CUDA_WRAP_SRCS.<br /></p>
<pre>  CUDA_64_BIT_DEVICE_CODE (Default matches host bit size)<br />  -- Set to ON to compile for 64 bit device code, OFF for 32 bit device code.<br />     Note that making this different from the host code when generating object<br />     or C files from CUDA code just won't work, because size_t gets defined by<br />     nvcc in the generated source.  If you compile to PTX and then load the<br />     file yourself, you can mix bit sizes between device and host.<br /></pre>
    <p><br /></p>
<pre>  CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE (Default ON)<br />  -- Set to ON if you want the custom build rule to be attached to the source<br />     file in Visual Studio.  Turn OFF if you add the same cuda file to multiple<br />     targets.<br /></pre>
    <p><br /></p>
<pre>     This allows the user to build the target from the CUDA file; however, bad<br />     things can happen if the CUDA source file is added to multiple targets.<br />     When performing parallel builds it is possible for the custom build<br />     command to be run more than once and in parallel causing cryptic build<br />     errors.  VS runs the rules for every source file in the target, and a<br />     source can have only one rule no matter how many projects it is added to.<br />     When the rule is run from multiple targets race conditions can occur on<br />     the generated file.  Eventually everything will get built, but if the user<br />     is unaware of this behavior, there may be confusion.  It would be nice if<br />     this script could detect the reuse of source files across multiple targets<br />     and turn the option off for the user, but no good solution could be found.<br /></pre>
    <p><br /></p>
<pre>  CUDA_BUILD_CUBIN (Default OFF)<br />  -- Set to ON to enable and extra compilation pass with the -cubin option in<br />     Device mode. The output is parsed and register, shared memory usage is<br />     printed during build.<br /></pre>
    <p><br /></p>
<pre>  CUDA_BUILD_EMULATION (Default OFF for device mode)<br />  -- Set to ON for Emulation mode. -D_DEVICEEMU is defined for CUDA C files<br />     when CUDA_BUILD_EMULATION is TRUE.<br /></pre>
    <p><br /></p>
<pre>  CUDA_GENERATED_OUTPUT_DIR (Default CMAKE_CURRENT_BINARY_DIR)<br />  -- Set to the path you wish to have the generated files placed.  If it is<br />     blank output files will be placed in CMAKE_CURRENT_BINARY_DIR.<br />     Intermediate files will always be placed in<br />     CMAKE_CURRENT_BINARY_DIR/CMakeFiles.<br /></pre>
    <p><br /></p>
<pre>  CUDA_HOST_COMPILATION_CPP (Default ON)<br />  -- Set to OFF for C compilation of host code.<br /></pre>
    <p><br /></p>
<pre>  CUDA_HOST_COMPILER (Default CMAKE_C_COMPILER, $(VCInstallDir)/bin for VS)<br />  -- Set the host compiler to be used by nvcc.  Ignored if -ccbin or<br />     --compiler-bindir is already present in the CUDA_NVCC_FLAGS or<br />     CUDA_NVCC_FLAGS_&lt;CONFIG&gt; variables.  For Visual Studio targets<br />     $(VCInstallDir)/bin is a special value that expands out to the path when<br />     the command is run from withing VS.<br /></pre>
    <p><br /></p>
<pre>  CUDA_NVCC_FLAGS<br />  CUDA_NVCC_FLAGS_&lt;CONFIG&gt;<br />  -- Additional NVCC command line arguments.  NOTE: multiple arguments must be<br />     semi-colon delimited (e.g. --compiler-options;-Wall)<br /></pre>
    <p><br /></p>
<pre>  CUDA_PROPAGATE_HOST_FLAGS (Default ON)<br />  -- Set to ON to propagate CMAKE_{C,CXX}_FLAGS and their configuration<br />     dependent counterparts (e.g. CMAKE_C_FLAGS_DEBUG) automatically to the<br />     host compiler through nvcc's -Xcompiler flag.  This helps make the<br />     generated host code match the rest of the system better.  Sometimes<br />     certain flags give nvcc problems, and this will help you turn the flag<br />     propagation off.  This does not affect the flags supplied directly to nvcc<br />     via CUDA_NVCC_FLAGS or through the OPTION flags specified through<br />     CUDA_ADD_LIBRARY, CUDA_ADD_EXECUTABLE, or CUDA_WRAP_SRCS.  Flags used for<br />     shared library compilation are not affected by this flag.<br /></pre>
    <p><br /></p>
<pre>  CUDA_SEPARABLE_COMPILATION (Default OFF)<br />  -- If set this will enable separable compilation for all CUDA runtime object<br />     files.  If used outside of CUDA_ADD_EXECUTABLE and CUDA_ADD_LIBRARY<br />     (e.g. calling CUDA_WRAP_SRCS directly),<br />     CUDA_COMPUTE_SEPARABLE_COMPILATION_OBJECT_FILE_NAME and<br />     CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS should be called.<br /></pre>
    <p><br /></p>
<pre>  CUDA_VERBOSE_BUILD (Default OFF)<br />  -- Set to ON to see all the commands used when building the CUDA file.  When<br />     using a Makefile generator the value defaults to VERBOSE (run make<br />     VERBOSE=1 to see output), although setting CUDA_VERBOSE_BUILD to ON will<br />     always print the output.<br /></pre>
    <p><br /></p>
<p>The script creates the following macros (in alphebetical order):<br /></p>
<pre>  CUDA_ADD_CUFFT_TO_TARGET( cuda_target )<br />  -- Adds the cufft library to the target (can be any target).  Handles whether<br />     you are in emulation mode or not.<br /></pre>
    <p><br /></p>
<pre>  CUDA_ADD_CUBLAS_TO_TARGET( cuda_target )<br />  -- Adds the cublas library to the target (can be any target).  Handles<br />     whether you are in emulation mode or not.<br /></pre>
    <p><br /></p>
<pre>  CUDA_ADD_EXECUTABLE( cuda_target file0 file1 ...<br />                       [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL] [OPTIONS ...] )<br />  -- Creates an executable "cuda_target" which is made up of the files<br />     specified.  All of the non CUDA C files are compiled using the standard<br />     build rules specified by CMAKE and the cuda files are compiled to object<br />     files using nvcc and the host compiler.  In addition CUDA_INCLUDE_DIRS is<br />     added automatically to include_directories().  Some standard CMake target<br />     calls can be used on the target after calling this macro<br />     (e.g. set_target_properties and target_link_libraries), but setting<br />     properties that adjust compilation flags will not affect code compiled by<br />     nvcc.  Such flags should be modified before calling CUDA_ADD_EXECUTABLE,<br />     CUDA_ADD_LIBRARY or CUDA_WRAP_SRCS.<br /></pre>
    <p><br /></p>
<pre>  CUDA_ADD_LIBRARY( cuda_target file0 file1 ...<br />                    [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL] [OPTIONS ...] )<br />  -- Same as CUDA_ADD_EXECUTABLE except that a library is created.<br /></pre>
    <p><br /></p>
<pre>  CUDA_BUILD_CLEAN_TARGET()<br />  -- Creates a convience target that deletes all the dependency files<br />     generated.  You should make clean after running this target to ensure the<br />     dependency files get regenerated.<br /></pre>
    <p><br /></p>
<pre>  CUDA_COMPILE( generated_files file0 file1 ... [STATIC | SHARED | MODULE]<br />                [OPTIONS ...] )<br />  -- Returns a list of generated files from the input source files to be used<br />     with ADD_LIBRARY or ADD_EXECUTABLE.<br /></pre>
    <p><br /></p>
<pre>  CUDA_COMPILE_PTX( generated_files file0 file1 ... [OPTIONS ...] )<br />  -- Returns a list of PTX files generated from the input source files.<br /></pre>
    <p><br /></p>
<pre>  CUDA_COMPUTE_SEPARABLE_COMPILATION_OBJECT_FILE_NAME( output_file_var<br />                                                       cuda_target<br />                                                       object_files )<br />  -- Compute the name of the intermediate link file used for separable<br />     compilation.  This file name is typically passed into<br />     CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS.  output_file_var is produced<br />     based on cuda_target the list of objects files that need separable<br />     compilation as specified by object_files.  If the object_files list is<br />     empty, then output_file_var will be empty.  This function is called<br />     automatically for CUDA_ADD_LIBRARY and CUDA_ADD_EXECUTABLE.  Note that<br />     this is a function and not a macro.<br /></pre>
    <p><br /></p>
<pre>  CUDA_INCLUDE_DIRECTORIES( path0 path1 ... )<br />  -- Sets the directories that should be passed to nvcc<br />     (e.g. nvcc -Ipath0 -Ipath1 ... ). These paths usually contain other .cu<br />     files.<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>  CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS( output_file_var cuda_target<br />                                           nvcc_flags object_files)<br /></pre>
    <p><br /></p>
<pre>  -- Generates the link object required by separable compilation from the given<br />     object files.  This is called automatically for CUDA_ADD_EXECUTABLE and<br />     CUDA_ADD_LIBRARY, but can be called manually when using CUDA_WRAP_SRCS<br />     directly.  When called from CUDA_ADD_LIBRARY or CUDA_ADD_EXECUTABLE the<br />     nvcc_flags passed in are the same as the flags passed in via the OPTIONS<br />     argument.  The only nvcc flag added automatically is the bitness flag as<br />     specified by CUDA_64_BIT_DEVICE_CODE.  Note that this is a function<br />     instead of a macro.<br /></pre>
    <p><br /></p>
<pre>  CUDA_WRAP_SRCS ( cuda_target format generated_files file0 file1 ...<br />                   [STATIC | SHARED | MODULE] [OPTIONS ...] )<br />  -- This is where all the magic happens.  CUDA_ADD_EXECUTABLE,<br />     CUDA_ADD_LIBRARY, CUDA_COMPILE, and CUDA_COMPILE_PTX all call this<br />     function under the hood.<br /></pre>
    <p><br /></p>
<pre>     Given the list of files (file0 file1 ... fileN) this macro generates<br />     custom commands that generate either PTX or linkable objects (use "PTX" or<br />     "OBJ" for the format argument to switch).  Files that don't end with .cu<br />     or have the HEADER_FILE_ONLY property are ignored.<br /></pre>
    <p><br /></p>
<pre>     The arguments passed in after OPTIONS are extra command line options to<br />     give to nvcc.  You can also specify per configuration options by<br />     specifying the name of the configuration followed by the options.  General<br />     options must preceed configuration specific options.  Not all<br />     configurations need to be specified, only the ones provided will be used.<br /></pre>
    <p><br /></p>
<pre>        OPTIONS -DFLAG=2 "-DFLAG_OTHER=space in flag"<br />        DEBUG -g<br />        RELEASE --use_fast_math<br />        RELWITHDEBINFO --use_fast_math;-g<br />        MINSIZEREL --use_fast_math<br /></pre>
    <p><br /></p>
<pre>     For certain configurations (namely VS generating object files with<br />     CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE set to ON), no generated file will<br />     be produced for the given cuda file.  This is because when you add the<br />     cuda file to Visual Studio it knows that this file produces an object file<br />     and will link in the resulting object file automatically.<br /></pre>
    <p><br /></p>
<pre>     This script will also generate a separate cmake script that is used at<br />     build time to invoke nvcc.  This is for several reasons.<br /></pre>
    <p><br /></p>
<pre>       1. nvcc can return negative numbers as return values which confuses<br />       Visual Studio into thinking that the command succeeded.  The script now<br />       checks the error codes and produces errors when there was a problem.<br /></pre>
    <p><br /></p>
<pre>       2. nvcc has been known to not delete incomplete results when it<br />       encounters problems.  This confuses build systems into thinking the<br />       target was generated when in fact an unusable file exists.  The script<br />       now deletes the output files if there was an error.<br /></pre>
    <p><br /></p>
<pre>       3. By putting all the options that affect the build into a file and then<br />       make the build rule dependent on the file, the output files will be<br />       regenerated when the options change.<br /></pre>
    <p><br /></p>
<pre>     This script also looks at optional arguments STATIC, SHARED, or MODULE to<br />     determine when to target the object compilation for a shared library.<br />     BUILD_SHARED_LIBS is ignored in CUDA_WRAP_SRCS, but it is respected in<br />     CUDA_ADD_LIBRARY.  On some systems special flags are added for building<br />     objects intended for shared libraries.  A preprocessor macro,<br />     &lt;target_name&gt;_EXPORTS is defined when a shared library compilation is<br />     detected.<br /></pre>
    <p><br /></p>
<pre>     Flags passed into add_definitions with -D or /D are passed along to nvcc.<br /></pre>
    <p><br /></p>
<p>The script defines the following variables:<br /></p>
<pre>  CUDA_VERSION_MAJOR    -- The major version of cuda as reported by nvcc.<br />  CUDA_VERSION_MINOR    -- The minor version.<br />  CUDA_VERSION<br />  CUDA_VERSION_STRING   -- CUDA_VERSION_MAJOR.CUDA_VERSION_MINOR<br /></pre>
    <p><br /></p>
<pre>  CUDA_TOOLKIT_ROOT_DIR -- Path to the CUDA Toolkit (defined if not set).<br />  CUDA_SDK_ROOT_DIR     -- Path to the CUDA SDK.  Use this to find files in the<br />                           SDK.  This script will not directly support finding<br />                           specific libraries or headers, as that isn't<br />                           supported by NVIDIA.  If you want to change<br />                           libraries when the path changes see the<br />                           FindCUDA.cmake script for an example of how to clear<br />                           these variables.  There are also examples of how to<br />                           use the CUDA_SDK_ROOT_DIR to locate headers or<br />                           libraries, if you so choose (at your own risk).<br />  CUDA_INCLUDE_DIRS     -- Include directory for cuda headers.  Added automatically<br />                           for CUDA_ADD_EXECUTABLE and CUDA_ADD_LIBRARY.<br />  CUDA_LIBRARIES        -- Cuda RT library.<br />  CUDA_CUFFT_LIBRARIES  -- Device or emulation library for the Cuda FFT<br />                           implementation (alternative to:<br />                           CUDA_ADD_CUFFT_TO_TARGET macro)<br />  CUDA_CUBLAS_LIBRARIES -- Device or emulation library for the Cuda BLAS<br />                           implementation (alterative to:<br />                           CUDA_ADD_CUBLAS_TO_TARGET macro).<br />  CUDA_cupti_LIBRARY    -- CUDA Profiling Tools Interface library.<br />                           Only available for CUDA version 4.0+.<br />  CUDA_curand_LIBRARY   -- CUDA Random Number Generation library.<br />                           Only available for CUDA version 3.2+.<br />  CUDA_cusparse_LIBRARY -- CUDA Sparse Matrix library.<br />                           Only available for CUDA version 3.2+.<br />  CUDA_npp_LIBRARY      -- NVIDIA Performance Primitives library.<br />                           Only available for CUDA version 4.0+.<br />  CUDA_nppc_LIBRARY      -- NVIDIA Performance Primitives library (core).<br />                           Only available for CUDA version 5.5+.<br />  CUDA_nppi_LIBRARY      -- NVIDIA Performance Primitives library (image processing).<br />                           Only available for CUDA version 5.5+.<br />  CUDA_npps_LIBRARY      -- NVIDIA Performance Primitives library (signal processing).<br />                           Only available for CUDA version 5.5+.<br />  CUDA_nvcuvenc_LIBRARY -- CUDA Video Encoder library.<br />                           Only available for CUDA version 3.2+.<br />                           Windows only.<br />  CUDA_nvcuvid_LIBRARY  -- CUDA Video Decoder library.<br />                           Only available for CUDA version 3.2+.<br />                           Windows only.<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>  James Bigler, NVIDIA Corp (nvidia.com - jbigler)<br />  Abe Stephens, SCI Institute -- <a href="http://www.sci.utah.edu/~abe/FindCuda.html">http://www.sci.utah.edu/~abe/FindCuda.html</a><br /></pre>
    <p><br /></p>
<pre>  Copyright (c) 2008 - 2009 NVIDIA Corporation.  All rights reserved.<br /></pre>
    <p><br /></p>
<pre>  Copyright (c) 2007-2009<br />  Scientific Computing and Imaging Institute, University of Utah<br /></pre>
    <p><br /></p>
<pre>  This code is licensed under the MIT License.  See the FindCUDA.cmake script<br />  for the text of the license.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindCURL"></a><b><code>FindCURL</code></b>: Find curl<br />
    <p>Find the native CURL headers and libraries.<br /></p>
<pre>  CURL_INCLUDE_DIRS   - where to find curl/curl.h, etc.<br />  CURL_LIBRARIES      - List of libraries when using curl.<br />  CURL_FOUND          - True if curl found.<br />  CURL_VERSION_STRING - the version of curl found (since CMake 2.8.8)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindCVS"></a><b><code>FindCVS</code></b>:  <br />
    <p>The module defines the following variables:<br /></p>
<pre>   CVS_EXECUTABLE - path to cvs command line client<br />   CVS_FOUND - true if the command line client was found<br /></pre>
    <p>Example usage:<br /></p>
<pre>   find_package(CVS)<br />   if(CVS_FOUND)<br />     message("CVS found: ${CVS_EXECUTABLE}")<br />   endif()<br /></pre>
    
  </li>
  <li>
    <a name="module:FindCoin3D"></a><b><code>FindCoin3D</code></b>: Find Coin3D (Open Inventor)<br />
    <p>Coin3D is an implementation of the Open Inventor API. It provides data structures and algorithms for 3D visualization <a href="http://www.coin3d.org/">http://www.coin3d.org/</a><br /></p>
<p>This module defines the following variables<br /></p>
<pre>  COIN3D_FOUND         - system has Coin3D - Open Inventor<br />  COIN3D_INCLUDE_DIRS  - where the Inventor include directory can be found<br />  COIN3D_LIBRARIES     - Link to this to use Coin3D<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindCups"></a><b><code>FindCups</code></b>: Try to find the Cups printing system<br />
    <p>Once done this will define<br /></p>
<pre>  CUPS_FOUND - system has Cups<br />  CUPS_INCLUDE_DIR - the Cups include directory<br />  CUPS_LIBRARIES - Libraries needed to use Cups<br />  CUPS_VERSION_STRING - version of Cups found (since CMake 2.8.8)<br />  Set CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE to TRUE if you need a version which<br />  features this function (i.e. at least 1.1.19)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindCurses"></a><b><code>FindCurses</code></b>: Find the curses include file and library<br />
    <p><br /></p>
<pre>  CURSES_FOUND - system has Curses<br />  CURSES_INCLUDE_DIR - the Curses include directory<br />  CURSES_LIBRARIES - The libraries needed to use Curses<br />  CURSES_HAVE_CURSES_H - true if curses.h is available<br />  CURSES_HAVE_NCURSES_H - true if ncurses.h is available<br />  CURSES_HAVE_NCURSES_NCURSES_H - true if ncurses/ncurses.h is available<br />  CURSES_HAVE_NCURSES_CURSES_H - true if ncurses/curses.h is available<br />  CURSES_LIBRARY - set for backwards compatibility with 2.4 CMake<br /></pre>
    <p><br /></p>
<p>Set CURSES_NEED_NCURSES to TRUE before the find_package() command if NCurses functionality is required.</p>

  </li>
  <li>
    <a name="module:FindCxxTest"></a><b><code>FindCxxTest</code></b>: Find CxxTest<br />
    <p>Find the CxxTest suite and declare a helper macro for creating unit tests and integrating them with CTest. For more details on CxxTest see <a href="http://cxxtest.tigris.org">http://cxxtest.tigris.org</a><br /></p>
<p>INPUT Variables<br /></p>
<pre>   CXXTEST_USE_PYTHON [deprecated since 1.3]<br />       Only used in the case both Python &amp; Perl<br />       are detected on the system to control<br />       which CxxTest code generator is used.<br />       Valid only for CxxTest version 3.<br /></pre>
    <p><br /></p>
<pre>       NOTE: In older versions of this Find Module,<br />       this variable controlled if the Python test<br />       generator was used instead of the Perl one,<br />       regardless of which scripting language the<br />       user had installed.<br /></pre>
    <p><br /></p>
<pre>   CXXTEST_TESTGEN_ARGS (since CMake 2.8.3)<br />       Specify a list of options to pass to the CxxTest code<br />       generator.  If not defined, --error-printer is<br />       passed.<br /></pre>
    <p><br /></p>
<p>OUTPUT Variables<br /></p>
<pre>   CXXTEST_FOUND<br />       True if the CxxTest framework was found<br />   CXXTEST_INCLUDE_DIRS<br />       Where to find the CxxTest include directory<br />   CXXTEST_PERL_TESTGEN_EXECUTABLE<br />       The perl-based test generator<br />   CXXTEST_PYTHON_TESTGEN_EXECUTABLE<br />       The python-based test generator<br />   CXXTEST_TESTGEN_EXECUTABLE (since CMake 2.8.3)<br />       The test generator that is actually used (chosen using user preferences<br />       and interpreters found in the system)<br />   CXXTEST_TESTGEN_INTERPRETER (since CMake 2.8.3)<br />       The full path to the Perl or Python executable on the system<br /></pre>
    <p><br /></p>
<p>MACROS for optional use by CMake users:<br /></p>
<pre>    CXXTEST_ADD_TEST(&lt;test_name&gt; &lt;gen_source_file&gt; &lt;input_files_to_testgen...&gt;)<br />       Creates a CxxTest runner and adds it to the CTest testing suite<br />       Parameters:<br />           test_name               The name of the test<br />           gen_source_file         The generated source filename to be<br />                                   generated by CxxTest<br />           input_files_to_testgen  The list of header files containing the<br />                                   CxxTest::TestSuite's to be included in<br />                                   this runner<br /></pre>
    <p><br /></p>
<pre>       #==============<br />       Example Usage:<br /></pre>
    <p><br /></p>
<pre>           find_package(CxxTest)<br />           if(CXXTEST_FOUND)<br />               include_directories(${CXXTEST_INCLUDE_DIR})<br />               enable_testing()<br /></pre>
    <p><br /></p>
<pre>               CXXTEST_ADD_TEST(unittest_foo foo_test.cc<br />                                 ${CMAKE_CURRENT_SOURCE_DIR}/foo_test.h)<br />               target_link_libraries(unittest_foo foo) # as needed<br />           endif()<br /></pre>
    <p><br /></p>
<pre>              This will (if CxxTest is found):<br />              1. Invoke the testgen executable to autogenerate foo_test.cc in the<br />                 binary tree from "foo_test.h" in the current source directory.<br />              2. Create an executable and test called unittest_foo.<br /></pre>
    <p><br /></p>
<pre>      #=============<br />      Example foo_test.h:<br /></pre>
    <p><br /></p>
<pre>          #include &lt;cxxtest/TestSuite.h&gt;<br /></pre>
    <p><br /></p>
<pre>          class MyTestSuite : public CxxTest::TestSuite<br />          {<br />          public:<br />             void testAddition( void )<br />             {<br />                TS_ASSERT( 1 + 1 &gt; 1 );<br />                TS_ASSERT_EQUALS( 1 + 1, 2 );<br />             }<br />          };<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindCygwin"></a><b><code>FindCygwin</code></b>: this module looks for Cygwin<br />
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindDCMTK"></a><b><code>FindDCMTK</code></b>: find DCMTK libraries and applications<br />
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindDart"></a><b><code>FindDart</code></b>: Find DART<br />
    <p>This module looks for the dart testing software and sets DART_ROOT to point to where it found it.<br /></p>

  </li>
  <li>
    <a name="module:FindDevIL"></a><b><code>FindDevIL</code></b>:  <br />
    <p>This module locates the developer's image library. <a href="http://openil.sourceforge.net/">http://openil.sourceforge.net/</a><br /></p>
<p>This module sets:<br /></p>
<pre>   IL_LIBRARIES -   the name of the IL library. These include the full path to<br />                    the core DevIL library. This one has to be linked into the<br />                    application.<br />   ILU_LIBRARIES -  the name of the ILU library. Again, the full path. This<br />                    library is for filters and effects, not actual loading. It<br />                    doesn't have to be linked if the functionality it provides<br />                    is not used.<br />   ILUT_LIBRARIES - the name of the ILUT library. Full path. This part of the<br />                    library interfaces with OpenGL. It is not strictly needed<br />                    in applications.<br />   IL_INCLUDE_DIR - where to find the il.h, ilu.h and ilut.h files.<br />   IL_FOUND -       this is set to TRUE if all the above variables were set.<br />                    This will be set to false if ILU or ILUT are not found,<br />                    even if they are not needed. In most systems, if one<br />                    library is found all the others are as well. That's the<br />                    way the DevIL developers release it.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindDoxygen"></a><b><code>FindDoxygen</code></b>: This module looks for Doxygen and the path to Graphviz's dot<br />
    <p>Doxygen is a documentation generation tool.  Please see <a href="http://www.doxygen.org">http://www.doxygen.org</a><br /></p>
<p>This module accepts the following optional variables:<br /></p>
<pre>   DOXYGEN_SKIP_DOT       = If true this module will skip trying to find Dot<br />                            (an optional component often used by Doxygen)<br /></pre>
    <p><br /></p>
<p>This modules defines the following variables:<br /></p>
<pre>   DOXYGEN_EXECUTABLE     = The path to the doxygen command.<br />   DOXYGEN_FOUND          = Was Doxygen found or not?<br />   DOXYGEN_VERSION        = The version reported by doxygen --version<br /></pre>
    <p><br /></p>
<pre>   DOXYGEN_DOT_EXECUTABLE = The path to the dot program used by doxygen.<br />   DOXYGEN_DOT_FOUND      = Was Dot found or not?<br />   DOXYGEN_DOT_PATH       = The path to dot not including the executable<br /></pre>
    <p><br /></p>
<p><br /></p>

  </li>
  <li>
    <a name="module:FindEXPAT"></a><b><code>FindEXPAT</code></b>: Find expat<br />
    <p>Find the native EXPAT headers and libraries.<br /></p>
<pre>  EXPAT_INCLUDE_DIRS - where to find expat.h, etc.<br />  EXPAT_LIBRARIES    - List of libraries when using expat.<br />  EXPAT_FOUND        - True if expat found.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindFLEX"></a><b><code>FindFLEX</code></b>: Find flex executable and provides a macro to generate custom build rules<br />
    <p><br /></p>
<p>The module defines the following variables:<br /></p>
<pre>  FLEX_FOUND - true is flex executable is found<br />  FLEX_EXECUTABLE - the path to the flex executable<br />  FLEX_VERSION - the version of flex<br />  FLEX_LIBRARIES - The flex libraries<br />  FLEX_INCLUDE_DIRS - The path to the flex headers<br /></pre>
    <p><br /></p>
<p>The minimum required version of flex can be specified using the standard syntax, e.g. find_package(FLEX 2.5.13)<br /></p>
<p><br /></p>
<p>If flex is found on the system, the module provides the macro:<br /></p>
<pre>  FLEX_TARGET(Name FlexInput FlexOutput [COMPILE_FLAGS &lt;string&gt;])<br /></pre>
    <p>which creates a custom command  to generate the &lt;FlexOutput&gt; file from the &lt;FlexInput&gt; file.  If  COMPILE_FLAGS option is specified, the next parameter is added to the flex  command line. Name is an alias used to get  details of  this custom  command.  Indeed the  macro defines  the following variables:<br /></p>
<pre>  FLEX_${Name}_DEFINED - true is the macro ran successfully<br />  FLEX_${Name}_OUTPUTS - the source file generated by the custom rule, an<br />  alias for FlexOutput<br />  FLEX_${Name}_INPUT - the flex source file, an alias for ${FlexInput}<br /></pre>
    <p><br /></p>
<p>Flex scanners oftenly use tokens  defined by Bison: the code generated by Flex  depends of the header  generated by Bison.   This module also defines a macro:<br /></p>
<pre>  ADD_FLEX_BISON_DEPENDENCY(FlexTarget BisonTarget)<br /></pre>
    <p>which  adds the  required dependency  between a  scanner and  a parser where  &lt;FlexTarget&gt;  and &lt;BisonTarget&gt;  are  the  first parameters  of respectively FLEX_TARGET and BISON_TARGET macros.<br /></p>
<pre>  ====================================================================<br />  Example:<br /></pre>
    <p><br /></p>
<pre>   find_package(BISON)<br />   find_package(FLEX)<br /></pre>
    <p><br /></p>
<pre>   BISON_TARGET(MyParser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)<br />   FLEX_TARGET(MyScanner lexer.l  ${CMAKE_CURRENT_BINARY_DIR}/lexer.cpp)<br />   ADD_FLEX_BISON_DEPENDENCY(MyScanner MyParser)<br /></pre>
    <p><br /></p>
<pre>   include_directories(${CMAKE_CURRENT_BINARY_DIR})<br />   add_executable(Foo<br />      Foo.cc<br />      ${BISON_MyParser_OUTPUTS}<br />      ${FLEX_MyScanner_OUTPUTS}<br />   )<br />  ====================================================================<br /></pre>
    
  </li>
  <li>
    <a name="module:FindFLTK"></a><b><code>FindFLTK</code></b>: Find the native FLTK includes and library<br />
    <p><br /></p>
<p>By default FindFLTK.cmake will search for all of the FLTK components and add them to the FLTK_LIBRARIES variable.<br /></p>
<pre>   You can limit the components which get placed in FLTK_LIBRARIES by<br />   defining one or more of the following three options:<br /></pre>
    <p><br /></p>
<pre>     FLTK_SKIP_OPENGL, set to true to disable searching for opengl and<br />                       the FLTK GL library<br />     FLTK_SKIP_FORMS, set to true to disable searching for fltk_forms<br />     FLTK_SKIP_IMAGES, set to true to disable searching for fltk_images<br /></pre>
    <p><br /></p>
<pre>     FLTK_SKIP_FLUID, set to true if the fluid binary need not be present<br />                      at build time<br /></pre>
    <p><br /></p>
<p>The following variables will be defined:<br /></p>
<pre>     FLTK_FOUND, True if all components not skipped were found<br />     FLTK_INCLUDE_DIR, where to find include files<br />     FLTK_LIBRARIES, list of fltk libraries you should link against<br />     FLTK_FLUID_EXECUTABLE, where to find the Fluid tool<br />     FLTK_WRAP_UI, This enables the FLTK_WRAP_UI command<br /></pre>
    <p><br /></p>
<p>The following cache variables are assigned but should not be used. See the FLTK_LIBRARIES variable instead.<br /></p>
<pre>     FLTK_BASE_LIBRARY   = the full path to fltk.lib<br />     FLTK_GL_LIBRARY     = the full path to fltk_gl.lib<br />     FLTK_FORMS_LIBRARY  = the full path to fltk_forms.lib<br />     FLTK_IMAGES_LIBRARY = the full path to fltk_images.lib<br /></pre>
    
  </li>
  <li>
    <a name="module:FindFLTK2"></a><b><code>FindFLTK2</code></b>: Find the native FLTK2 includes and library<br />
    <p>The following settings are defined<br /></p>
<pre>  FLTK2_FLUID_EXECUTABLE, where to find the Fluid tool<br />  FLTK2_WRAP_UI, This enables the FLTK2_WRAP_UI command<br />  FLTK2_INCLUDE_DIR, where to find include files<br />  FLTK2_LIBRARIES, list of fltk2 libraries<br />  FLTK2_FOUND, Don't use FLTK2 if false.<br /></pre>
    <p>The following settings should not be used in general.<br /></p>
<pre>  FLTK2_BASE_LIBRARY   = the full path to fltk2.lib<br />  FLTK2_GL_LIBRARY     = the full path to fltk2_gl.lib<br />  FLTK2_IMAGES_LIBRARY = the full path to fltk2_images.lib<br /></pre>
    
  </li>
  <li>
    <a name="module:FindFreetype"></a><b><code>FindFreetype</code></b>: Locate FreeType library<br />
    <p>This module defines<br /></p>
<pre>  FREETYPE_LIBRARIES, the library to link against<br />  FREETYPE_FOUND, if false, do not try to link to FREETYPE<br />  FREETYPE_INCLUDE_DIRS, where to find headers.<br />  FREETYPE_VERSION_STRING, the version of freetype found (since CMake 2.8.8)<br />  This is the concatenation of the paths:<br />  FREETYPE_INCLUDE_DIR_ft2build<br />  FREETYPE_INCLUDE_DIR_freetype2<br /></pre>
    <p><br /></p>
<p>$FREETYPE_DIR is an environment variable that would correspond to the ./configure --prefix=$FREETYPE_DIR used in building FREETYPE.</p>

  </li>
  <li>
    <a name="module:FindGCCXML"></a><b><code>FindGCCXML</code></b>: Find the GCC-XML front-end executable.<br />
    <p><br /></p>
<p>This module will define the following variables:<br /></p>
<pre>  GCCXML - the GCC-XML front-end executable.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGDAL"></a><b><code>FindGDAL</code></b>:  <br />
    <p>Locate gdal<br /></p>
<p>This module accepts the following environment variables:<br /></p>
<pre>    GDAL_DIR or GDAL_ROOT - Specify the location of GDAL<br /></pre>
    <p><br /></p>
<p>This module defines the following CMake variables:<br /></p>
<pre>    GDAL_FOUND - True if libgdal is found<br />    GDAL_LIBRARY - A variable pointing to the GDAL library<br />    GDAL_INCLUDE_DIR - Where to find the headers<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGIF"></a><b><code>FindGIF</code></b>:  <br />
    <p>This module searches giflib and defines GIF_LIBRARIES - libraries to link to in order to use GIF GIF_FOUND, if false, do not try to link GIF_INCLUDE_DIR, where to find the headers GIF_VERSION, reports either version 4 or 3 (for everything before version 4)<br /></p>
<p>The minimum required version of giflib can be specified using the standard syntax, e.g. find_package(GIF 4)<br /></p>
<p>$GIF_DIR is an environment variable that would correspond to the ./configure --prefix=$GIF_DIR</p>

  </li>
  <li>
    <a name="module:FindGLEW"></a><b><code>FindGLEW</code></b>: Find the OpenGL Extension Wrangler Library (GLEW)<br />
    <p>This module defines the following variables:<br /></p>
<pre>  GLEW_INCLUDE_DIRS - include directories for GLEW<br />  GLEW_LIBRARIES - libraries to link against GLEW<br />  GLEW_FOUND - true if GLEW has been found and can be used<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGLUT"></a><b><code>FindGLUT</code></b>: try to find glut library and include files<br />
    <pre>  GLUT_INCLUDE_DIR, where to find GL/glut.h, etc.<br />  GLUT_LIBRARIES, the libraries to link against<br />  GLUT_FOUND, If false, do not try to use GLUT.<br /></pre>
    <p>Also defined, but not for general use are:<br /></p>
<pre>  GLUT_glut_LIBRARY = the full path to the glut library.<br />  GLUT_Xmu_LIBRARY  = the full path to the Xmu library.<br />  GLUT_Xi_LIBRARY   = the full path to the Xi Library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGTK"></a><b><code>FindGTK</code></b>: try to find GTK (and glib) and GTKGLArea<br />
    <pre>  GTK_INCLUDE_DIR   - Directories to include to use GTK<br />  GTK_LIBRARIES     - Files to link against to use GTK<br />  GTK_FOUND         - GTK was found<br />  GTK_GL_FOUND      - GTK's GL features were found<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGTK2"></a><b><code>FindGTK2</code></b>: FindGTK2.cmake<br />
    <p>This module can find the GTK2 widget libraries and several of its other optional components like gtkmm, glade, and glademm.<br /></p>
<p>NOTE: If you intend to use version checking, CMake 2.6.2 or later is<br /></p>
<pre>       required.<br /></pre>
    <p><br /></p>
<p>Specify one or more of the following components as you call this find module. See example below.<br /></p>
<pre>   gtk<br />   gtkmm<br />   glade<br />   glademm<br /></pre>
    <p><br /></p>
<p>The following variables will be defined for your use<br /></p>
<pre>   GTK2_FOUND - Were all of your specified components found?<br />   GTK2_INCLUDE_DIRS - All include directories<br />   GTK2_LIBRARIES - All libraries<br />   GTK2_DEFINITIONS - Additional compiler flags<br /></pre>
    <p><br /></p>
<pre>   GTK2_VERSION - The version of GTK2 found (x.y.z)<br />   GTK2_MAJOR_VERSION - The major version of GTK2<br />   GTK2_MINOR_VERSION - The minor version of GTK2<br />   GTK2_PATCH_VERSION - The patch version of GTK2<br /></pre>
    <p><br /></p>
<p>Optional variables you can define prior to calling this module:<br /></p>
<pre>   GTK2_DEBUG - Enables verbose debugging of the module<br />   GTK2_ADDITIONAL_SUFFIXES - Allows defining additional directories to<br />                              search for include files<br /></pre>
    <p><br /></p>
<p>================= Example Usage:<br /></p>
<pre>   Call find_package() once, here are some examples to pick from:<br /></pre>
    <p><br /></p>
<pre>   Require GTK 2.6 or later<br />       find_package(GTK2 2.6 REQUIRED gtk)<br /></pre>
    <p><br /></p>
<pre>   Require GTK 2.10 or later and Glade<br />       find_package(GTK2 2.10 REQUIRED gtk glade)<br /></pre>
    <p><br /></p>
<pre>   Search for GTK/GTKMM 2.8 or later<br />       find_package(GTK2 2.8 COMPONENTS gtk gtkmm)<br /></pre>
    <p><br /></p>
<pre>   if(GTK2_FOUND)<br />      include_directories(${GTK2_INCLUDE_DIRS})<br />      add_executable(mygui mygui.cc)<br />      target_link_libraries(mygui ${GTK2_LIBRARIES})<br />   endif()<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindGTest"></a><b><code>FindGTest</code></b>: --------------------<br />
    <p>Locate the Google C++ Testing Framework.<br /></p>
<p>Defines the following variables:<br /></p>
<pre>   GTEST_FOUND - Found the Google Testing framework<br />   GTEST_INCLUDE_DIRS - Include directories<br /></pre>
    <p><br /></p>
<p>Also defines the library variables below as normal variables.  These contain debug/optimized keywords when a debugging library is found.<br /></p>
<pre>   GTEST_BOTH_LIBRARIES - Both libgtest &amp; libgtest-main<br />   GTEST_LIBRARIES - libgtest<br />   GTEST_MAIN_LIBRARIES - libgtest-main<br /></pre>
    <p><br /></p>
<p>Accepts the following variables as input:<br /></p>
<pre>   GTEST_ROOT - (as a CMake or environment variable)<br />                The root directory of the gtest install prefix<br /></pre>
    <p><br /></p>
<pre>   GTEST_MSVC_SEARCH - If compiling with MSVC, this variable can be set to<br />                       "MD" or "MT" to enable searching a GTest build tree<br />                       (defaults: "MD")<br /></pre>
    <p><br /></p>
<p>Example Usage:<br /></p>
<pre>    enable_testing()<br />    find_package(GTest REQUIRED)<br />    include_directories(${GTEST_INCLUDE_DIRS})<br /></pre>
    <p><br /></p>
<pre>    add_executable(foo foo.cc)<br />    target_link_libraries(foo ${GTEST_BOTH_LIBRARIES})<br /></pre>
    <p><br /></p>
<pre>    add_test(AllTestsInFoo foo)<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>If you would like each Google test to show up in CTest as a test you may use the following macro. NOTE: It will slow down your tests by running an executable for each test and test fixture.  You will also have to rerun CMake after adding or removing tests or test fixtures.<br /></p>
<p>GTEST_ADD_TESTS(executable extra_args ARGN)<br /></p>
<pre>    executable = The path to the test executable<br />    extra_args = Pass a list of extra arguments to be passed to<br />                 executable enclosed in quotes (or "" for none)<br />    ARGN =       A list of source files to search for tests &amp; test<br />                 fixtures.<br /></pre>
    <p><br /></p>
<pre>  Example:<br />     set(FooTestArgs --foo 1 --bar 2)<br />     add_executable(FooTest FooUnitTest.cc)<br />     GTEST_ADD_TESTS(FooTest "${FooTestArgs}" FooUnitTest.cc)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGettext"></a><b><code>FindGettext</code></b>: Find GNU gettext tools<br />
    <p>This module looks for the GNU gettext tools. This module defines the following values:<br /></p>
<pre>  GETTEXT_MSGMERGE_EXECUTABLE: the full path to the msgmerge tool.<br />  GETTEXT_MSGFMT_EXECUTABLE: the full path to the msgfmt tool.<br />  GETTEXT_FOUND: True if gettext has been found.<br />  GETTEXT_VERSION_STRING: the version of gettext found (since CMake 2.8.8)<br /></pre>
    <p><br /></p>
<p>Additionally it provides the following macros: GETTEXT_CREATE_TRANSLATIONS ( outputFile [ALL] file1 ... fileN )<br /></p>
<pre>    This will create a target "translations" which will convert the<br />    given input po files into the binary output mo file. If the<br />    ALL option is used, the translations will also be created when<br />    building the default target.<br /></pre>
    <p>GETTEXT_PROCESS_POT( &lt;potfile&gt; [ALL] [INSTALL_DESTINATION &lt;destdir&gt;] LANGUAGES &lt;lang1&gt; &lt;lang2&gt; ... )<br /></p>
<pre>     Process the given pot file to mo files.<br />     If INSTALL_DESTINATION is given then automatically install rules will be created,<br />     the language subdirectory will be taken into account (by default use share/locale/).<br />     If ALL is specified, the pot file is processed when building the all traget.<br />     It creates a custom target "potfile".<br /></pre>
    <p>GETTEXT_PROCESS_PO_FILES( &lt;lang&gt; [ALL] [INSTALL_DESTINATION &lt;dir&gt;] PO_FILES &lt;po1&gt; &lt;po2&gt; ... )<br /></p>
<pre>     Process the given po files to mo files for the given language.<br />     If INSTALL_DESTINATION is given then automatically install rules will be created,<br />     the language subdirectory will be taken into account (by default use share/locale/).<br />     If ALL is specified, the po files are processed when building the all traget.<br />     It creates a custom target "pofiles".<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGit"></a><b><code>FindGit</code></b>:  <br />
    <p>The module defines the following variables:<br /></p>
<pre>   GIT_EXECUTABLE - path to git command line client<br />   GIT_FOUND - true if the command line client was found<br />   GIT_VERSION_STRING - the version of git found (since CMake 2.8.8)<br /></pre>
    <p>Example usage:<br /></p>
<pre>   find_package(Git)<br />   if(GIT_FOUND)<br />     message("git found: ${GIT_EXECUTABLE}")<br />   endif()<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGnuTLS"></a><b><code>FindGnuTLS</code></b>: Try to find the GNU Transport Layer Security library (gnutls)<br />
    <p><br /></p>
<p>Once done this will define<br /></p>
<pre>  GNUTLS_FOUND - System has gnutls<br />  GNUTLS_INCLUDE_DIR - The gnutls include directory<br />  GNUTLS_LIBRARIES - The libraries needed to use gnutls<br />  GNUTLS_DEFINITIONS - Compiler switches required for using gnutls<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGnuplot"></a><b><code>FindGnuplot</code></b>: this module looks for gnuplot<br />
    <p><br /></p>
<p>Once done this will define<br /></p>
<pre>  GNUPLOT_FOUND - system has Gnuplot<br />  GNUPLOT_EXECUTABLE - the Gnuplot executable<br />  GNUPLOT_VERSION_STRING - the version of Gnuplot found (since CMake 2.8.8)<br /></pre>
    <p><br /></p>
<p>GNUPLOT_VERSION_STRING will not work for old versions like 3.7.1.</p>

  </li>
  <li>
    <a name="module:FindHDF5"></a><b><code>FindHDF5</code></b>: Find HDF5, a library for reading and writing self describing array data.<br />
    <p><br /></p>
<p>This module invokes the HDF5 wrapper compiler that should be installed alongside HDF5.  Depending upon the HDF5 Configuration, the wrapper compiler is called either h5cc or h5pcc.  If this succeeds, the module will then call the compiler with the -show argument to see what flags are used when compiling an HDF5 client application.<br /></p>
<p>The module will optionally accept the COMPONENTS argument.  If no COMPONENTS are specified, then the find module will default to finding only the HDF5 C library.  If one or more COMPONENTS are specified, the module will attempt to find the language bindings for the specified components.  The only valid components are C, CXX, Fortran, HL, and Fortran_HL.  If the COMPONENTS argument is not given, the module will attempt to find only the C bindings.<br /></p>
<p>On UNIX systems, this module will read the variable HDF5_USE_STATIC_LIBRARIES to determine whether or not to prefer a static link to a dynamic link for HDF5 and all of it's dependencies.  To use this feature, make sure that the HDF5_USE_STATIC_LIBRARIES variable is set before the call to find_package.<br /></p>
<p>To provide the module with a hint about where to find your HDF5 installation, you can set the environment variable HDF5_ROOT.  The Find module will then look in this path when searching for HDF5 executables, paths, and libraries.<br /></p>
<p>In addition to finding the includes and libraries required to compile an HDF5 client application, this module also makes an effort to find tools that come with the HDF5 distribution that may be useful for regression testing.<br /></p>
<p>This module will define the following variables:<br /></p>
<pre>  HDF5_INCLUDE_DIRS - Location of the hdf5 includes<br />  HDF5_INCLUDE_DIR - Location of the hdf5 includes (deprecated)<br />  HDF5_DEFINITIONS - Required compiler definitions for HDF5<br />  HDF5_C_LIBRARIES - Required libraries for the HDF5 C bindings.<br />  HDF5_CXX_LIBRARIES - Required libraries for the HDF5 C++ bindings<br />  HDF5_Fortran_LIBRARIES - Required libraries for the HDF5 Fortran bindings<br />  HDF5_HL_LIBRARIES - Required libraries for the HDF5 high level API<br />  HDF5_Fortran_HL_LIBRARIES - Required libraries for the high level Fortran<br />                              bindings.<br />  HDF5_LIBRARIES - Required libraries for all requested bindings<br />  HDF5_FOUND - true if HDF5 was found on the system<br />  HDF5_LIBRARY_DIRS - the full set of library directories<br />  HDF5_IS_PARALLEL - Whether or not HDF5 was found with parallel IO support<br />  HDF5_C_COMPILER_EXECUTABLE - the path to the HDF5 C wrapper compiler<br />  HDF5_CXX_COMPILER_EXECUTABLE - the path to the HDF5 C++ wrapper compiler<br />  HDF5_Fortran_COMPILER_EXECUTABLE - the path to the HDF5 Fortran wrapper compiler<br />  HDF5_DIFF_EXECUTABLE - the path to the HDF5 dataset comparison tool<br /></pre>
    
  </li>
  <li>
    <a name="module:FindHSPELL"></a><b><code>FindHSPELL</code></b>: Try to find Hspell<br />
    <p>Once done this will define<br /></p>
<pre>  HSPELL_FOUND - system has Hspell<br />  HSPELL_INCLUDE_DIR - the Hspell include directory<br />  HSPELL_LIBRARIES - The libraries needed to use Hspell<br />  HSPELL_DEFINITIONS - Compiler switches required for using Hspell<br /></pre>
    <p><br /></p>
<pre>  HSPELL_VERSION_STRING - The version of Hspell found (x.y)<br />  HSPELL_MAJOR_VERSION  - the major version of Hspell<br />  HSPELL_MINOR_VERSION  - The minor version of Hspell<br /></pre>
    
  </li>
  <li>
    <a name="module:FindHTMLHelp"></a><b><code>FindHTMLHelp</code></b>: This module looks for Microsoft HTML Help Compiler<br />
    <p>It defines:<br /></p>
<pre>   HTML_HELP_COMPILER     : full path to the Compiler (hhc.exe)<br />   HTML_HELP_INCLUDE_PATH : include path to the API (htmlhelp.h)<br />   HTML_HELP_LIBRARY      : full path to the library (htmlhelp.lib)<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindHg"></a><b><code>FindHg</code></b>:  <br />
    <p>The module defines the following variables:<br /></p>
<pre>   HG_EXECUTABLE - path to mercurial command line client (hg)<br />   HG_FOUND - true if the command line client was found<br />   HG_VERSION_STRING - the version of mercurial found<br /></pre>
    <p>Example usage:<br /></p>
<pre>   find_package(Hg)<br />   if(HG_FOUND)<br />     message("hg found: ${HG_EXECUTABLE}")<br />   endif()<br /></pre>
    
  </li>
  <li>
    <a name="module:FindITK"></a><b><code>FindITK</code></b>: Find an ITK installation or build tree.
  </li>
  <li>
    <a name="module:FindIcotool"></a><b><code>FindIcotool</code></b>: Find icotool<br />
    <p>This module looks for icotool. This module defines the following values:<br /></p>
<pre>  ICOTOOL_EXECUTABLE: the full path to the icotool tool.<br />  ICOTOOL_FOUND: True if icotool has been found.<br />  ICOTOOL_VERSION_STRING: the version of icotool found.<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindImageMagick"></a><b><code>FindImageMagick</code></b>: Find the ImageMagick binary suite.<br />
    <p>This module will search for a set of ImageMagick tools specified as components in the FIND_PACKAGE call. Typical components include, but are not limited to (future versions of ImageMagick might have additional components not listed here):<br /></p>
<pre>  animate<br />  compare<br />  composite<br />  conjure<br />  convert<br />  display<br />  identify<br />  import<br />  mogrify<br />  montage<br />  stream<br /></pre>
    <p><br /></p>
<p>If no component is specified in the FIND_PACKAGE call, then it only searches for the ImageMagick executable directory. This code defines the following variables:<br /></p>
<pre>  ImageMagick_FOUND                  - TRUE if all components are found.<br />  ImageMagick_EXECUTABLE_DIR         - Full path to executables directory.<br />  ImageMagick_&lt;component&gt;_FOUND      - TRUE if &lt;component&gt; is found.<br />  ImageMagick_&lt;component&gt;_EXECUTABLE - Full path to &lt;component&gt; executable.<br />  ImageMagick_VERSION_STRING         - the version of ImageMagick found<br />                                       (since CMake 2.8.8)<br /></pre>
    <p><br /></p>
<p>ImageMagick_VERSION_STRING will not work for old versions like 5.2.3.<br /></p>
<p>There are also components for the following ImageMagick APIs:<br /></p>
<pre>  Magick++<br />  MagickWand<br />  MagickCore<br /></pre>
    <p><br /></p>
<p>For these components the following variables are set:<br /></p>
<pre>  ImageMagick_FOUND                    - TRUE if all components are found.<br />  ImageMagick_INCLUDE_DIRS             - Full paths to all include dirs.<br />  ImageMagick_LIBRARIES                - Full paths to all libraries.<br />  ImageMagick_&lt;component&gt;_FOUND        - TRUE if &lt;component&gt; is found.<br />  ImageMagick_&lt;component&gt;_INCLUDE_DIRS - Full path to &lt;component&gt; include dirs.<br />  ImageMagick_&lt;component&gt;_LIBRARIES    - Full path to &lt;component&gt; libraries.<br /></pre>
    <p><br /></p>
<p>Example Usages:<br /></p>
<pre>  find_package(ImageMagick)<br />  find_package(ImageMagick COMPONENTS convert)<br />  find_package(ImageMagick COMPONENTS convert mogrify display)<br />  find_package(ImageMagick COMPONENTS Magick++)<br />  find_package(ImageMagick COMPONENTS Magick++ convert)<br /></pre>
    <p><br /></p>
<p>Note that the standard FIND_PACKAGE features are supported (i.e., QUIET, REQUIRED, etc.).</p>

  </li>
  <li>
    <a name="module:FindJNI"></a><b><code>FindJNI</code></b>: Find JNI java libraries.<br />
    <p>This module finds if Java is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  JNI_INCLUDE_DIRS      = the include dirs to use<br />  JNI_LIBRARIES         = the libraries to use<br />  JNI_FOUND             = TRUE if JNI headers and libraries were found.<br />  JAVA_AWT_LIBRARY      = the path to the jawt library<br />  JAVA_JVM_LIBRARY      = the path to the jvm library<br />  JAVA_INCLUDE_PATH     = the include path to jni.h<br />  JAVA_INCLUDE_PATH2    = the include path to jni_md.h<br />  JAVA_AWT_INCLUDE_PATH = the include path to jawt.h<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindJPEG"></a><b><code>FindJPEG</code></b>: Find JPEG<br />
    <p>Find the native JPEG includes and library This module defines<br /></p>
<pre>  JPEG_INCLUDE_DIR, where to find jpeglib.h, etc.<br />  JPEG_LIBRARIES, the libraries needed to use JPEG.<br />  JPEG_FOUND, If false, do not try to use JPEG.<br /></pre>
    <p>also defined, but not for general use are<br /></p>
<pre>  JPEG_LIBRARY, where to find the JPEG library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindJasper"></a><b><code>FindJasper</code></b>: Try to find the Jasper JPEG2000 library<br />
    <p>Once done this will define<br /></p>
<pre>  JASPER_FOUND - system has Jasper<br />  JASPER_INCLUDE_DIR - the Jasper include directory<br />  JASPER_LIBRARIES - the libraries needed to use Jasper<br />  JASPER_VERSION_STRING - the version of Jasper found (since CMake 2.8.8)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindJava"></a><b><code>FindJava</code></b>: Find Java<br />
    <p>This module finds if Java is installed and determines where the include files and libraries are. This code sets the following variables:<br /></p>
<pre>  Java_JAVA_EXECUTABLE    = the full path to the Java runtime<br />  Java_JAVAC_EXECUTABLE   = the full path to the Java compiler<br />  Java_JAVAH_EXECUTABLE   = the full path to the Java header generator<br />  Java_JAVADOC_EXECUTABLE = the full path to the Java documention generator<br />  Java_JAR_EXECUTABLE     = the full path to the Java archiver<br />  Java_VERSION_STRING     = Version of the package found (java version), eg. 1.6.0_12<br />  Java_VERSION_MAJOR      = The major version of the package found.<br />  Java_VERSION_MINOR      = The minor version of the package found.<br />  Java_VERSION_PATCH      = The patch version of the package found.<br />  Java_VERSION_TWEAK      = The tweak version of the package found (after '_')<br />  Java_VERSION            = This is set to: $major.$minor.$patch(.$tweak)<br /></pre>
    <p><br /></p>
<p>The minimum required version of Java can be specified using the standard CMake syntax, e.g. find_package(Java 1.5)<br /></p>
<p>NOTE: ${Java_VERSION} and ${Java_VERSION_STRING} are not guaranteed to be identical. For example some java version may return: Java_VERSION_STRING = 1.5.0_17 and Java_VERSION        = 1.5.0.17<br /></p>
<p>another example is the Java OEM, with: Java_VERSION_STRING = 1.6.0-oem and Java_VERSION        = 1.6.0<br /></p>
<p>For these components the following variables are set:<br /></p>
<pre>  Java_FOUND                    - TRUE if all components are found.<br />  Java_INCLUDE_DIRS             - Full paths to all include dirs.<br />  Java_LIBRARIES                - Full paths to all libraries.<br />  Java_&lt;component&gt;_FOUND        - TRUE if &lt;component&gt; is found.<br /></pre>
    <p><br /></p>
<p>Example Usages:<br /></p>
<pre>  find_package(Java)<br />  find_package(Java COMPONENTS Runtime)<br />  find_package(Java COMPONENTS Development)<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindKDE3"></a><b><code>FindKDE3</code></b>: Find the KDE3 include and library dirs, KDE preprocessors and define a some macros<br />
    <p><br /></p>
<p>This module defines the following variables:<br /></p>
<pre>  KDE3_DEFINITIONS         - compiler definitions required for compiling KDE software<br />  KDE3_INCLUDE_DIR         - the KDE include directory<br />  KDE3_INCLUDE_DIRS        - the KDE and the Qt include directory, for use with include_directories()<br />  KDE3_LIB_DIR             - the directory where the KDE libraries are installed, for use with link_directories()<br />  QT_AND_KDECORE_LIBS      - this contains both the Qt and the kdecore library<br />  KDE3_DCOPIDL_EXECUTABLE  - the dcopidl executable<br />  KDE3_DCOPIDL2CPP_EXECUTABLE - the dcopidl2cpp executable<br />  KDE3_KCFGC_EXECUTABLE    - the kconfig_compiler executable<br />  KDE3_FOUND               - set to TRUE if all of the above has been found<br /></pre>
    <p><br /></p>
<p>The following user adjustable options are provided:<br /></p>
<pre>  KDE3_BUILD_TESTS - enable this to build KDE testcases<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>It also adds the following macros (from KDE3Macros.cmake) SRCS_VAR is always the variable which contains the list of source files for your application or library.<br /></p>
<p>KDE3_AUTOMOC(file1 ... fileN)<br /></p>
<pre>    Call this if you want to have automatic moc file handling.<br />    This means if you include "foo.moc" in the source file foo.cpp<br />    a moc file for the header foo.h will be created automatically.<br />    You can set the property SKIP_AUTOMAKE using set_source_files_properties()<br />    to exclude some files in the list from being processed.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_MOC_FILES(SRCS_VAR file1 ... fileN )<br /></p>
<pre>    If you don't use the KDE3_AUTOMOC() macro, for the files<br />    listed here moc files will be created (named "foo.moc.cpp")<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_DCOP_SKELS(SRCS_VAR header1.h ... headerN.h )<br /></p>
<pre>    Use this to generate DCOP skeletions from the listed headers.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_DCOP_STUBS(SRCS_VAR header1.h ... headerN.h )<br /></p>
<pre>     Use this to generate DCOP stubs from the listed headers.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_UI_FILES(SRCS_VAR file1.ui ... fileN.ui )<br /></p>
<pre>    Use this to add the Qt designer ui files to your application/library.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_KCFG_FILES(SRCS_VAR file1.kcfgc ... fileN.kcfgc )<br /></p>
<pre>    Use this to add KDE kconfig compiler files to your application/library.<br /></pre>
    <p><br /></p>
<p>KDE3_INSTALL_LIBTOOL_FILE(target)<br /></p>
<pre>    This will create and install a simple libtool file for the given target.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_EXECUTABLE(name file1 ... fileN )<br /></p>
<pre>    Currently identical to add_executable(), may provide some advanced features in the future.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_KPART(name [WITH_PREFIX] file1 ... fileN )<br /></p>
<pre>    Create a KDE plugin (KPart, kioslave, etc.) from the given source files.<br />    If WITH_PREFIX is given, the resulting plugin will have the prefix "lib", otherwise it won't.<br />    It creates and installs an appropriate libtool la-file.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_KDEINIT_EXECUTABLE(name file1 ... fileN )<br /></p>
<pre>    Create a KDE application in the form of a module loadable via kdeinit.<br />    A library named kdeinit_&lt;name&gt; will be created and a small executable which links to it.<br /></pre>
    <p><br /></p>
<p>The option KDE3_ENABLE_FINAL to enable all-in-one compilation is no longer supported.<br /></p>
<p><br /></p>
<p>Author: Alexander Neundorf &lt;neundorf@kde.org&gt;</p>

  </li>
  <li>
    <a name="module:FindKDE4"></a><b><code>FindKDE4</code></b>:  <br />
    <p>Find KDE4 and provide all necessary variables and macros to compile software for it. It looks for KDE 4 in the following directories in the given order:<br /></p>
<pre>  CMAKE_INSTALL_PREFIX<br />  KDEDIRS<br />  /opt/kde4<br /></pre>
    <p><br /></p>
<p>Please look in FindKDE4Internal.cmake and KDE4Macros.cmake for more information. They are installed with the KDE 4 libraries in $KDEDIRS/share/apps/cmake/modules/.<br /></p>
<p>Author: Alexander Neundorf &lt;neundorf@kde.org&gt;</p>

  </li>
  <li>
    <a name="module:FindLAPACK"></a><b><code>FindLAPACK</code></b>: Find LAPACK library<br />
    <p>This module finds an installed fortran library that implements the LAPACK linear-algebra interface (see <a href="http://www.netlib.org/lapack/">http://www.netlib.org/lapack/</a>).<br /></p>
<p>The approach follows that taken for the autoconf macro file, acx_lapack.m4 (distributed at <a href="http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html">http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html</a>).<br /></p>
<p>This module sets the following variables:<br /></p>
<pre>  LAPACK_FOUND - set to true if a library implementing the LAPACK interface<br />    is found<br />  LAPACK_LINKER_FLAGS - uncached list of required linker flags (excluding -l<br />    and -L).<br />  LAPACK_LIBRARIES - uncached list of libraries (using full path name) to<br />    link against to use LAPACK<br />  LAPACK95_LIBRARIES - uncached list of libraries (using full path name) to<br />    link against to use LAPACK95<br />  LAPACK95_FOUND - set to true if a library implementing the LAPACK f95<br />    interface is found<br />  BLA_STATIC  if set on this determines what kind of linkage we do (static)<br />  BLA_VENDOR  if set checks only the specified vendor, if not set checks<br />     all the possibilities<br />  BLA_F95     if set on tries to find the f95 interfaces for BLAS/LAPACK<br /></pre>
    
  </li>
  <li>
    <a name="module:FindLATEX"></a><b><code>FindLATEX</code></b>: Find Latex<br />
    <p>This module finds if Latex is installed and determines where the executables are. This code sets the following variables:<br /></p>
<pre>  LATEX_COMPILER:       path to the LaTeX compiler<br />  PDFLATEX_COMPILER:    path to the PdfLaTeX compiler<br />  BIBTEX_COMPILER:      path to the BibTeX compiler<br />  MAKEINDEX_COMPILER:   path to the MakeIndex compiler<br />  DVIPS_CONVERTER:      path to the DVIPS converter<br />  PS2PDF_CONVERTER:     path to the PS2PDF converter<br />  LATEX2HTML_CONVERTER: path to the LaTeX2Html converter<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindLibArchive"></a><b><code>FindLibArchive</code></b>: Find libarchive library and headers<br />
    <p>The module defines the following variables:<br /></p>
<pre>  LibArchive_FOUND        - true if libarchive was found<br />  LibArchive_INCLUDE_DIRS - include search path<br />  LibArchive_LIBRARIES    - libraries to link<br />  LibArchive_VERSION      - libarchive 3-component version number<br /></pre>
    
  </li>
  <li>
    <a name="module:FindLibLZMA"></a><b><code>FindLibLZMA</code></b>: Find LibLZMA<br />
    <p>Find LibLZMA headers and library<br /></p>
<pre>  LIBLZMA_FOUND             - True if liblzma is found.<br />  LIBLZMA_INCLUDE_DIRS      - Directory where liblzma headers are located.<br />  LIBLZMA_LIBRARIES         - Lzma libraries to link against.<br />  LIBLZMA_HAS_AUTO_DECODER  - True if lzma_auto_decoder() is found (required).<br />  LIBLZMA_HAS_EASY_ENCODER  - True if lzma_easy_encoder() is found (required).<br />  LIBLZMA_HAS_LZMA_PRESET   - True if lzma_lzma_preset() is found (required).<br />  LIBLZMA_VERSION_MAJOR     - The major version of lzma<br />  LIBLZMA_VERSION_MINOR     - The minor version of lzma<br />  LIBLZMA_VERSION_PATCH     - The patch version of lzma<br />  LIBLZMA_VERSION_STRING    - version number as a string (ex: "5.0.3")<br /></pre>
    
  </li>
  <li>
    <a name="module:FindLibXml2"></a><b><code>FindLibXml2</code></b>: Try to find the LibXml2 xml processing library<br />
    <p>Once done this will define<br /></p>
<pre>  LIBXML2_FOUND - System has LibXml2<br />  LIBXML2_INCLUDE_DIR - The LibXml2 include directory<br />  LIBXML2_LIBRARIES - The libraries needed to use LibXml2<br />  LIBXML2_DEFINITIONS - Compiler switches required for using LibXml2<br />  LIBXML2_XMLLINT_EXECUTABLE - The XML checking tool xmllint coming with LibXml2<br />  LIBXML2_VERSION_STRING - the version of LibXml2 found (since CMake 2.8.8)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindLibXslt"></a><b><code>FindLibXslt</code></b>: Try to find the LibXslt library<br />
    <p>Once done this will define<br /></p>
<pre>  LIBXSLT_FOUND - system has LibXslt<br />  LIBXSLT_INCLUDE_DIR - the LibXslt include directory<br />  LIBXSLT_LIBRARIES - Link these to LibXslt<br />  LIBXSLT_DEFINITIONS - Compiler switches required for using LibXslt<br />  LIBXSLT_VERSION_STRING - version of LibXslt found (since CMake 2.8.8)<br /></pre>
    <p>Additionally, the following two variables are set (but not required for using xslt):<br /></p>
<pre>  LIBXSLT_EXSLT_LIBRARIES - Link to these if you need to link against the exslt library<br />  LIBXSLT_XSLTPROC_EXECUTABLE - Contains the full path to the xsltproc executable if found<br /></pre>
    
  </li>
  <li>
    <a name="module:FindLua50"></a><b><code>FindLua50</code></b>:  <br />
    <p>Locate Lua library This module defines<br /></p>
<pre>  LUA50_FOUND, if false, do not try to link to Lua<br />  LUA_LIBRARIES, both lua and lualib<br />  LUA_INCLUDE_DIR, where to find lua.h and lualib.h (and probably lauxlib.h)<br /></pre>
    <p><br /></p>
<p>Note that the expected include convention is<br /></p>
<pre>  #include "lua.h"<br /></pre>
    <p>and not<br /></p>
<pre>  #include &lt;lua/lua.h&gt;<br /></pre>
    <p>This is because, the lua location is not standardized and may exist in locations other than lua/</p>

  </li>
  <li>
    <a name="module:FindLua51"></a><b><code>FindLua51</code></b>:  <br />
    <p>Locate Lua library This module defines<br /></p>
<pre>  LUA51_FOUND, if false, do not try to link to Lua<br />  LUA_LIBRARIES<br />  LUA_INCLUDE_DIR, where to find lua.h<br />  LUA_VERSION_STRING, the version of Lua found (since CMake 2.8.8)<br /></pre>
    <p><br /></p>
<p>Note that the expected include convention is<br /></p>
<pre>  #include "lua.h"<br /></pre>
    <p>and not<br /></p>
<pre>  #include &lt;lua/lua.h&gt;<br /></pre>
    <p>This is because, the lua location is not standardized and may exist in locations other than lua/</p>

  </li>
  <li>
    <a name="module:FindMFC"></a><b><code>FindMFC</code></b>: Find MFC on Windows<br />
    <p>Find the native MFC - i.e. decide if an application can link to the MFC libraries.<br /></p>
<pre>  MFC_FOUND - Was MFC support found<br /></pre>
    <p>You don't need to include anything or link anything to use it.</p>

  </li>
  <li>
    <a name="module:FindMPEG"></a><b><code>FindMPEG</code></b>: Find the native MPEG includes and library<br />
    <p>This module defines<br /></p>
<pre>  MPEG_INCLUDE_DIR, where to find MPEG.h, etc.<br />  MPEG_LIBRARIES, the libraries required to use MPEG.<br />  MPEG_FOUND, If false, do not try to use MPEG.<br /></pre>
    <p>also defined, but not for general use are<br /></p>
<pre>  MPEG_mpeg2_LIBRARY, where to find the MPEG library.<br />  MPEG_vo_LIBRARY, where to find the vo library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindMPEG2"></a><b><code>FindMPEG2</code></b>: Find the native MPEG2 includes and library<br />
    <p>This module defines<br /></p>
<pre>  MPEG2_INCLUDE_DIR, path to mpeg2dec/mpeg2.h, etc.<br />  MPEG2_LIBRARIES, the libraries required to use MPEG2.<br />  MPEG2_FOUND, If false, do not try to use MPEG2.<br /></pre>
    <p>also defined, but not for general use are<br /></p>
<pre>  MPEG2_mpeg2_LIBRARY, where to find the MPEG2 library.<br />  MPEG2_vo_LIBRARY, where to find the vo library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindMPI"></a><b><code>FindMPI</code></b>: Find a Message Passing Interface (MPI) implementation<br />
    <p>The Message Passing Interface (MPI) is a library used to write high-performance distributed-memory parallel applications, and is typically deployed on a cluster. MPI is a standard interface (defined by the MPI forum) for which many implementations are available. All of them have somewhat different include paths, libraries to link against, etc., and this module tries to smooth out those differences.<br /></p>
<p>=== Variables ===<br /></p>
<p>This module will set the following variables per language in your project, where &lt;lang&gt; is one of C, CXX, or Fortran:<br /></p>
<pre>   MPI_&lt;lang&gt;_FOUND           TRUE if FindMPI found MPI flags for &lt;lang&gt;<br />   MPI_&lt;lang&gt;_COMPILER        MPI Compiler wrapper for &lt;lang&gt;<br />   MPI_&lt;lang&gt;_COMPILE_FLAGS   Compilation flags for MPI programs<br />   MPI_&lt;lang&gt;_INCLUDE_PATH    Include path(s) for MPI header<br />   MPI_&lt;lang&gt;_LINK_FLAGS      Linking flags for MPI programs<br />   MPI_&lt;lang&gt;_LIBRARIES       All libraries to link MPI programs against<br /></pre>
    <p>Additionally, FindMPI sets the following variables for running MPI programs from the command line:<br /></p>
<pre>   MPIEXEC                    Executable for running MPI programs<br />   MPIEXEC_NUMPROC_FLAG       Flag to pass to MPIEXEC before giving<br />                              it the number of processors to run on<br />   MPIEXEC_PREFLAGS           Flags to pass to MPIEXEC directly<br />                              before the executable to run.<br />   MPIEXEC_POSTFLAGS          Flags to pass to MPIEXEC after other flags<br /></pre>
    <p>=== Usage ===<br /></p>
<p>To use this module, simply call FindMPI from a CMakeLists.txt file, or run find_package(MPI), then run CMake.  If you are happy with the auto- detected configuration for your language, then you're done.  If not, you have two options:<br /></p>
<pre>   1. Set MPI_&lt;lang&gt;_COMPILER to the MPI wrapper (mpicc, etc.) of your<br />      choice and reconfigure.  FindMPI will attempt to determine all the<br />      necessary variables using THAT compiler's compile and link flags.<br />   2. If this fails, or if your MPI implementation does not come with<br />      a compiler wrapper, then set both MPI_&lt;lang&gt;_LIBRARIES and<br />      MPI_&lt;lang&gt;_INCLUDE_PATH.  You may also set any other variables<br />      listed above, but these two are required.  This will circumvent<br />      autodetection entirely.<br /></pre>
    <p>When configuration is successful, MPI_&lt;lang&gt;_COMPILER will be set to the compiler wrapper for &lt;lang&gt;, if it was found.  MPI_&lt;lang&gt;_FOUND and other variables above will be set if any MPI implementation was found for &lt;lang&gt;, regardless of whether a compiler was found.<br /></p>
<p>When using MPIEXEC to execute MPI applications, you should typically use all of the MPIEXEC flags as follows:<br /></p>
<pre>   ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} PROCS<br />     ${MPIEXEC_PREFLAGS} EXECUTABLE ${MPIEXEC_POSTFLAGS} ARGS<br /></pre>
    <p>where PROCS is the number of processors on which to execute the program, EXECUTABLE is the MPI program, and ARGS are the arguments to pass to the MPI program.<br /></p>
<p>=== Backward Compatibility ===<br /></p>
<p>For backward compatibility with older versions of FindMPI, these variables are set, but deprecated:<br /></p>
<pre>   MPI_FOUND           MPI_COMPILER        MPI_LIBRARY<br />   MPI_COMPILE_FLAGS   MPI_INCLUDE_PATH    MPI_EXTRA_LIBRARY<br />   MPI_LINK_FLAGS      MPI_LIBRARIES<br /></pre>
    <p>In new projects, please use the MPI_&lt;lang&gt;_XXX equivalents.</p>

  </li>
  <li>
    <a name="module:FindMatlab"></a><b><code>FindMatlab</code></b>: this module looks for Matlab<br />
    <p>Defines:<br /></p>
<pre>  MATLAB_INCLUDE_DIR: include path for mex.h, engine.h<br />  MATLAB_LIBRARIES:   required libraries: libmex, etc<br />  MATLAB_MEX_LIBRARY: path to libmex.lib<br />  MATLAB_MX_LIBRARY:  path to libmx.lib<br />  MATLAB_ENG_LIBRARY: path to libeng.lib<br /></pre>
    
  </li>
  <li>
    <a name="module:FindMotif"></a><b><code>FindMotif</code></b>: Try to find Motif (or lesstif)<br />
    <p>Once done this will define:<br /></p>
<pre>  MOTIF_FOUND        - system has MOTIF<br />  MOTIF_INCLUDE_DIR  - include paths to use Motif<br />  MOTIF_LIBRARIES    - Link these to use Motif<br /></pre>
    
  </li>
  <li>
    <a name="module:FindOpenAL"></a><b><code>FindOpenAL</code></b>:  <br />
    <p>Locate OpenAL This module defines OPENAL_LIBRARY OPENAL_FOUND, if false, do not try to link to OpenAL OPENAL_INCLUDE_DIR, where to find the headers<br /></p>
<p>$OPENALDIR is an environment variable that would correspond to the ./configure --prefix=$OPENALDIR used in building OpenAL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake module.</p>

  </li>
  <li>
    <a name="module:FindOpenGL"></a><b><code>FindOpenGL</code></b>: Try to find OpenGL<br />
    <p>Once done this will define<br /></p>
<pre>  OPENGL_FOUND        - system has OpenGL<br />  OPENGL_XMESA_FOUND  - system has XMESA<br />  OPENGL_GLU_FOUND    - system has GLU<br />  OPENGL_INCLUDE_DIR  - the GL include directory<br />  OPENGL_LIBRARIES    - Link these to use OpenGL and GLU<br /></pre>
    <p><br /></p>
<p>If you want to use just GL you can use these values<br /></p>
<pre>  OPENGL_gl_LIBRARY   - Path to OpenGL Library<br />  OPENGL_glu_LIBRARY  - Path to GLU Library<br /></pre>
    <p><br /></p>
<p>On OSX default to using the framework version of opengl People will have to change the cache values of OPENGL_glu_LIBRARY and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX</p>

  </li>
  <li>
    <a name="module:FindOpenMP"></a><b><code>FindOpenMP</code></b>: Finds OpenMP support<br />
    <p>This module can be used to detect OpenMP support in a compiler. If the compiler supports OpenMP, the flags required to compile with OpenMP support are returned in variables for the different languages. The variables may be empty if the compiler does not need a special flag to support OpenMP.<br /></p>
<p>The following variables are set:<br /></p>
<pre>   OpenMP_C_FLAGS - flags to add to the C compiler for OpenMP support<br />   OpenMP_CXX_FLAGS - flags to add to the CXX compiler for OpenMP support<br />   OPENMP_FOUND - true if openmp is detected<br /></pre>
    <p><br /></p>
<p>Supported compilers can be found at <a href="http://openmp.org/wp/openmp-compilers/">http://openmp.org/wp/openmp-compilers/</a></p>

  </li>
  <li>
    <a name="module:FindOpenSSL"></a><b><code>FindOpenSSL</code></b>: Try to find the OpenSSL encryption library<br />
    <p>Once done this will define<br /></p>
<pre>  OPENSSL_ROOT_DIR - Set this variable to the root installation of OpenSSL<br /></pre>
    <p><br /></p>
<p>Read-Only variables:<br /></p>
<pre>  OPENSSL_FOUND - system has the OpenSSL library<br />  OPENSSL_INCLUDE_DIR - the OpenSSL include directory<br />  OPENSSL_LIBRARIES - The libraries needed to use OpenSSL<br />  OPENSSL_VERSION - This is set to $major.$minor.$revision$path (eg. 0.9.8s)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindOpenSceneGraph"></a><b><code>FindOpenSceneGraph</code></b>: Find OpenSceneGraph<br />
    <p>This module searches for the OpenSceneGraph core "osg" library as well as OpenThreads, and whatever additional COMPONENTS (nodekits) that you specify.<br /></p>
<pre>    See <a href="http://www.openscenegraph.org">http://www.openscenegraph.org</a><br /></pre>
    <p><br /></p>
<p>NOTE: To use this module effectively you must either require CMake &gt;= 2.6.3 with cmake_minimum_required(VERSION 2.6.3) or download and place FindOpenThreads.cmake, Findosg_functions.cmake, Findosg.cmake, and Find&lt;etc&gt;.cmake files into your CMAKE_MODULE_PATH.<br /></p>
<p>==================================<br /></p>
<p>This module accepts the following variables (note mixed case)<br /></p>
<pre>    OpenSceneGraph_DEBUG - Enable debugging output<br /></pre>
    <p><br /></p>
<pre>    OpenSceneGraph_MARK_AS_ADVANCED - Mark cache variables as advanced<br />                                      automatically<br /></pre>
    <p><br /></p>
<p>The following environment variables are also respected for finding the OSG and it's various components.  CMAKE_PREFIX_PATH can also be used for this (see find_library() CMake documentation).<br /></p>
<pre>    &lt;MODULE&gt;_DIR (where MODULE is of the form "OSGVOLUME" and there is a FindosgVolume.cmake file)<br />    OSG_DIR<br />    OSGDIR<br />    OSG_ROOT<br /></pre>
    <p><br /></p>
<p>[CMake 2.8.10]: The CMake variable OSG_DIR can now be used as well to influence detection, instead of needing to specify an environment variable.<br /></p>
<p>This module defines the following output variables:<br /></p>
<pre>    OPENSCENEGRAPH_FOUND - Was the OSG and all of the specified components found?<br /></pre>
    <p><br /></p>
<pre>    OPENSCENEGRAPH_VERSION - The version of the OSG which was found<br /></pre>
    <p><br /></p>
<pre>    OPENSCENEGRAPH_INCLUDE_DIRS - Where to find the headers<br /></pre>
    <p><br /></p>
<pre>    OPENSCENEGRAPH_LIBRARIES - The OSG libraries<br /></pre>
    <p><br /></p>
<p>================================== Example Usage:<br /></p>
<pre>  find_package(OpenSceneGraph 2.0.0 REQUIRED osgDB osgUtil)<br />      # libOpenThreads &amp; libosg automatically searched<br />  include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})<br /></pre>
    <p><br /></p>
<pre>  add_executable(foo foo.cc)<br />  target_link_libraries(foo ${OPENSCENEGRAPH_LIBRARIES})<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindOpenThreads"></a><b><code>FindOpenThreads</code></b>:  <br />
    <p>OpenThreads is a C++ based threading library. Its largest userbase seems to OpenSceneGraph so you might notice I accept OSGDIR as an environment path. I consider this part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module.<br /></p>
<p>Locate OpenThreads This module defines OPENTHREADS_LIBRARY OPENTHREADS_FOUND, if false, do not try to link to OpenThreads OPENTHREADS_INCLUDE_DIR, where to find the headers<br /></p>
<p>$OPENTHREADS_DIR is an environment variable that would correspond to the ./configure --prefix=$OPENTHREADS_DIR used in building osg.<br /></p>
<p>[CMake 2.8.10]: The CMake variables OPENTHREADS_DIR or OSG_DIR can now be used as well to influence detection, instead of needing to specify an environment variable.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindPHP4"></a><b><code>FindPHP4</code></b>: Find PHP4<br />
    <p>This module finds if PHP4 is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  PHP4_INCLUDE_PATH       = path to where php.h can be found<br />  PHP4_EXECUTABLE         = full path to the php4 binary<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindPNG"></a><b><code>FindPNG</code></b>: Find the native PNG includes and library<br />
    <p><br /></p>
<p>This module searches libpng, the library for working with PNG images.<br /></p>
<p>It defines the following variables<br /></p>
<pre>  PNG_INCLUDE_DIRS, where to find png.h, etc.<br />  PNG_LIBRARIES, the libraries to link against to use PNG.<br />  PNG_DEFINITIONS - You should add_definitons(${PNG_DEFINITIONS}) before compiling code that includes png library files.<br />  PNG_FOUND, If false, do not try to use PNG.<br />  PNG_VERSION_STRING - the version of the PNG library found (since CMake 2.8.8)<br /></pre>
    <p>Also defined, but not for general use are<br /></p>
<pre>  PNG_LIBRARY, where to find the PNG library.<br /></pre>
    <p>For backward compatiblity the variable PNG_INCLUDE_DIR is also set. It has the same value as PNG_INCLUDE_DIRS.<br /></p>
<p>Since PNG depends on the ZLib compression library, none of the above will be defined unless ZLib can be found.</p>

  </li>
  <li>
    <a name="module:FindPackageHandleStandardArgs"></a><b><code>FindPackageHandleStandardArgs</code></b>:  <br />
    <p>FIND_PACKAGE_HANDLE_STANDARD_ARGS(&lt;name&gt; ... )<br /></p>
<p>This function is intended to be used in FindXXX.cmake modules files. It handles the REQUIRED, QUIET and version-related arguments to find_package(). It also sets the &lt;packagename&gt;_FOUND variable. The package is considered found if all variables &lt;var1&gt;... listed contain valid results, e.g. valid filepaths.<br /></p>
<p>There are two modes of this function. The first argument in both modes is the name of the Find-module where it is called (in original casing).<br /></p>
<p>The first simple mode looks like this:<br /></p>
<pre>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(&lt;name&gt; (DEFAULT_MSG|"Custom failure message") &lt;var1&gt;...&lt;varN&gt; )<br /></pre>
    <p>If the variables &lt;var1&gt; to &lt;varN&gt; are all valid, then &lt;UPPERCASED_NAME&gt;_FOUND will be set to TRUE. If DEFAULT_MSG is given as second argument, then the function will generate itself useful success and error messages. You can also supply a custom error message for the failure case. This is not recommended.<br /></p>
<p>The second mode is more powerful and also supports version checking:<br /></p>
<pre>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(NAME [FOUND_VAR &lt;resultVar&gt;]<br />                                           [REQUIRED_VARS &lt;var1&gt;...&lt;varN&gt;]<br />                                           [VERSION_VAR   &lt;versionvar&gt;]<br />                                           [HANDLE_COMPONENTS]<br />                                           [CONFIG_MODE]<br />                                           [FAIL_MESSAGE "Custom failure message"] )<br /></pre>
    <p><br /></p>
<p>In this mode, the name of the result-variable can be set either to either &lt;UPPERCASED_NAME&gt;_FOUND or &lt;OriginalCase_Name&gt;_FOUND using the FOUND_VAR option. Other names for the result-variable are not allowed. So for a Find-module named FindFooBar.cmake, the two possible names are FooBar_FOUND and FOOBAR_FOUND. It is recommended to use the original case version. If the FOUND_VAR option is not used, the default is &lt;UPPERCASED_NAME&gt;_FOUND.<br /></p>
<p>As in the simple mode, if &lt;var1&gt; through &lt;varN&gt; are all valid, &lt;packagename&gt;_FOUND will be set to TRUE. After REQUIRED_VARS the variables which are required for this package are listed. Following VERSION_VAR the name of the variable can be specified which holds the version of the package which has been found. If this is done, this version will be checked against the (potentially) specified required version used in the find_package() call. The EXACT keyword is also handled. The default messages include information about the required version and the version which has been actually found, both if the version is ok or not. If the package supports components, use the HANDLE_COMPONENTS option to enable handling them. In this case, find_package_handle_standard_args() will report which components have been found and which are missing, and the &lt;packagename&gt;_FOUND variable will be set to FALSE if any of the required components (i.e. not the ones listed after OPTIONAL_COMPONENTS) are missing. Use the option CONFIG_MODE if your FindXXX.cmake module is a wrapper for a find_package(... NO_MODULE) call.  In this case VERSION_VAR will be set to &lt;NAME&gt;_VERSION and the macro will automatically check whether the Config module was found. Via FAIL_MESSAGE a custom failure message can be specified, if this is not used, the default message will be displayed.<br /></p>
<p>Example for mode 1:<br /></p>
<pre>    find_package_handle_standard_args(LibXml2  DEFAULT_MSG  LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)<br /></pre>
    <p><br /></p>
<p>LibXml2 is considered to be found, if both LIBXML2_LIBRARY and LIBXML2_INCLUDE_DIR are valid. Then also LIBXML2_FOUND is set to TRUE. If it is not found and REQUIRED was used, it fails with FATAL_ERROR, independent whether QUIET was used or not. If it is found, success will be reported, including the content of &lt;var1&gt;. On repeated Cmake runs, the same message won't be printed again.<br /></p>
<p>Example for mode 2:<br /></p>
<pre>    find_package_handle_standard_args(LibXslt FOUND_VAR LibXslt_FOUND<br />                                             REQUIRED_VARS LibXslt_LIBRARIES LibXslt_INCLUDE_DIRS<br />                                             VERSION_VAR LibXslt_VERSION_STRING)<br /></pre>
    <p>In this case, LibXslt is considered to be found if the variable(s) listed after REQUIRED_VAR are all valid, i.e. LibXslt_LIBRARIES and LibXslt_INCLUDE_DIRS in this case. The result will then be stored in LibXslt_FOUND . Also the version of LibXslt will be checked by using the version contained in LibXslt_VERSION_STRING. Since no FAIL_MESSAGE is given, the default messages will be printed.<br /></p>
<p>Another example for mode 2:<br /></p>
<pre>    find_package(Automoc4 QUIET NO_MODULE HINTS /opt/automoc4)<br />    find_package_handle_standard_args(Automoc4  CONFIG_MODE)<br /></pre>
    <p>In this case, FindAutmoc4.cmake wraps a call to find_package(Automoc4 NO_MODULE) and adds an additional search directory for automoc4. Here the result will be stored in AUTOMOC4_FOUND. The following FIND_PACKAGE_HANDLE_STANDARD_ARGS() call produces a proper success/error message.</p>

  </li>
  <li>
    <a name="module:FindPackageMessage"></a><b><code>FindPackageMessage</code></b>:  <br />
    <p>FIND_PACKAGE_MESSAGE(&lt;name&gt; "message for user" "find result details")<br /></p>
<p>This macro is intended to be used in FindXXX.cmake modules files. It will print a message once for each unique find result. This is useful for telling the user where a package was found. The first argument specifies the name (XXX) of the package. The second argument specifies the message to display. The third argument lists details about the find result so that if they change the message will be displayed again. The macro also obeys the QUIET argument to the find_package command.<br /></p>
<p>Example:<br /></p>
<pre>  if(X11_FOUND)<br />    FIND_PACKAGE_MESSAGE(X11 "Found X11: ${X11_X11_LIB}"<br />      "[${X11_X11_LIB}][${X11_INCLUDE_DIR}]")<br />  else()<br />   ...<br />  endif()<br /></pre>
    
  </li>
  <li>
    <a name="module:FindPerl"></a><b><code>FindPerl</code></b>: Find perl<br />
    <p>this module looks for Perl<br /></p>
<pre>  PERL_EXECUTABLE     - the full path to perl<br />  PERL_FOUND          - If false, don't attempt to use perl.<br />  PERL_VERSION_STRING - version of perl found (since CMake 2.8.8)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindPerlLibs"></a><b><code>FindPerlLibs</code></b>: Find Perl libraries<br />
    <p>This module finds if PERL is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  PERLLIBS_FOUND    = True if perl.h &amp; libperl were found<br />  PERL_INCLUDE_PATH = path to where perl.h is found<br />  PERL_LIBRARY      = path to libperl<br />  PERL_EXECUTABLE   = full path to the perl binary<br /></pre>
    <p><br /></p>
<p>The minimum required version of Perl can be specified using the standard syntax, e.g. find_package(PerlLibs 6.0)<br /></p>
<pre>  The following variables are also available if needed<br />  (introduced after CMake 2.6.4)<br /></pre>
    <p><br /></p>
<pre>  PERL_SITESEARCH    = path to the sitesearch install dir<br />  PERL_SITELIB       = path to the sitelib install directory<br />  PERL_VENDORARCH    = path to the vendor arch install directory<br />  PERL_VENDORLIB     = path to the vendor lib install directory<br />  PERL_ARCHLIB       = path to the arch lib install directory<br />  PERL_PRIVLIB       = path to the priv lib install directory<br />  PERL_EXTRA_C_FLAGS = Compilation flags used to build perl<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindPhysFS"></a><b><code>FindPhysFS</code></b>:  <br />
    <p>Locate PhysFS library This module defines PHYSFS_LIBRARY, the name of the library to link against PHYSFS_FOUND, if false, do not try to link to PHYSFS PHYSFS_INCLUDE_DIR, where to find physfs.h<br /></p>
<p>$PHYSFSDIR is an environment variable that would correspond to the ./configure --prefix=$PHYSFSDIR used in building PHYSFS.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindPike"></a><b><code>FindPike</code></b>: Find Pike<br />
    <p>This module finds if PIKE is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  PIKE_INCLUDE_PATH       = path to where program.h is found<br />  PIKE_EXECUTABLE         = full path to the pike binary<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindPkgConfig"></a><b><code>FindPkgConfig</code></b>: a pkg-config module for CMake<br />
    <p><br /></p>
<p>Usage:<br /></p>
<pre>   pkg_check_modules(&lt;PREFIX&gt; [REQUIRED] [QUIET] &lt;MODULE&gt; [&lt;MODULE&gt;]*)<br />     checks for all the given modules<br /></pre>
    <p><br /></p>
<pre>   pkg_search_module(&lt;PREFIX&gt; [REQUIRED] [QUIET] &lt;MODULE&gt; [&lt;MODULE&gt;]*)<br />     checks for given modules and uses the first working one<br /></pre>
    <p><br /></p>
<p>When the 'REQUIRED' argument was set, macros will fail with an error when module(s) could not be found<br /></p>
<p>When the 'QUIET' argument is set, no status messages will be printed.<br /></p>
<p>It sets the following variables:<br /></p>
<pre>   PKG_CONFIG_FOUND          ... if pkg-config executable was found<br />   PKG_CONFIG_EXECUTABLE     ... pathname of the pkg-config program<br />   PKG_CONFIG_VERSION_STRING ... the version of the pkg-config program found<br />                                 (since CMake 2.8.8)<br /></pre>
    <p><br /></p>
<p>For the following variables two sets of values exist; first one is the common one and has the given PREFIX. The second set contains flags which are given out when pkgconfig was called with the '--static' option.<br /></p>
<pre>   &lt;XPREFIX&gt;_FOUND          ... set to 1 if module(s) exist<br />   &lt;XPREFIX&gt;_LIBRARIES      ... only the libraries (w/o the '-l')<br />   &lt;XPREFIX&gt;_LIBRARY_DIRS   ... the paths of the libraries (w/o the '-L')<br />   &lt;XPREFIX&gt;_LDFLAGS        ... all required linker flags<br />   &lt;XPREFIX&gt;_LDFLAGS_OTHER  ... all other linker flags<br />   &lt;XPREFIX&gt;_INCLUDE_DIRS   ... the '-I' preprocessor flags (w/o the '-I')<br />   &lt;XPREFIX&gt;_CFLAGS         ... all required cflags<br />   &lt;XPREFIX&gt;_CFLAGS_OTHER   ... the other compiler flags<br /></pre>
    <p><br /></p>
<pre>   &lt;XPREFIX&gt; = &lt;PREFIX&gt;        for common case<br />   &lt;XPREFIX&gt; = &lt;PREFIX&gt;_STATIC for static linking<br /></pre>
    <p><br /></p>
<p>There are some special variables whose prefix depends on the count of given modules. When there is only one module, &lt;PREFIX&gt; stays unchanged. When there are multiple modules, the prefix will be changed to &lt;PREFIX&gt;_&lt;MODNAME&gt;:<br /></p>
<pre>   &lt;XPREFIX&gt;_VERSION    ... version of the module<br />   &lt;XPREFIX&gt;_PREFIX     ... prefix-directory of the module<br />   &lt;XPREFIX&gt;_INCLUDEDIR ... include-dir of the module<br />   &lt;XPREFIX&gt;_LIBDIR     ... lib-dir of the module<br /></pre>
    <p><br /></p>
<pre>   &lt;XPREFIX&gt; = &lt;PREFIX&gt;  when |MODULES| == 1, else<br />   &lt;XPREFIX&gt; = &lt;PREFIX&gt;_&lt;MODNAME&gt;<br /></pre>
    <p><br /></p>
<p>A &lt;MODULE&gt; parameter can have the following formats:<br /></p>
<pre>   {MODNAME}            ... matches any version<br />   {MODNAME}&gt;={VERSION} ... at least version &lt;VERSION&gt; is required<br />   {MODNAME}={VERSION}  ... exactly version &lt;VERSION&gt; is required<br />   {MODNAME}&lt;={VERSION} ... modules must not be newer than &lt;VERSION&gt;<br /></pre>
    <p><br /></p>
<p>Examples<br /></p>
<pre>   pkg_check_modules (GLIB2   glib-2.0)<br /></pre>
    <p><br /></p>
<pre>   pkg_check_modules (GLIB2   glib-2.0&gt;=2.10)<br />     requires at least version 2.10 of glib2 and defines e.g.<br />       GLIB2_VERSION=2.10.3<br /></pre>
    <p><br /></p>
<pre>   pkg_check_modules (FOO     glib-2.0&gt;=2.10 gtk+-2.0)<br />     requires both glib2 and gtk2, and defines e.g.<br />       FOO_glib-2.0_VERSION=2.10.3<br />       FOO_gtk+-2.0_VERSION=2.8.20<br /></pre>
    <p><br /></p>
<pre>   pkg_check_modules (XRENDER REQUIRED xrender)<br />     defines e.g.:<br />       XRENDER_LIBRARIES=Xrender;X11<br />       XRENDER_STATIC_LIBRARIES=Xrender;X11;pthread;Xau;Xdmcp<br /></pre>
    <p><br /></p>
<pre>   pkg_search_module (BAR     libxml-2.0 libxml2 libxml&gt;=2)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindPostgreSQL"></a><b><code>FindPostgreSQL</code></b>: Find the PostgreSQL installation.<br />
    <p>In Windows, we make the assumption that, if the PostgreSQL files are installed, the default directory will be C:\Program Files\PostgreSQL.<br /></p>
<p>This module defines<br /></p>
<pre>  PostgreSQL_LIBRARIES - the PostgreSQL libraries needed for linking<br />  PostgreSQL_INCLUDE_DIRS - the directories of the PostgreSQL headers<br />  PostgreSQL_VERSION_STRING - the version of PostgreSQL found (since CMake 2.8.8)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindProducer"></a><b><code>FindProducer</code></b>:  <br />
    <p>Though Producer isn't directly part of OpenSceneGraph, its primary user is OSG so I consider this part of the Findosg* suite used to find OpenSceneGraph components. You'll notice that I accept OSGDIR as an environment path.<br /></p>
<p>Each component is separate and you must opt in to each module. You must also opt into OpenGL (and OpenThreads?) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate Producer This module defines PRODUCER_LIBRARY PRODUCER_FOUND, if false, do not try to link to Producer PRODUCER_INCLUDE_DIR, where to find the headers<br /></p>
<p>$PRODUCER_DIR is an environment variable that would correspond to the ./configure --prefix=$PRODUCER_DIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindProtobuf"></a><b><code>FindProtobuf</code></b>:  <br />
    <p>Locate and configure the Google Protocol Buffers library.<br /></p>
<p>The following variables can be set and are optional:<br /></p>
<pre>   PROTOBUF_SRC_ROOT_FOLDER - When compiling with MSVC, if this cache variable is set<br />                              the protobuf-default VS project build locations<br />                              (vsprojects/Debug &amp; vsprojects/Release) will be searched<br />                              for libraries and binaries.<br /></pre>
    <p><br /></p>
<pre>   PROTOBUF_IMPORT_DIRS     - List of additional directories to be searched for<br />                              imported .proto files. (New in CMake 2.8.8)<br /></pre>
    <p><br /></p>
<p>Defines the following variables:<br /></p>
<pre>   PROTOBUF_FOUND - Found the Google Protocol Buffers library (libprotobuf &amp; header files)<br />   PROTOBUF_INCLUDE_DIRS - Include directories for Google Protocol Buffers<br />   PROTOBUF_LIBRARIES - The protobuf libraries<br /></pre>
    <p>[New in CMake 2.8.5]<br /></p>
<pre>   PROTOBUF_PROTOC_LIBRARIES - The protoc libraries<br />   PROTOBUF_LITE_LIBRARIES - The protobuf-lite libraries<br /></pre>
    <p><br /></p>
<p>The following cache variables are also available to set or use:<br /></p>
<pre>   PROTOBUF_LIBRARY - The protobuf library<br />   PROTOBUF_PROTOC_LIBRARY   - The protoc library<br />   PROTOBUF_INCLUDE_DIR - The include directory for protocol buffers<br />   PROTOBUF_PROTOC_EXECUTABLE - The protoc compiler<br /></pre>
    <p>[New in CMake 2.8.5]<br /></p>
<pre>   PROTOBUF_LIBRARY_DEBUG - The protobuf library (debug)<br />   PROTOBUF_PROTOC_LIBRARY_DEBUG   - The protoc library (debug)<br />   PROTOBUF_LITE_LIBRARY - The protobuf lite library<br />   PROTOBUF_LITE_LIBRARY_DEBUG - The protobuf lite library (debug)<br /></pre>
    <p><br /></p>
<pre>  ====================================================================<br />  Example:<br /></pre>
    <p><br /></p>
<pre>   find_package(Protobuf REQUIRED)<br />   include_directories(${PROTOBUF_INCLUDE_DIRS})<br /></pre>
    <p><br /></p>
<pre>   include_directories(${CMAKE_CURRENT_BINARY_DIR})<br />   PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS foo.proto)<br />   add_executable(bar bar.cc ${PROTO_SRCS} ${PROTO_HDRS})<br />   target_link_libraries(bar ${PROTOBUF_LIBRARIES})<br /></pre>
    <p><br /></p>
<p>NOTE: You may need to link against pthreads, depending<br /></p>
<pre>       on the platform.<br /></pre>
    <p><br /></p>
<p>NOTE: The PROTOBUF_GENERATE_CPP macro &amp; add_executable() or add_library()<br /></p>
<pre>       calls only work properly within the same directory.<br /></pre>
    <p><br /></p>
<pre>  ====================================================================<br /></pre>
    <p><br /></p>
<p>PROTOBUF_GENERATE_CPP (public function)<br /></p>
<pre>   SRCS = Variable to define with autogenerated<br />          source files<br />   HDRS = Variable to define with autogenerated<br />          header files<br />   ARGN = proto files<br /></pre>
    <p><br /></p>
<pre>  ====================================================================<br /></pre>
    
  </li>
  <li>
    <a name="module:FindPythonInterp"></a><b><code>FindPythonInterp</code></b>: Find python interpreter<br />
    <p>This module finds if Python interpreter is installed and determines where the executables are. This code sets the following variables:<br /></p>
<pre>  PYTHONINTERP_FOUND         - Was the Python executable found<br />  PYTHON_EXECUTABLE          - path to the Python interpreter<br /></pre>
    <p><br /></p>
<pre>  PYTHON_VERSION_STRING      - Python version found e.g. 2.5.2<br />  PYTHON_VERSION_MAJOR       - Python major version found e.g. 2<br />  PYTHON_VERSION_MINOR       - Python minor version found e.g. 5<br />  PYTHON_VERSION_PATCH       - Python patch version found e.g. 2<br /></pre>
    <p><br /></p>
<p>The Python_ADDITIONAL_VERSIONS variable can be used to specify a list of version numbers that should be taken into account when searching for Python. You need to set this variable before calling find_package(PythonInterp).</p>

  </li>
  <li>
    <a name="module:FindPythonLibs"></a><b><code>FindPythonLibs</code></b>: Find python libraries<br />
    <p>This module finds if Python is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  PYTHONLIBS_FOUND           - have the Python libs been found<br />  PYTHON_LIBRARIES           - path to the python library<br />  PYTHON_INCLUDE_PATH        - path to where Python.h is found (deprecated)<br />  PYTHON_INCLUDE_DIRS        - path to where Python.h is found<br />  PYTHON_DEBUG_LIBRARIES     - path to the debug library (deprecated)<br />  PYTHONLIBS_VERSION_STRING  - version of the Python libs found (since CMake 2.8.8)<br /></pre>
    <p><br /></p>
<p>The Python_ADDITIONAL_VERSIONS variable can be used to specify a list of version numbers that should be taken into account when searching for Python. You need to set this variable before calling find_package(PythonLibs).<br /></p>
<p>If you'd like to specify the installation of Python to use, you should modify the following cache variables:<br /></p>
<pre>  PYTHON_LIBRARY             - path to the python library<br />  PYTHON_INCLUDE_DIR         - path to where Python.h is found<br /></pre>
    
  </li>
  <li>
    <a name="module:FindQt"></a><b><code>FindQt</code></b>: Searches for all installed versions of Qt.<br />
    <p>This should only be used if your project can work with multiple versions of Qt.  If not, you should just directly use FindQt4 or FindQt3. If multiple versions of Qt are found on the machine, then The user must set the option DESIRED_QT_VERSION to the version they want to use.  If only one version of qt is found on the machine, then the DESIRED_QT_VERSION is set to that version and the matching FindQt3 or FindQt4 module is included. Once the user sets DESIRED_QT_VERSION, then the FindQt3 or FindQt4 module is included.<br /></p>
<pre>  QT_REQUIRED if this is set to TRUE then if CMake can<br />              not find Qt4 or Qt3 an error is raised<br />              and a message is sent to the user.<br /></pre>
    <p><br /></p>
<pre>  DESIRED_QT_VERSION OPTION is created<br />  QT4_INSTALLED is set to TRUE if qt4 is found.<br />  QT3_INSTALLED is set to TRUE if qt3 is found.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindQt3"></a><b><code>FindQt3</code></b>: Locate Qt include paths and libraries<br />
    <p>This module defines:<br /></p>
<pre>  QT_INCLUDE_DIR    - where to find qt.h, etc.<br />  QT_LIBRARIES      - the libraries to link against to use Qt.<br />  QT_DEFINITIONS    - definitions to use when<br />                      compiling code that uses Qt.<br />  QT_FOUND          - If false, don't try to use Qt.<br />  QT_VERSION_STRING - the version of Qt found<br /></pre>
    <p><br /></p>
<p>If you need the multithreaded version of Qt, set QT_MT_REQUIRED to TRUE<br /></p>
<p>Also defined, but not for general use are:<br /></p>
<pre>  QT_MOC_EXECUTABLE, where to find the moc tool.<br />  QT_UIC_EXECUTABLE, where to find the uic tool.<br />  QT_QT_LIBRARY, where to find the Qt library.<br />  QT_QTMAIN_LIBRARY, where to find the qtmain<br />   library. This is only required by Qt3 on Windows.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindQt4"></a><b><code>FindQt4</code></b>: Find Qt 4<br />
    <p>This module can be used to find Qt4. The most important issue is that the Qt4 qmake is available via the system path. This qmake is then used to detect basically everything else. This module defines a number of key variables and macros. The variable QT_USE_FILE is set which is the path to a CMake file that can be included to compile Qt 4 applications and libraries.  It sets up the compilation environment for include directories, preprocessor defines and populates a QT_LIBRARIES variable.<br /></p>
<p>Typical usage could be something like:<br /></p>
<pre>   find_package(Qt4 4.4.3 REQUIRED QtCore QtGui QtXml)<br />   include(${QT_USE_FILE})<br />   add_executable(myexe main.cpp)<br />   target_link_libraries(myexe ${QT_LIBRARIES})<br /></pre>
    <p><br /></p>
<p>The minimum required version can be specified using the standard find_package()-syntax (see example above). For compatibility with older versions of FindQt4.cmake it is also possible to set the variable QT_MIN_VERSION to the minimum required version of Qt4 before the find_package(Qt4) command. If both are used, the version used in the find_package() command overrides the one from QT_MIN_VERSION.<br /></p>
<p>When using the components argument, QT_USE_QT* variables are automatically set for the QT_USE_FILE to pick up.  If one wishes to manually set them, the available ones to set include:<br /></p>
<pre>                    QT_DONT_USE_QTCORE<br />                    QT_DONT_USE_QTGUI<br />                    QT_USE_QT3SUPPORT<br />                    QT_USE_QTASSISTANT<br />                    QT_USE_QAXCONTAINER<br />                    QT_USE_QAXSERVER<br />                    QT_USE_QTDESIGNER<br />                    QT_USE_QTMOTIF<br />                    QT_USE_QTMAIN<br />                    QT_USE_QTMULTIMEDIA<br />                    QT_USE_QTNETWORK<br />                    QT_USE_QTNSPLUGIN<br />                    QT_USE_QTOPENGL<br />                    QT_USE_QTSQL<br />                    QT_USE_QTXML<br />                    QT_USE_QTSVG<br />                    QT_USE_QTTEST<br />                    QT_USE_QTUITOOLS<br />                    QT_USE_QTDBUS<br />                    QT_USE_QTSCRIPT<br />                    QT_USE_QTASSISTANTCLIENT<br />                    QT_USE_QTHELP<br />                    QT_USE_QTWEBKIT<br />                    QT_USE_QTXMLPATTERNS<br />                    QT_USE_PHONON<br />                    QT_USE_QTSCRIPTTOOLS<br />                    QT_USE_QTDECLARATIVE<br /></pre>
    <p><br /></p>
<pre>  QT_USE_IMPORTED_TARGETS<br />        If this variable is set to TRUE, FindQt4.cmake will create imported<br />        library targets for the various Qt libraries and set the<br />        library variables like QT_QTCORE_LIBRARY to point at these imported<br />        targets instead of the library file on disk. This provides much better<br />        handling of the release and debug versions of the Qt libraries and is<br />       also always backwards compatible, except for the case that dependencies<br />       of libraries are exported, these will then also list the names of the<br />       imported targets as dependency and not the file location on disk. This<br />       is much more flexible, but requires that FindQt4.cmake is executed before<br />       such an exported dependency file is processed.<br /></pre>
    <p><br /></p>
<pre>       Note that if using IMPORTED targets, the qtmain.lib static library is<br />       automatically linked on Windows. To disable that globally, set the<br />       QT4_NO_LINK_QTMAIN variable before finding Qt4. To disable that for a<br />       particular executable, set the QT4_NO_LINK_QTMAIN target property to<br />       True on the executable.<br /></pre>
    <p><br /></p>
<pre>  QT_INCLUDE_DIRS_NO_SYSTEM<br />        If this variable is set to TRUE, the Qt include directories<br />        in the QT_USE_FILE will NOT have the SYSTEM keyword set.<br /></pre>
    <p><br /></p>
<p>There are also some files that need processing by some Qt tools such as moc and uic.  Listed below are macros that may be used to process those files.<br /></p>
<pre>  macro QT4_WRAP_CPP(outfiles inputfile ... OPTIONS ...)<br />        create moc code from a list of files containing Qt class with<br />        the Q_OBJECT declaration.  Per-directory preprocessor definitions<br />        are also added.  Options may be given to moc, such as those found<br />        when executing "moc -help".<br /></pre>
    <p><br /></p>
<pre>  macro QT4_WRAP_UI(outfiles inputfile ... OPTIONS ...)<br />        create code from a list of Qt designer ui files.<br />        Options may be given to uic, such as those found<br />        when executing "uic -help"<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_RESOURCES(outfiles inputfile ... OPTIONS ...)<br />        create code from a list of Qt resource files.<br />        Options may be given to rcc, such as those found<br />        when executing "rcc -help"<br /></pre>
    <p><br /></p>
<pre>  macro QT4_GENERATE_MOC(inputfile outputfile )<br />        creates a rule to run moc on infile and create outfile.<br />        Use this if for some reason QT4_WRAP_CPP() isn't appropriate, e.g.<br />        because you need a custom filename for the moc file or something similar.<br /></pre>
    <p><br /></p>
<pre>  macro QT4_AUTOMOC(sourcefile1 sourcefile2 ... )<br />        The qt4_automoc macro is obsolete.  Use the CMAKE_AUTOMOC feature instead.<br />        This macro is still experimental.<br />        It can be used to have moc automatically handled.<br />        So if you have the files foo.h and foo.cpp, and in foo.h a<br />        a class uses the Q_OBJECT macro, moc has to run on it. If you don't<br />        want to use QT4_WRAP_CPP() (which is reliable and mature), you can insert<br />        #include "foo.moc"<br />        in foo.cpp and then give foo.cpp as argument to QT4_AUTOMOC(). This will the<br />        scan all listed files at cmake-time for such included moc files and if it finds<br />        them cause a rule to be generated to run moc at build time on the<br />        accompanying header file foo.h.<br />        If a source file has the SKIP_AUTOMOC property set it will be ignored by this macro.<br /></pre>
    <p><br /></p>
<pre>        You should have a look on the AUTOMOC property for targets to achieve the same results.<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename)<br />        Create the interface header and implementation files with the<br />        given basename from the given interface xml file and add it to<br />        the list of sources.<br /></pre>
    <p><br /></p>
<pre>        You can pass additional parameters to the qdbusxml2cpp call by setting<br />        properties on the input file:<br /></pre>
    <p><br /></p>
<pre>        INCLUDE the given file will be included in the generate interface header<br /></pre>
    <p><br /></p>
<pre>        CLASSNAME the generated class is named accordingly<br /></pre>
    <p><br /></p>
<pre>        NO_NAMESPACE the generated class is not wrapped in a namespace<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_DBUS_INTERFACES(outfiles inputfile ... )<br />        Create the interface header and implementation files<br />        for all listed interface xml files.<br />        The basename will be automatically determined from the name of the xml file.<br /></pre>
    <p><br /></p>
<pre>        The source file properties described for QT4_ADD_DBUS_INTERFACE also apply here.<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_DBUS_ADAPTOR(outfiles xmlfile parentheader parentclassname [basename] [classname])<br />        create a dbus adaptor (header and implementation file) from the xml file<br />        describing the interface, and add it to the list of sources. The adaptor<br />        forwards the calls to a parent class, defined in parentheader and named<br />        parentclassname. The name of the generated files will be<br />        &lt;basename&gt;adaptor.{cpp,h} where basename defaults to the basename of the xml file.<br />        If &lt;classname&gt; is provided, then it will be used as the classname of the<br />        adaptor itself.<br /></pre>
    <p><br /></p>
<pre>  macro QT4_GENERATE_DBUS_INTERFACE( header [interfacename] OPTIONS ...)<br />        generate the xml interface file from the given header.<br />        If the optional argument interfacename is omitted, the name of the<br />        interface file is constructed from the basename of the header with<br />        the suffix .xml appended.<br />        Options may be given to qdbuscpp2xml, such as those found when executing "qdbuscpp2xml --help"<br /></pre>
    <p><br /></p>
<pre>  macro QT4_CREATE_TRANSLATION( qm_files directories ... sources ...<br />                                ts_files ... OPTIONS ...)<br />        out: qm_files<br />        in:  directories sources ts_files<br />        options: flags to pass to lupdate, such as -extensions to specify<br />        extensions for a directory scan.<br />        generates commands to create .ts (vie lupdate) and .qm<br />        (via lrelease) - files from directories and/or sources. The ts files are<br />        created and/or updated in the source tree (unless given with full paths).<br />        The qm files are generated in the build tree.<br />        Updating the translations can be done by adding the qm_files<br />        to the source list of your library/executable, so they are<br />        always updated, or by adding a custom target to control when<br />        they get updated/generated.<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_TRANSLATION( qm_files ts_files ... )<br />        out: qm_files<br />        in:  ts_files<br />        generates commands to create .qm from .ts - files. The generated<br />        filenames can be found in qm_files. The ts_files<br />        must exist and are not updated in any way.<br /></pre>
    <p><br /></p>
<p>function QT4_USE_MODULES( target [link_type] modules...)<br /></p>
<pre>        This function is obsolete. Use target_link_libraries with IMPORTED targets instead.<br />        Make &lt;target&gt; use the &lt;modules&gt; from Qt. Using a Qt module means<br />        to link to the library, add the relevant include directories for the module,<br />        and add the relevant compiler defines for using the module.<br />        Modules are roughly equivalent to components of Qt4, so usage would be<br />        something like:<br />         qt4_use_modules(myexe Core Gui Declarative)<br />        to use QtCore, QtGui and QtDeclarative. The optional &lt;link_type&gt; argument can<br />        be specified as either LINK_PUBLIC or LINK_PRIVATE to specify the same argument<br />        to the target_link_libraries call.<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>  Below is a detailed list of variables that FindQt4.cmake sets.<br />  QT_FOUND         If false, don't try to use Qt.<br />  Qt4_FOUND        If false, don't try to use Qt 4.<br />  QT4_FOUND        If false, don't try to use Qt 4. This variable is for compatibility only.<br /></pre>
    <p><br /></p>
<pre>  QT_VERSION_MAJOR The major version of Qt found.<br />  QT_VERSION_MINOR The minor version of Qt found.<br />  QT_VERSION_PATCH The patch version of Qt found.<br /></pre>
    <p><br /></p>
<pre>  QT_EDITION               Set to the edition of Qt (i.e. DesktopLight)<br />  QT_EDITION_DESKTOPLIGHT  True if QT_EDITION == DesktopLight<br />  QT_QTCORE_FOUND          True if QtCore was found.<br />  QT_QTGUI_FOUND           True if QtGui was found.<br />  QT_QT3SUPPORT_FOUND      True if Qt3Support was found.<br />  QT_QTASSISTANT_FOUND     True if QtAssistant was found.<br />  QT_QTASSISTANTCLIENT_FOUND  True if QtAssistantClient was found.<br />  QT_QAXCONTAINER_FOUND    True if QAxContainer was found (Windows only).<br />  QT_QAXSERVER_FOUND       True if QAxServer was found (Windows only).<br />  QT_QTDBUS_FOUND          True if QtDBus was found.<br />  QT_QTDESIGNER_FOUND      True if QtDesigner was found.<br />  QT_QTDESIGNERCOMPONENTS  True if QtDesignerComponents was found.<br />  QT_QTHELP_FOUND          True if QtHelp was found.<br />  QT_QTMOTIF_FOUND         True if QtMotif was found.<br />  QT_QTMULTIMEDIA_FOUND    True if QtMultimedia was found (since Qt 4.6.0).<br />  QT_QTNETWORK_FOUND       True if QtNetwork was found.<br />  QT_QTNSPLUGIN_FOUND      True if QtNsPlugin was found.<br />  QT_QTOPENGL_FOUND        True if QtOpenGL was found.<br />  QT_QTSQL_FOUND           True if QtSql was found.<br />  QT_QTSVG_FOUND           True if QtSvg was found.<br />  QT_QTSCRIPT_FOUND        True if QtScript was found.<br />  QT_QTSCRIPTTOOLS_FOUND   True if QtScriptTools was found.<br />  QT_QTTEST_FOUND          True if QtTest was found.<br />  QT_QTUITOOLS_FOUND       True if QtUiTools was found.<br />  QT_QTWEBKIT_FOUND        True if QtWebKit was found.<br />  QT_QTXML_FOUND           True if QtXml was found.<br />  QT_QTXMLPATTERNS_FOUND   True if QtXmlPatterns was found.<br />  QT_PHONON_FOUND          True if phonon was found.<br />  QT_QTDECLARATIVE_FOUND   True if QtDeclarative was found.<br /></pre>
    <p><br /></p>
<pre>  QT_MAC_USE_COCOA    For Mac OS X, its whether Cocoa or Carbon is used.<br />                      In general, this should not be used, but its useful<br />                      when having platform specific code.<br /></pre>
    <p><br /></p>
<pre>  QT_DEFINITIONS   Definitions to use when compiling code that uses Qt.<br />                   You do not need to use this if you include QT_USE_FILE.<br />                   The QT_USE_FILE will also define QT_DEBUG and QT_NO_DEBUG<br />                   to fit your current build type.  Those are not contained<br />                   in QT_DEFINITIONS.<br /></pre>
    <p><br /></p>
<pre>  QT_INCLUDES      List of paths to all include directories of<br />                   Qt4 QT_INCLUDE_DIR and QT_QTCORE_INCLUDE_DIR are<br />                   always in this variable even if NOTFOUND,<br />                   all other INCLUDE_DIRS are<br />                   only added if they are found.<br />                   You do not need to use this if you include QT_USE_FILE.<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>  Include directories for the Qt modules are listed here.<br />  You do not need to use these variables if you include QT_USE_FILE.<br /></pre>
    <p><br /></p>
<pre>  QT_INCLUDE_DIR              Path to "include" of Qt4<br />  QT_QT3SUPPORT_INCLUDE_DIR   Path to "include/Qt3Support"<br />  QT_QTASSISTANT_INCLUDE_DIR  Path to "include/QtAssistant"<br />  QT_QTASSISTANTCLIENT_INCLUDE_DIR       Path to "include/QtAssistant"<br />  QT_QAXCONTAINER_INCLUDE_DIR Path to "include/ActiveQt" (Windows only)<br />  QT_QAXSERVER_INCLUDE_DIR    Path to "include/ActiveQt" (Windows only)<br />  QT_QTCORE_INCLUDE_DIR       Path to "include/QtCore"<br />  QT_QTDBUS_INCLUDE_DIR       Path to "include/QtDBus"<br />  QT_QTDESIGNER_INCLUDE_DIR   Path to "include/QtDesigner"<br />  QT_QTDESIGNERCOMPONENTS_INCLUDE_DIR   Path to "include/QtDesigner"<br />  QT_QTGUI_INCLUDE_DIR        Path to "include/QtGui"<br />  QT_QTHELP_INCLUDE_DIR       Path to "include/QtHelp"<br />  QT_QTMOTIF_INCLUDE_DIR      Path to "include/QtMotif"<br />  QT_QTMULTIMEDIA_INCLUDE_DIR Path to "include/QtMultimedia"<br />  QT_QTNETWORK_INCLUDE_DIR    Path to "include/QtNetwork"<br />  QT_QTNSPLUGIN_INCLUDE_DIR   Path to "include/QtNsPlugin"<br />  QT_QTOPENGL_INCLUDE_DIR     Path to "include/QtOpenGL"<br />  QT_QTSCRIPT_INCLUDE_DIR     Path to "include/QtScript"<br />  QT_QTSQL_INCLUDE_DIR        Path to "include/QtSql"<br />  QT_QTSVG_INCLUDE_DIR        Path to "include/QtSvg"<br />  QT_QTTEST_INCLUDE_DIR       Path to "include/QtTest"<br />  QT_QTWEBKIT_INCLUDE_DIR     Path to "include/QtWebKit"<br />  QT_QTXML_INCLUDE_DIR        Path to "include/QtXml"<br />  QT_QTXMLPATTERNS_INCLUDE_DIR  Path to "include/QtXmlPatterns"<br />  QT_PHONON_INCLUDE_DIR       Path to "include/phonon"<br />  QT_QTSCRIPTTOOLS_INCLUDE_DIR       Path to "include/QtScriptTools"<br />  QT_QTDECLARATIVE_INCLUDE_DIR       Path to "include/QtDeclarative"<br /></pre>
    <p><br /></p>
<pre>  QT_BINARY_DIR               Path to "bin" of Qt4<br />  QT_LIBRARY_DIR              Path to "lib" of Qt4<br />  QT_PLUGINS_DIR              Path to "plugins" for Qt4<br />  QT_TRANSLATIONS_DIR         Path to "translations" of Qt4<br />  QT_IMPORTS_DIR              Path to "imports" of Qt4<br />  QT_DOC_DIR                  Path to "doc" of Qt4<br />  QT_MKSPECS_DIR              Path to "mkspecs" of Qt4<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>The Qt toolkit may contain both debug and release libraries. In that case, the following library variables will contain both. You do not need to use these variables if you include QT_USE_FILE, and use QT_LIBRARIES.<br /></p>
<pre>  QT_QT3SUPPORT_LIBRARY            The Qt3Support library<br />  QT_QTASSISTANT_LIBRARY           The QtAssistant library<br />  QT_QTASSISTANTCLIENT_LIBRARY     The QtAssistantClient library<br />  QT_QAXCONTAINER_LIBRARY           The QAxContainer library (Windows only)<br />  QT_QAXSERVER_LIBRARY                The QAxServer library (Windows only)<br />  QT_QTCORE_LIBRARY                The QtCore library<br />  QT_QTDBUS_LIBRARY                The QtDBus library<br />  QT_QTDESIGNER_LIBRARY            The QtDesigner library<br />  QT_QTDESIGNERCOMPONENTS_LIBRARY  The QtDesignerComponents library<br />  QT_QTGUI_LIBRARY                 The QtGui library<br />  QT_QTHELP_LIBRARY                The QtHelp library<br />  QT_QTMOTIF_LIBRARY               The QtMotif library<br />  QT_QTMULTIMEDIA_LIBRARY          The QtMultimedia library<br />  QT_QTNETWORK_LIBRARY             The QtNetwork library<br />  QT_QTNSPLUGIN_LIBRARY            The QtNsPLugin library<br />  QT_QTOPENGL_LIBRARY              The QtOpenGL library<br />  QT_QTSCRIPT_LIBRARY              The QtScript library<br />  QT_QTSQL_LIBRARY                 The QtSql library<br />  QT_QTSVG_LIBRARY                 The QtSvg library<br />  QT_QTTEST_LIBRARY                The QtTest library<br />  QT_QTUITOOLS_LIBRARY             The QtUiTools library<br />  QT_QTWEBKIT_LIBRARY              The QtWebKit library<br />  QT_QTXML_LIBRARY                 The QtXml library<br />  QT_QTXMLPATTERNS_LIBRARY         The QtXmlPatterns library<br />  QT_QTMAIN_LIBRARY                The qtmain library for Windows<br />  QT_PHONON_LIBRARY                The phonon library<br />  QT_QTSCRIPTTOOLS_LIBRARY         The QtScriptTools library<br /></pre>
    <p><br /></p>
<p>The QtDeclarative library:             QT_QTDECLARATIVE_LIBRARY<br /></p>
<p>also defined, but NOT for general use are<br /></p>
<pre>  QT_MOC_EXECUTABLE                   Where to find the moc tool.<br />  QT_UIC_EXECUTABLE                   Where to find the uic tool.<br />  QT_UIC3_EXECUTABLE                  Where to find the uic3 tool.<br />  QT_RCC_EXECUTABLE                   Where to find the rcc tool<br />  QT_DBUSCPP2XML_EXECUTABLE           Where to find the qdbuscpp2xml tool.<br />  QT_DBUSXML2CPP_EXECUTABLE           Where to find the qdbusxml2cpp tool.<br />  QT_LUPDATE_EXECUTABLE               Where to find the lupdate tool.<br />  QT_LRELEASE_EXECUTABLE              Where to find the lrelease tool.<br />  QT_QCOLLECTIONGENERATOR_EXECUTABLE  Where to find the qcollectiongenerator tool.<br />  QT_DESIGNER_EXECUTABLE              Where to find the Qt designer tool.<br />  QT_LINGUIST_EXECUTABLE              Where to find the Qt linguist tool.<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>These are around for backwards compatibility they will be set<br /></p>
<pre>  QT_WRAP_CPP  Set true if QT_MOC_EXECUTABLE is found<br />  QT_WRAP_UI   Set true if QT_UIC_EXECUTABLE is found<br /></pre>
    <p><br /></p>
<p>These variables do _NOT_ have any effect anymore (compared to FindQt.cmake)<br /></p>
<pre>  QT_MT_REQUIRED         Qt4 is now always multithreaded<br /></pre>
    <p><br /></p>
<p>These variables are set to "" Because Qt structure changed (They make no sense in Qt4)<br /></p>
<pre>  QT_QT_LIBRARY        Qt-Library is now split<br /></pre>
    
  </li>
  <li>
    <a name="module:FindQuickTime"></a><b><code>FindQuickTime</code></b>:  <br />
    <p>Locate QuickTime This module defines QUICKTIME_LIBRARY QUICKTIME_FOUND, if false, do not try to link to gdal QUICKTIME_INCLUDE_DIR, where to find the headers<br /></p>
<p>$QUICKTIME_DIR is an environment variable that would correspond to the ./configure --prefix=$QUICKTIME_DIR<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindRTI"></a><b><code>FindRTI</code></b>: Try to find M&amp;S HLA RTI libraries<br />
    <p>This module finds if any HLA RTI is installed and locates the standard RTI include files and libraries.<br /></p>
<p>RTI is a simulation infrastructure standardized by IEEE and SISO. It has a well defined C++ API that assures that simulation applications are independent on a particular RTI implementation.<br /></p>
<pre>  <a href="http://en.wikipedia.org/wiki/Run-Time_Infrastructure_">http://en.wikipedia.org/wiki/Run-Time_Infrastructure_</a>(simulation)<br /></pre>
    <p><br /></p>
<p>This code sets the following variables:<br /></p>
<pre>  RTI_INCLUDE_DIR = the directory where RTI includes file are found<br />  RTI_LIBRARIES = The libraries to link against to use RTI<br />  RTI_DEFINITIONS = -DRTI_USES_STD_FSTREAM<br />  RTI_FOUND = Set to FALSE if any HLA RTI was not found<br /></pre>
    <p><br /></p>
<p>Report problems to &lt;certi-devel@nongnu.org&gt;</p>

  </li>
  <li>
    <a name="module:FindRuby"></a><b><code>FindRuby</code></b>: Find Ruby<br />
    <p>This module finds if Ruby is installed and determines where the include files and libraries are. Ruby 1.8 and 1.9 are supported.<br /></p>
<p>The minimum required version of Ruby can be specified using the standard syntax, e.g. find_package(Ruby 1.8)<br /></p>
<p>It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  RUBY_EXECUTABLE   = full path to the ruby binary<br />  RUBY_INCLUDE_DIRS = include dirs to be used when using the ruby library<br />  RUBY_LIBRARY      = full path to the ruby library<br />  RUBY_VERSION      = the version of ruby which was found, e.g. "1.8.7"<br />  RUBY_FOUND        = set to true if ruby ws found successfully<br /></pre>
    <p><br /></p>
<pre>  RUBY_INCLUDE_PATH = same as RUBY_INCLUDE_DIRS, only provided for compatibility reasons, don't use it<br /></pre>
    
  </li>
  <li>
    <a name="module:FindSDL"></a><b><code>FindSDL</code></b>: Locate SDL library<br />
    <p>This module defines<br /></p>
<pre>  SDL_LIBRARY, the name of the library to link against<br />  SDL_FOUND, if false, do not try to link to SDL<br />  SDL_INCLUDE_DIR, where to find SDL.h<br />  SDL_VERSION_STRING, human-readable string containing the version of SDL<br /></pre>
    <p><br /></p>
<p>This module responds to the the flag:<br /></p>
<pre>  SDL_BUILDING_LIBRARY<br />    If this is defined, then no SDL_main will be linked in because<br />    only applications need main().<br />    Otherwise, it is assumed you are building an application and this<br />    module will attempt to locate and set the the proper link flags<br />    as part of the returned SDL_LIBRARY variable.<br /></pre>
    <p><br /></p>
<p>Don't forget to include SDLmain.h and SDLmain.m your project for the OS X framework based version. (Other versions link to -lSDLmain which this module will try to find on your behalf.) Also for OS X, this module will automatically add the -framework Cocoa on your behalf.<br /></p>
<p><br /></p>
<p>Additional Note: If you see an empty SDL_LIBRARY_TEMP in your configuration and no SDL_LIBRARY, it means CMake did not find your SDL library (SDL.dll, libsdl.so, SDL.framework, etc). Set SDL_LIBRARY_TEMP to point to your SDL library, and configure again. Similarly, if you see an empty SDLMAIN_LIBRARY, you should set this value as appropriate. These values are used to generate the final SDL_LIBRARY variable, but when these values are unset, SDL_LIBRARY does not get created.<br /></p>
<p><br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL. l.e.galup  9-20-02<br /></p>
<p>Modified by Eric Wing. Added code to assist with automated building by using environmental variables and providing a more controlled/consistent search behavior. Added new modifications to recognize OS X frameworks and additional Unix paths (FreeBSD, etc). Also corrected the header search path to follow "proper" SDL guidelines. Added a search for SDLmain which is needed by some platforms. Added a search for threads which is needed by some platforms. Added needed compile switches for MinGW.<br /></p>
<p>On OSX, this will prefer the Framework version (if found) over others. People will have to manually change the cache values of SDL_LIBRARY to override this selection or set the CMake environment CMAKE_INCLUDE_PATH to modify the search paths.<br /></p>
<p>Note that the header path has changed from SDL/SDL.h to just SDL.h This needed to change because "proper" SDL convention is #include "SDL.h", not &lt;SDL/SDL.h&gt;. This is done for portability reasons because not all systems place things in SDL/ (see FreeBSD).</p>

  </li>
  <li>
    <a name="module:FindSDL_image"></a><b><code>FindSDL_image</code></b>: Locate SDL_image library<br />
    <p>This module defines:<br /></p>
<pre>  SDL_IMAGE_LIBRARIES, the name of the library to link against<br />  SDL_IMAGE_INCLUDE_DIRS, where to find the headers<br />  SDL_IMAGE_FOUND, if false, do not try to link against<br />  SDL_IMAGE_VERSION_STRING - human-readable string containing the version of SDL_image<br /></pre>
    <p><br /></p>
<p>For backward compatiblity the following variables are also set:<br /></p>
<pre>  SDLIMAGE_LIBRARY (same value as SDL_IMAGE_LIBRARIES)<br />  SDLIMAGE_INCLUDE_DIR (same value as SDL_IMAGE_INCLUDE_DIRS)<br />  SDLIMAGE_FOUND (same value as SDL_IMAGE_FOUND)<br /></pre>
    <p><br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake module, but with modifications to recognize OS X frameworks and additional Unix paths (FreeBSD, etc).</p>

  </li>
  <li>
    <a name="module:FindSDL_mixer"></a><b><code>FindSDL_mixer</code></b>: Locate SDL_mixer library<br />
    <p>This module defines:<br /></p>
<pre>  SDL_MIXER_LIBRARIES, the name of the library to link against<br />  SDL_MIXER_INCLUDE_DIRS, where to find the headers<br />  SDL_MIXER_FOUND, if false, do not try to link against<br />  SDL_MIXER_VERSION_STRING - human-readable string containing the version of SDL_mixer<br /></pre>
    <p><br /></p>
<p>For backward compatiblity the following variables are also set:<br /></p>
<pre>  SDLMIXER_LIBRARY (same value as SDL_MIXER_LIBRARIES)<br />  SDLMIXER_INCLUDE_DIR (same value as SDL_MIXER_INCLUDE_DIRS)<br />  SDLMIXER_FOUND (same value as SDL_MIXER_FOUND)<br /></pre>
    <p><br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake module, but with modifications to recognize OS X frameworks and additional Unix paths (FreeBSD, etc).</p>

  </li>
  <li>
    <a name="module:FindSDL_net"></a><b><code>FindSDL_net</code></b>: Locate SDL_net library<br />
    <p>This module defines:<br /></p>
<pre>  SDL_NET_LIBRARIES, the name of the library to link against<br />  SDL_NET_INCLUDE_DIRS, where to find the headers<br />  SDL_NET_FOUND, if false, do not try to link against<br />  SDL_NET_VERSION_STRING - human-readable string containing the version of SDL_net<br /></pre>
    <p><br /></p>
<p>For backward compatiblity the following variables are also set:<br /></p>
<pre>  SDLNET_LIBRARY (same value as SDL_NET_LIBRARIES)<br />  SDLNET_INCLUDE_DIR (same value as SDL_NET_INCLUDE_DIRS)<br />  SDLNET_FOUND (same value as SDL_NET_FOUND)<br /></pre>
    <p><br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake module, but with modifications to recognize OS X frameworks and additional Unix paths (FreeBSD, etc).</p>

  </li>
  <li>
    <a name="module:FindSDL_sound"></a><b><code>FindSDL_sound</code></b>: Locates the SDL_sound library<br />
    <p><br /></p>
<p>This module depends on SDL being found and must be called AFTER FindSDL.cmake is called.<br /></p>
<p>This module defines<br /></p>
<pre>  SDL_SOUND_INCLUDE_DIR, where to find SDL_sound.h<br />  SDL_SOUND_FOUND, if false, do not try to link to SDL_sound<br />  SDL_SOUND_LIBRARIES, this contains the list of libraries that you need<br />    to link against. This is a read-only variable and is marked INTERNAL.<br />  SDL_SOUND_EXTRAS, this is an optional variable for you to add your own<br />    flags to SDL_SOUND_LIBRARIES. This is prepended to SDL_SOUND_LIBRARIES.<br />    This is available mostly for cases this module failed to anticipate for<br />    and you must add additional flags. This is marked as ADVANCED.<br />  SDL_SOUND_VERSION_STRING, human-readable string containing the version of SDL_sound<br /></pre>
    <p><br /></p>
<p>This module also defines (but you shouldn't need to use directly)<br /></p>
<pre>   SDL_SOUND_LIBRARY, the name of just the SDL_sound library you would link<br />   against. Use SDL_SOUND_LIBRARIES for you link instructions and not this one.<br /></pre>
    <p>And might define the following as needed<br /></p>
<pre>   MIKMOD_LIBRARY<br />   MODPLUG_LIBRARY<br />   OGG_LIBRARY<br />   VORBIS_LIBRARY<br />   SMPEG_LIBRARY<br />   FLAC_LIBRARY<br />   SPEEX_LIBRARY<br /></pre>
    <p><br /></p>
<p>Typically, you should not use these variables directly, and you should use SDL_SOUND_LIBRARIES which contains SDL_SOUND_LIBRARY and the other audio libraries (if needed) to successfully compile on your system.<br /></p>
<p>Created by Eric Wing. This module is a bit more complicated than the other FindSDL* family modules. The reason is that SDL_sound can be compiled in a large variety of different ways which are independent of platform. SDL_sound may dynamically link against other 3rd party libraries to get additional codec support, such as Ogg Vorbis, SMPEG, ModPlug, MikMod, FLAC, Speex, and potentially others. Under some circumstances which I don't fully understand, there seems to be a requirement that dependent libraries of libraries you use must also be explicitly linked against in order to successfully compile. SDL_sound does not currently have any system in place to know how it was compiled. So this CMake module does the hard work in trying to discover which 3rd party libraries are required for building (if any). This module uses a brute force approach to create a test program that uses SDL_sound, and then tries to build it. If the build fails, it parses the error output for known symbol names to figure out which libraries are needed.<br /></p>
<p>Responds to the $SDLDIR and $SDLSOUNDDIR environmental variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.<br /></p>
<p>On OSX, this will prefer the Framework version (if found) over others. People will have to manually change the cache values of SDL_LIBRARY to override this selectionor set the CMake environment CMAKE_INCLUDE_PATH to modify the search paths.</p>

  </li>
  <li>
    <a name="module:FindSDL_ttf"></a><b><code>FindSDL_ttf</code></b>: Locate SDL_ttf library<br />
    <p>This module defines:<br /></p>
<pre>  SDL_TTF_LIBRARIES, the name of the library to link against<br />  SDL_TTF_INCLUDE_DIRS, where to find the headers<br />  SDL_TTF_FOUND, if false, do not try to link against<br />  SDL_TTF_VERSION_STRING - human-readable string containing the version of SDL_ttf<br /></pre>
    <p><br /></p>
<p>For backward compatiblity the following variables are also set:<br /></p>
<pre>  SDLTTF_LIBRARY (same value as SDL_TTF_LIBRARIES)<br />  SDLTTF_INCLUDE_DIR (same value as SDL_TTF_INCLUDE_DIRS)<br />  SDLTTF_FOUND (same value as SDL_TTF_FOUND)<br /></pre>
    <p><br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake module, but with modifications to recognize OS X frameworks and additional Unix paths (FreeBSD, etc).</p>

  </li>
  <li>
    <a name="module:FindSWIG"></a><b><code>FindSWIG</code></b>: Find SWIG<br />
    <p>This module finds an installed SWIG.  It sets the following variables:<br /></p>
<pre>  SWIG_FOUND - set to true if SWIG is found<br />  SWIG_DIR - the directory where swig is installed<br />  SWIG_EXECUTABLE - the path to the swig executable<br />  SWIG_VERSION   - the version number of the swig executable<br /></pre>
    <p><br /></p>
<p>The minimum required version of SWIG can be specified using the standard syntax, e.g. find_package(SWIG 1.1)<br /></p>
<p>All information is collected from the SWIG_EXECUTABLE so the version to be found can be changed from the command line by means of setting SWIG_EXECUTABLE<br /></p>

  </li>
  <li>
    <a name="module:FindSelfPackers"></a><b><code>FindSelfPackers</code></b>: Find upx<br />
    <p>This module looks for some executable packers (i.e. software that compress executables or shared libs into on-the-fly self-extracting executables or shared libs. Examples:<br /></p>
<pre>  UPX: <a href="http://wildsau.idv.uni-linz.ac.at/mfx/upx.html">http://wildsau.idv.uni-linz.ac.at/mfx/upx.html</a><br /></pre>
    
  </li>
  <li>
    <a name="module:FindSquish"></a><b><code>FindSquish</code></b>: -- Typical Use<br />
    <p><br /></p>
<p>This module can be used to find Squish. Currently Squish versions 3 and 4 are supported.<br /></p>
<pre>  SQUISH_FOUND                    If false, don't try to use Squish<br />  SQUISH_VERSION                  The full version of Squish found<br />  SQUISH_VERSION_MAJOR            The major version of Squish found<br />  SQUISH_VERSION_MINOR            The minor version of Squish found<br />  SQUISH_VERSION_PATCH            The patch version of Squish found<br /></pre>
    <p><br /></p>
<pre>  SQUISH_INSTALL_DIR              The Squish installation directory (containing bin, lib, etc)<br />  SQUISH_SERVER_EXECUTABLE        The squishserver executable<br />  SQUISH_CLIENT_EXECUTABLE        The squishrunner executable<br /></pre>
    <p><br /></p>
<pre>  SQUISH_INSTALL_DIR_FOUND        Was the install directory found?<br />  SQUISH_SERVER_EXECUTABLE_FOUND  Was the server executable found?<br />  SQUISH_CLIENT_EXECUTABLE_FOUND  Was the client executable found?<br /></pre>
    <p><br /></p>
<p>It provides the function squish_v4_add_test() for adding a squish test to cmake using Squish 4.x:<br /></p>
<pre>   squish_v4_add_test(cmakeTestName AUT targetName SUITE suiteName TEST squishTestName<br />                   [SETTINGSGROUP group] [PRE_COMMAND command] [POST_COMMAND command] )<br /></pre>
    <p><br /></p>
<p>The arguments have the following meaning:<br /></p>
<pre>   cmakeTestName: this will be used as the first argument for add_test()<br />   AUT targetName: the name of the cmake target which will be used as AUT, i.e. the<br />                   executable which will be tested.<br />   SUITE suiteName: this is either the full path to the squish suite, or just the<br />                    last directory of the suite, i.e. the suite name. In this case<br />                    the CMakeLists.txt which calls squish_add_test() must be located<br />                    in the parent directory of the suite directory.<br />   TEST squishTestName: the name of the squish test, i.e. the name of the subdirectory<br />                        of the test inside the suite directory.<br />   SETTINGSGROUP group: if specified, the given settings group will be used for executing the test.<br />                        If not specified, the groupname will be "CTest_&lt;username&gt;"<br />   PRE_COMMAND command:  if specified, the given command will be executed before starting the squish test.<br />   POST_COMMAND command: same as PRE_COMMAND, but after the squish test has been executed.<br /></pre>
    <p><br /></p>
<pre>   enable_testing()<br />   find_package(Squish 4.0)<br />   if (SQUISH_FOUND)<br />      squish_v4_add_test(myTestName AUT myApp SUITE ${CMAKE_SOURCE_DIR}/tests/mySuite TEST someSquishTest SETTINGSGROUP myGroup )<br />   endif ()<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>For users of Squish version 3.x the macro squish_v3_add_test() is provided:<br /></p>
<pre>   squish_v3_add_test(testName applicationUnderTest testCase envVars testWrapper)<br />   Use this macro to add a test using Squish 3.x.<br /></pre>
    <p><br /></p>
<pre>  enable_testing()<br />  find_package(Squish)<br />  if (SQUISH_FOUND)<br />    squish_v3_add_test(myTestName myApplication testCase envVars testWrapper)<br />  endif ()<br /></pre>
    <p><br /></p>
<p>macro SQUISH_ADD_TEST(testName applicationUnderTest testCase envVars testWrapper)<br /></p>
<pre>   This is deprecated. Use SQUISH_V3_ADD_TEST() if you are using Squish 3.x instead.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindSubversion"></a><b><code>FindSubversion</code></b>: Extract information from a subversion working copy<br />
    <p>The module defines the following variables:<br /></p>
<pre>  Subversion_SVN_EXECUTABLE - path to svn command line client<br />  Subversion_VERSION_SVN - version of svn command line client<br />  Subversion_FOUND - true if the command line client was found<br />  SUBVERSION_FOUND - same as Subversion_FOUND, set for compatiblity reasons<br /></pre>
    <p><br /></p>
<p>The minimum required version of Subversion can be specified using the standard syntax, e.g. find_package(Subversion 1.4)<br /></p>
<p>If the command line client executable is found two macros are defined:<br /></p>
<pre>  Subversion_WC_INFO(&lt;dir&gt; &lt;var-prefix&gt;)<br />  Subversion_WC_LOG(&lt;dir&gt; &lt;var-prefix&gt;)<br /></pre>
    <p>Subversion_WC_INFO extracts information of a subversion working copy at a given location. This macro defines the following variables:<br /></p>
<pre>  &lt;var-prefix&gt;_WC_URL - url of the repository (at &lt;dir&gt;)<br />  &lt;var-prefix&gt;_WC_ROOT - root url of the repository<br />  &lt;var-prefix&gt;_WC_REVISION - current revision<br />  &lt;var-prefix&gt;_WC_LAST_CHANGED_AUTHOR - author of last commit<br />  &lt;var-prefix&gt;_WC_LAST_CHANGED_DATE - date of last commit<br />  &lt;var-prefix&gt;_WC_LAST_CHANGED_REV - revision of last commit<br />  &lt;var-prefix&gt;_WC_INFO - output of command `svn info &lt;dir&gt;'<br /></pre>
    <p>Subversion_WC_LOG retrieves the log message of the base revision of a subversion working copy at a given location. This macro defines the variable:<br /></p>
<pre>  &lt;var-prefix&gt;_LAST_CHANGED_LOG - last log of base revision<br /></pre>
    <p>Example usage:<br /></p>
<pre>  find_package(Subversion)<br />  if(SUBVERSION_FOUND)<br />    Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project)<br />    message("Current revision is ${Project_WC_REVISION}")<br />    Subversion_WC_LOG(${PROJECT_SOURCE_DIR} Project)<br />    message("Last changed log is ${Project_LAST_CHANGED_LOG}")<br />  endif()<br /></pre>
    
  </li>
  <li>
    <a name="module:FindTCL"></a><b><code>FindTCL</code></b>: TK_INTERNAL_PATH was removed.<br />
    <p>This module finds if Tcl is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  TCL_FOUND              = Tcl was found<br />  TK_FOUND               = Tk was found<br />  TCLTK_FOUND            = Tcl and Tk were found<br />  TCL_LIBRARY            = path to Tcl library (tcl tcl80)<br />  TCL_INCLUDE_PATH       = path to where tcl.h can be found<br />  TCL_TCLSH              = path to tclsh binary (tcl tcl80)<br />  TK_LIBRARY             = path to Tk library (tk tk80 etc)<br />  TK_INCLUDE_PATH        = path to where tk.h can be found<br />  TK_WISH                = full path to the wish executable<br /></pre>
    <p><br /></p>
<p>In an effort to remove some clutter and clear up some issues for people who are not necessarily Tcl/Tk gurus/developpers, some variables were moved or removed. Changes compared to CMake 2.4 are:<br /></p>
<pre>   =&gt; they were only useful for people writing Tcl/Tk extensions.<br />   =&gt; these libs are not packaged by default with Tcl/Tk distributions.<br />      Even when Tcl/Tk is built from source, several flavors of debug libs<br />      are created and there is no real reason to pick a single one<br />      specifically (say, amongst tcl84g, tcl84gs, or tcl84sgx).<br />      Let's leave that choice to the user by allowing him to assign<br />      TCL_LIBRARY to any Tcl library, debug or not.<br />   =&gt; this ended up being only a Win32 variable, and there is a lot of<br />      confusion regarding the location of this file in an installed Tcl/Tk<br />      tree anyway (see 8.5 for example). If you need the internal path at<br />      this point it is safer you ask directly where the *source* tree is<br />      and dig from there.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindTIFF"></a><b><code>FindTIFF</code></b>: Find TIFF library<br />
    <p>Find the native TIFF includes and library This module defines<br /></p>
<pre>  TIFF_INCLUDE_DIR, where to find tiff.h, etc.<br />  TIFF_LIBRARIES, libraries to link against to use TIFF.<br />  TIFF_FOUND, If false, do not try to use TIFF.<br /></pre>
    <p>also defined, but not for general use are<br /></p>
<pre>  TIFF_LIBRARY, where to find the TIFF library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindTclStub"></a><b><code>FindTclStub</code></b>: TCL_STUB_LIBRARY_DEBUG and TK_STUB_LIBRARY_DEBUG were removed.<br />
    <p>This module finds Tcl stub libraries. It first finds Tcl include files and libraries by calling FindTCL.cmake. How to Use the Tcl Stubs Library:<br /></p>
<pre>   <a href="http://tcl.activestate.com/doc/howto/stubs.html">http://tcl.activestate.com/doc/howto/stubs.html</a><br /></pre>
    <p>Using Stub Libraries:<br /></p>
<pre>   <a href="http://safari.oreilly.com/0130385603/ch48lev1sec3">http://safari.oreilly.com/0130385603/ch48lev1sec3</a><br /></pre>
    <p>This code sets the following variables:<br /></p>
<pre>  TCL_STUB_LIBRARY       = path to Tcl stub library<br />  TK_STUB_LIBRARY        = path to Tk stub library<br />  TTK_STUB_LIBRARY       = path to ttk stub library<br /></pre>
    <p><br /></p>
<p>In an effort to remove some clutter and clear up some issues for people who are not necessarily Tcl/Tk gurus/developpers, some variables were moved or removed. Changes compared to CMake 2.4 are:<br /></p>
<pre>   =&gt; these libs are not packaged by default with Tcl/Tk distributions.<br />      Even when Tcl/Tk is built from source, several flavors of debug libs<br />      are created and there is no real reason to pick a single one<br />      specifically (say, amongst tclstub84g, tclstub84gs, or tclstub84sgx).<br />      Let's leave that choice to the user by allowing him to assign<br />      TCL_STUB_LIBRARY to any Tcl library, debug or not.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindTclsh"></a><b><code>FindTclsh</code></b>: Find tclsh<br />
    <p>This module finds if TCL is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  TCLSH_FOUND = TRUE if tclsh has been found<br />  TCL_TCLSH = the path to the tclsh executable<br /></pre>
    <p>In cygwin, look for the cygwin version first.  Don't look for it later to avoid finding the cygwin version on a Win32 build.</p>

  </li>
  <li>
    <a name="module:FindThreads"></a><b><code>FindThreads</code></b>: This module determines the thread library of the system.<br />
    <p>The following variables are set<br /></p>
<pre>  CMAKE_THREAD_LIBS_INIT     - the thread library<br />  CMAKE_USE_SPROC_INIT       - are we using sproc?<br />  CMAKE_USE_WIN32_THREADS_INIT - using WIN32 threads?<br />  CMAKE_USE_PTHREADS_INIT    - are we using pthreads<br />  CMAKE_HP_PTHREADS_INIT     - are we using hp pthreads<br /></pre>
    <p>For systems with multiple thread libraries, caller can set<br /></p>
<pre>  CMAKE_THREAD_PREFER_PTHREAD<br /></pre>
    
  </li>
  <li>
    <a name="module:FindUnixCommands"></a><b><code>FindUnixCommands</code></b>: Find unix commands from cygwin<br />
    <p>This module looks for some usual Unix commands.<br /></p>

  </li>
  <li>
    <a name="module:FindVTK"></a><b><code>FindVTK</code></b>: Find a VTK installation or build tree.<br />
    <p>The following variables are set if VTK is found.  If VTK is not found, VTK_FOUND is set to false.<br /></p>
<pre>  VTK_FOUND         - Set to true when VTK is found.<br />  VTK_USE_FILE      - CMake file to use VTK.<br />  VTK_MAJOR_VERSION - The VTK major version number.<br />  VTK_MINOR_VERSION - The VTK minor version number<br />                       (odd non-release).<br />  VTK_BUILD_VERSION - The VTK patch level<br />                       (meaningless for odd minor).<br />  VTK_INCLUDE_DIRS  - Include directories for VTK<br />  VTK_LIBRARY_DIRS  - Link directories for VTK libraries<br />  VTK_KITS          - List of VTK kits, in CAPS<br />                      (COMMON,IO,) etc.<br />  VTK_LANGUAGES     - List of wrapped languages, in CAPS<br />                      (TCL, PYHTON,) etc.<br /></pre>
    <p>The following cache entries must be set by the user to locate VTK:<br /></p>
<pre>  VTK_DIR  - The directory containing VTKConfig.cmake.<br />             This is either the root of the build tree,<br />             or the lib/vtk directory.  This is the<br />             only cache entry.<br /></pre>
    <p>The following variables are set for backward compatibility and should not be used in new code:<br /></p>
<pre>  USE_VTK_FILE - The full path to the UseVTK.cmake file.<br />                 This is provided for backward<br />                 compatibility.  Use VTK_USE_FILE<br />                 instead.<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindWget"></a><b><code>FindWget</code></b>: Find wget<br />
    <p>This module looks for wget. This module defines the following values:<br /></p>
<pre>  WGET_EXECUTABLE: the full path to the wget tool.<br />  WGET_FOUND: True if wget has been found.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindWish"></a><b><code>FindWish</code></b>: Find wish installation<br />
    <p>This module finds if TCL is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  TK_WISH = the path to the wish executable<br /></pre>
    <p><br /></p>
<p>if UNIX is defined, then it will look for the cygwin version first</p>

  </li>
  <li>
    <a name="module:FindX11"></a><b><code>FindX11</code></b>: Find X11 installation<br />
    <p>Try to find X11 on UNIX systems. The following values are defined<br /></p>
<pre>  X11_FOUND        - True if X11 is available<br />  X11_INCLUDE_DIR  - include directories to use X11<br />  X11_LIBRARIES    - link against these to use X11<br /></pre>
    <p><br /></p>
<p>and also the following more fine grained variables: Include paths: X11_ICE_INCLUDE_PATH,          X11_ICE_LIB,        X11_ICE_FOUND<br /></p>
<pre>                X11_SM_INCLUDE_PATH,           X11_SM_LIB,         X11_SM_FOUND<br />                X11_X11_INCLUDE_PATH,          X11_X11_LIB<br />                X11_Xaccessrules_INCLUDE_PATH,                     X11_Xaccess_FOUND<br />                X11_Xaccessstr_INCLUDE_PATH,                       X11_Xaccess_FOUND<br />                X11_Xau_INCLUDE_PATH,          X11_Xau_LIB,        X11_Xau_FOUND<br />                X11_Xcomposite_INCLUDE_PATH,   X11_Xcomposite_LIB, X11_Xcomposite_FOUND<br />                X11_Xcursor_INCLUDE_PATH,      X11_Xcursor_LIB,    X11_Xcursor_FOUND<br />                X11_Xdamage_INCLUDE_PATH,      X11_Xdamage_LIB,    X11_Xdamage_FOUND<br />                X11_Xdmcp_INCLUDE_PATH,        X11_Xdmcp_LIB,      X11_Xdmcp_FOUND<br />                                               X11_Xext_LIB,       X11_Xext_FOUND<br />                X11_dpms_INCLUDE_PATH,         (in X11_Xext_LIB),  X11_dpms_FOUND<br />                X11_XShm_INCLUDE_PATH,         (in X11_Xext_LIB),  X11_XShm_FOUND<br />                X11_Xshape_INCLUDE_PATH,       (in X11_Xext_LIB),  X11_Xshape_FOUND<br />                X11_xf86misc_INCLUDE_PATH,     X11_Xxf86misc_LIB,  X11_xf86misc_FOUND<br />                X11_xf86vmode_INCLUDE_PATH,    X11_Xxf86vm_LIB     X11_xf86vmode_FOUND<br />                X11_Xfixes_INCLUDE_PATH,       X11_Xfixes_LIB,     X11_Xfixes_FOUND<br />                X11_Xft_INCLUDE_PATH,          X11_Xft_LIB,        X11_Xft_FOUND<br />                X11_Xi_INCLUDE_PATH,           X11_Xi_LIB,         X11_Xi_FOUND<br />                X11_Xinerama_INCLUDE_PATH,     X11_Xinerama_LIB,   X11_Xinerama_FOUND<br />                X11_Xinput_INCLUDE_PATH,       X11_Xinput_LIB,     X11_Xinput_FOUND<br />                X11_Xkb_INCLUDE_PATH,                              X11_Xkb_FOUND<br />                X11_Xkblib_INCLUDE_PATH,                           X11_Xkb_FOUND<br />                X11_Xkbfile_INCLUDE_PATH,      X11_Xkbfile_LIB,    X11_Xkbfile_FOUND<br />                X11_Xmu_INCLUDE_PATH,          X11_Xmu_LIB,        X11_Xmu_FOUND<br />                X11_Xpm_INCLUDE_PATH,          X11_Xpm_LIB,        X11_Xpm_FOUND<br />                X11_XTest_INCLUDE_PATH,        X11_XTest_LIB,      X11_XTest_FOUND<br />                X11_Xrandr_INCLUDE_PATH,       X11_Xrandr_LIB,     X11_Xrandr_FOUND<br />                X11_Xrender_INCLUDE_PATH,      X11_Xrender_LIB,    X11_Xrender_FOUND<br />                X11_Xscreensaver_INCLUDE_PATH, X11_Xscreensaver_LIB, X11_Xscreensaver_FOUND<br />                X11_Xt_INCLUDE_PATH,           X11_Xt_LIB,         X11_Xt_FOUND<br />                X11_Xutil_INCLUDE_PATH,                            X11_Xutil_FOUND<br />                X11_Xv_INCLUDE_PATH,           X11_Xv_LIB,         X11_Xv_FOUND<br />                X11_XSync_INCLUDE_PATH,        (in X11_Xext_LIB),  X11_XSync_FOUND<br /></pre>
    
  </li>
  <li>
    <a name="module:FindXMLRPC"></a><b><code>FindXMLRPC</code></b>: Find xmlrpc<br />
    <p>Find the native XMLRPC headers and libraries.<br /></p>
<pre>  XMLRPC_INCLUDE_DIRS      - where to find xmlrpc.h, etc.<br />  XMLRPC_LIBRARIES         - List of libraries when using xmlrpc.<br />  XMLRPC_FOUND             - True if xmlrpc found.<br /></pre>
    <p>XMLRPC modules may be specified as components for this find module. Modules may be listed by running "xmlrpc-c-config".  Modules include:<br /></p>
<pre>  c++            C++ wrapper code<br />  libwww-client  libwww-based client<br />  cgi-server     CGI-based server<br />  abyss-server   ABYSS-based server<br /></pre>
    <p>Typical usage:<br /></p>
<pre>  find_package(XMLRPC REQUIRED libwww-client)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindZLIB"></a><b><code>FindZLIB</code></b>: Find zlib<br />
    <p>Find the native ZLIB includes and library. Once done this will define<br /></p>
<pre>  ZLIB_INCLUDE_DIRS   - where to find zlib.h, etc.<br />  ZLIB_LIBRARIES      - List of libraries when using zlib.<br />  ZLIB_FOUND          - True if zlib found.<br /></pre>
    <p><br /></p>
<pre>  ZLIB_VERSION_STRING - The version of zlib found (x.y.z)<br />  ZLIB_VERSION_MAJOR  - The major version of zlib<br />  ZLIB_VERSION_MINOR  - The minor version of zlib<br />  ZLIB_VERSION_PATCH  - The patch version of zlib<br />  ZLIB_VERSION_TWEAK  - The tweak version of zlib<br /></pre>
    <p><br /></p>
<p>The following variable are provided for backward compatibility<br /></p>
<pre>  ZLIB_MAJOR_VERSION  - The major version of zlib<br />  ZLIB_MINOR_VERSION  - The minor version of zlib<br />  ZLIB_PATCH_VERSION  - The patch version of zlib<br /></pre>
    <p><br /></p>
<p>An includer may set ZLIB_ROOT to a zlib installation root to tell this module where to look.</p>

  </li>
  <li>
    <a name="module:Findosg"></a><b><code>Findosg</code></b>:  <br />
    <p><br /></p>
<p>NOTE: It is highly recommended that you use the new FindOpenSceneGraph.cmake introduced in CMake 2.6.3 and not use this Find module directly.<br /></p>
<p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osg This module defines<br /></p>
<p>OSG_FOUND - Was the Osg found? OSG_INCLUDE_DIR - Where to find the headers OSG_LIBRARIES - The libraries to link against for the OSG (use this)<br /></p>
<p>OSG_LIBRARY - The OSG library OSG_LIBRARY_DEBUG - The OSG debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgAnimation"></a><b><code>FindosgAnimation</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgAnimation This module defines<br /></p>
<p>OSGANIMATION_FOUND - Was osgAnimation found? OSGANIMATION_INCLUDE_DIR - Where to find the headers OSGANIMATION_LIBRARIES - The libraries to link against for the OSG (use this)<br /></p>
<p>OSGANIMATION_LIBRARY - The OSG library OSGANIMATION_LIBRARY_DEBUG - The OSG debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgDB"></a><b><code>FindosgDB</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgDB This module defines<br /></p>
<p>OSGDB_FOUND - Was osgDB found? OSGDB_INCLUDE_DIR - Where to find the headers OSGDB_LIBRARIES - The libraries to link against for the osgDB (use this)<br /></p>
<p>OSGDB_LIBRARY - The osgDB library OSGDB_LIBRARY_DEBUG - The osgDB debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgFX"></a><b><code>FindosgFX</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgFX This module defines<br /></p>
<p>OSGFX_FOUND - Was osgFX found? OSGFX_INCLUDE_DIR - Where to find the headers OSGFX_LIBRARIES - The libraries to link against for the osgFX (use this)<br /></p>
<p>OSGFX_LIBRARY - The osgFX library OSGFX_LIBRARY_DEBUG - The osgFX debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgGA"></a><b><code>FindosgGA</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgGA This module defines<br /></p>
<p>OSGGA_FOUND - Was osgGA found? OSGGA_INCLUDE_DIR - Where to find the headers OSGGA_LIBRARIES - The libraries to link against for the osgGA (use this)<br /></p>
<p>OSGGA_LIBRARY - The osgGA library OSGGA_LIBRARY_DEBUG - The osgGA debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgIntrospection"></a><b><code>FindosgIntrospection</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgINTROSPECTION This module defines<br /></p>
<p>OSGINTROSPECTION_FOUND - Was osgIntrospection found? OSGINTROSPECTION_INCLUDE_DIR - Where to find the headers OSGINTROSPECTION_LIBRARIES - The libraries to link for osgIntrospection (use this)<br /></p>
<p>OSGINTROSPECTION_LIBRARY - The osgIntrospection library OSGINTROSPECTION_LIBRARY_DEBUG - The osgIntrospection debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgManipulator"></a><b><code>FindosgManipulator</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgManipulator This module defines<br /></p>
<p>OSGMANIPULATOR_FOUND - Was osgManipulator found? OSGMANIPULATOR_INCLUDE_DIR - Where to find the headers OSGMANIPULATOR_LIBRARIES - The libraries to link for osgManipulator (use this)<br /></p>
<p>OSGMANIPULATOR_LIBRARY - The osgManipulator library OSGMANIPULATOR_LIBRARY_DEBUG - The osgManipulator debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgParticle"></a><b><code>FindosgParticle</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgParticle This module defines<br /></p>
<p>OSGPARTICLE_FOUND - Was osgParticle found? OSGPARTICLE_INCLUDE_DIR - Where to find the headers OSGPARTICLE_LIBRARIES - The libraries to link for osgParticle (use this)<br /></p>
<p>OSGPARTICLE_LIBRARY - The osgParticle library OSGPARTICLE_LIBRARY_DEBUG - The osgParticle debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgPresentation"></a><b><code>FindosgPresentation</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgPresentation This module defines<br /></p>
<p>OSGPRESENTATION_FOUND - Was osgPresentation found? OSGPRESENTATION_INCLUDE_DIR - Where to find the headers OSGPRESENTATION_LIBRARIES - The libraries to link for osgPresentation (use this)<br /></p>
<p>OSGPRESENTATION_LIBRARY - The osgPresentation library OSGPRESENTATION_LIBRARY_DEBUG - The osgPresentation debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing. Modified to work with osgPresentation by Robert Osfield, January 2012.</p>

  </li>
  <li>
    <a name="module:FindosgProducer"></a><b><code>FindosgProducer</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgProducer This module defines<br /></p>
<p>OSGPRODUCER_FOUND - Was osgProducer found? OSGPRODUCER_INCLUDE_DIR - Where to find the headers OSGPRODUCER_LIBRARIES - The libraries to link for osgProducer (use this)<br /></p>
<p>OSGPRODUCER_LIBRARY - The osgProducer library OSGPRODUCER_LIBRARY_DEBUG - The osgProducer debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgQt"></a><b><code>FindosgQt</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgQt This module defines<br /></p>
<p>OSGQT_FOUND - Was osgQt found? OSGQT_INCLUDE_DIR - Where to find the headers OSGQT_LIBRARIES - The libraries to link for osgQt (use this)<br /></p>
<p>OSGQT_LIBRARY - The osgQt library OSGQT_LIBRARY_DEBUG - The osgQt debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing. Modified to work with osgQt by Robert Osfield, January 2012.</p>

  </li>
  <li>
    <a name="module:FindosgShadow"></a><b><code>FindosgShadow</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgShadow This module defines<br /></p>
<p>OSGSHADOW_FOUND - Was osgShadow found? OSGSHADOW_INCLUDE_DIR - Where to find the headers OSGSHADOW_LIBRARIES - The libraries to link for osgShadow (use this)<br /></p>
<p>OSGSHADOW_LIBRARY - The osgShadow library OSGSHADOW_LIBRARY_DEBUG - The osgShadow debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgSim"></a><b><code>FindosgSim</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgSim This module defines<br /></p>
<p>OSGSIM_FOUND - Was osgSim found? OSGSIM_INCLUDE_DIR - Where to find the headers OSGSIM_LIBRARIES - The libraries to link for osgSim (use this)<br /></p>
<p>OSGSIM_LIBRARY - The osgSim library OSGSIM_LIBRARY_DEBUG - The osgSim debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgTerrain"></a><b><code>FindosgTerrain</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgTerrain This module defines<br /></p>
<p>OSGTERRAIN_FOUND - Was osgTerrain found? OSGTERRAIN_INCLUDE_DIR - Where to find the headers OSGTERRAIN_LIBRARIES - The libraries to link for osgTerrain (use this)<br /></p>
<p>OSGTERRAIN_LIBRARY - The osgTerrain library OSGTERRAIN_LIBRARY_DEBUG - The osgTerrain debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgText"></a><b><code>FindosgText</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgText This module defines<br /></p>
<p>OSGTEXT_FOUND - Was osgText found? OSGTEXT_INCLUDE_DIR - Where to find the headers OSGTEXT_LIBRARIES - The libraries to link for osgText (use this)<br /></p>
<p>OSGTEXT_LIBRARY - The osgText library OSGTEXT_LIBRARY_DEBUG - The osgText debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgUtil"></a><b><code>FindosgUtil</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgUtil This module defines<br /></p>
<p>OSGUTIL_FOUND - Was osgUtil found? OSGUTIL_INCLUDE_DIR - Where to find the headers OSGUTIL_LIBRARIES - The libraries to link for osgUtil (use this)<br /></p>
<p>OSGUTIL_LIBRARY - The osgUtil library OSGUTIL_LIBRARY_DEBUG - The osgUtil debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgViewer"></a><b><code>FindosgViewer</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgViewer This module defines<br /></p>
<p>OSGVIEWER_FOUND - Was osgViewer found? OSGVIEWER_INCLUDE_DIR - Where to find the headers OSGVIEWER_LIBRARIES - The libraries to link for osgViewer (use this)<br /></p>
<p>OSGVIEWER_LIBRARY - The osgViewer library OSGVIEWER_LIBRARY_DEBUG - The osgViewer debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgVolume"></a><b><code>FindosgVolume</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgVolume This module defines<br /></p>
<p>OSGVOLUME_FOUND - Was osgVolume found? OSGVOLUME_INCLUDE_DIR - Where to find the headers OSGVOLUME_LIBRARIES - The libraries to link for osgVolume (use this)<br /></p>
<p>OSGVOLUME_LIBRARY - The osgVolume library OSGVOLUME_LIBRARY_DEBUG - The osgVolume debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgWidget"></a><b><code>FindosgWidget</code></b>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgWidget This module defines<br /></p>
<p>OSGWIDGET_FOUND - Was osgWidget found? OSGWIDGET_INCLUDE_DIR - Where to find the headers OSGWIDGET_LIBRARIES - The libraries to link for osgWidget (use this)<br /></p>
<p>OSGWIDGET_LIBRARY - The osgWidget library OSGWIDGET_LIBRARY_DEBUG - The osgWidget debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>FindosgWidget.cmake tweaked from Findosg* suite as created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:Findosg_functions"></a><b><code>Findosg_functions</code></b>:  <br />
    <p><br /></p>
<p>This CMake file contains two macros to assist with searching for OSG libraries and nodekits.  Please see FindOpenSceneGraph.cmake for full documentation.<br /></p>

  </li>
  <li>
    <a name="module:FindwxWidgets"></a><b><code>FindwxWidgets</code></b>: Find a wxWidgets (a.k.a., wxWindows) installation.<br />
    <p>This module finds if wxWidgets is installed and selects a default configuration to use. wxWidgets is a modular library. To specify the modules that you will use, you need to name them as components to the package:<br /></p>
<p>find_package(wxWidgets COMPONENTS core base ...)<br /></p>
<p>There are two search branches: a windows style and a unix style. For windows, the following variables are searched for and set to defaults in case of multiple choices. Change them if the defaults are not desired (i.e., these are the only variables you should change to select a configuration):<br /></p>
<pre>  wxWidgets_ROOT_DIR      - Base wxWidgets directory<br />                            (e.g., C:/wxWidgets-2.6.3).<br />  wxWidgets_LIB_DIR       - Path to wxWidgets libraries<br />                            (e.g., C:/wxWidgets-2.6.3/lib/vc_lib).<br />  wxWidgets_CONFIGURATION - Configuration to use<br />                            (e.g., msw, mswd, mswu, mswunivud, etc.)<br />  wxWidgets_EXCLUDE_COMMON_LIBRARIES<br />                          - Set to TRUE to exclude linking of<br />                            commonly required libs (e.g., png tiff<br />                            jpeg zlib regex expat).<br /></pre>
    <p><br /></p>
<p>For unix style it uses the wx-config utility. You can select between debug/release, unicode/ansi, universal/non-universal, and static/shared in the QtDialog or ccmake interfaces by turning ON/OFF the following variables:<br /></p>
<pre>  wxWidgets_USE_DEBUG<br />  wxWidgets_USE_UNICODE<br />  wxWidgets_USE_UNIVERSAL<br />  wxWidgets_USE_STATIC<br /></pre>
    <p><br /></p>
<p>There is also a wxWidgets_CONFIG_OPTIONS variable for all other options that need to be passed to the wx-config utility. For example, to use the base toolkit found in the /usr/local path, set the variable (before calling the FIND_PACKAGE command) as such:<br /></p>
<pre>  set(wxWidgets_CONFIG_OPTIONS --toolkit=base --prefix=/usr)<br /></pre>
    <p><br /></p>
<p>The following are set after the configuration is done for both windows and unix style:<br /></p>
<pre>  wxWidgets_FOUND            - Set to TRUE if wxWidgets was found.<br />  wxWidgets_INCLUDE_DIRS     - Include directories for WIN32<br />                               i.e., where to find "wx/wx.h" and<br />                               "wx/setup.h"; possibly empty for unices.<br />  wxWidgets_LIBRARIES        - Path to the wxWidgets libraries.<br />  wxWidgets_LIBRARY_DIRS     - compile time link dirs, useful for<br />                               rpath on UNIX. Typically an empty string<br />                               in WIN32 environment.<br />  wxWidgets_DEFINITIONS      - Contains defines required to compile/link<br />                               against WX, e.g. WXUSINGDLL<br />  wxWidgets_DEFINITIONS_DEBUG- Contains defines required to compile/link<br />                               against WX debug builds, e.g. __WXDEBUG__<br />  wxWidgets_CXX_FLAGS        - Include dirs and compiler flags for<br />                               unices, empty on WIN32. Essentially<br />                               "`wx-config --cxxflags`".<br />  wxWidgets_USE_FILE         - Convenience include file.<br /></pre>
    <p><br /></p>
<p>Sample usage:<br /></p>
<pre>   # Note that for MinGW users the order of libs is important!<br />   find_package(wxWidgets COMPONENTS net gl core base)<br />   if(wxWidgets_FOUND)<br />     include(${wxWidgets_USE_FILE})<br />     # and for each of your dependent executable/library targets:<br />     target_link_libraries(&lt;YourTarget&gt; ${wxWidgets_LIBRARIES})<br />   endif()<br /></pre>
    <p><br /></p>
<p>If wxWidgets is required (i.e., not an optional part):<br /></p>
<pre>   find_package(wxWidgets REQUIRED net gl core base)<br />   include(${wxWidgets_USE_FILE})<br />   # and for each of your dependent executable/library targets:<br />   target_link_libraries(&lt;YourTarget&gt; ${wxWidgets_LIBRARIES})<br /></pre>
    
  </li>
  <li>
    <a name="module:FindwxWindows"></a><b><code>FindwxWindows</code></b>: Find wxWindows (wxWidgets) installation<br />
    <p>This module finds if wxWindows/wxWidgets is installed and determines where the include files and libraries are. It also determines what the name of the library is. Please note this file is DEPRECATED and replaced by FindwxWidgets.cmake. This code sets the following variables:<br /></p>
<pre>  WXWINDOWS_FOUND     = system has WxWindows<br />  WXWINDOWS_LIBRARIES = path to the wxWindows libraries<br />                        on Unix/Linux with additional<br />                        linker flags from<br />                        "wx-config --libs"<br />  CMAKE_WXWINDOWS_CXX_FLAGS  = Compiler flags for wxWindows,<br />                               essentially "`wx-config --cxxflags`"<br />                               on Linux<br />  WXWINDOWS_INCLUDE_DIR      = where to find "wx/wx.h" and "wx/setup.h"<br />  WXWINDOWS_LINK_DIRECTORIES = link directories, useful for rpath on<br />                                Unix<br />  WXWINDOWS_DEFINITIONS      = extra defines<br /></pre>
    <p><br /></p>
<p>OPTIONS If you need OpenGL support please<br /></p>
<pre>  set(WXWINDOWS_USE_GL 1)<br /></pre>
    <p>in your CMakeLists.txt *before* you include this file.<br /></p>
<pre>  HAVE_ISYSTEM      - true required to replace -I by -isystem on g++<br /></pre>
    <p><br /></p>
<p>For convenience include Use_wxWindows.cmake in your project's CMakeLists.txt using include(${CMAKE_CURRENT_LIST_DIR}/Use_wxWindows.cmake).<br /></p>
<p>USAGE<br /></p>
<pre>  set(WXWINDOWS_USE_GL 1)<br />  find_package(wxWindows)<br /></pre>
    <p><br /></p>
<p>NOTES wxWidgets 2.6.x is supported for monolithic builds e.g. compiled  in wx/build/msw dir as:<br /></p>
<pre>  nmake -f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 MONOLITHIC=1<br /></pre>
    <p><br /></p>
<p>DEPRECATED<br /></p>
<pre>  CMAKE_WX_CAN_COMPILE<br />  WXWINDOWS_LIBRARY<br />  CMAKE_WX_CXX_FLAGS<br />  WXWINDOWS_INCLUDE_PATH<br /></pre>
    <p><br /></p>
<p>AUTHOR Jan Woetzel &lt;<a href="http://www.mip.informatik.uni-kiel.de/~jw">http://www.mip.informatik.uni-kiel.de/~jw</a>&gt; (07/2003-01/2006)</p>

  </li>
  <li>
    <a name="module:FortranCInterface"></a><b><code>FortranCInterface</code></b>: Fortran/C Interface Detection<br />
    <p>This module automatically detects the API by which C and Fortran languages interact.  Variables indicate if the mangling is found:<br /></p>
<pre>   FortranCInterface_GLOBAL_FOUND = Global subroutines and functions<br />   FortranCInterface_MODULE_FOUND = Module subroutines and functions<br />                                    (declared by "MODULE PROCEDURE")<br /></pre>
    <p>A function is provided to generate a C header file containing macros to mangle symbol names:<br /></p>
<pre>   FortranCInterface_HEADER(&lt;file&gt;<br />                            [MACRO_NAMESPACE &lt;macro-ns&gt;]<br />                            [SYMBOL_NAMESPACE &lt;ns&gt;]<br />                            [SYMBOLS [&lt;module&gt;:]&lt;function&gt; ...])<br /></pre>
    <p>It generates in &lt;file&gt; definitions of the following macros:<br /></p>
<pre>   #define FortranCInterface_GLOBAL (name,NAME) ...<br />   #define FortranCInterface_GLOBAL_(name,NAME) ...<br />   #define FortranCInterface_MODULE (mod,name, MOD,NAME) ...<br />   #define FortranCInterface_MODULE_(mod,name, MOD,NAME) ...<br /></pre>
    <p>These macros mangle four categories of Fortran symbols, respectively:<br /></p>
<pre>   - Global symbols without '_': call mysub()<br />   - Global symbols with '_'   : call my_sub()<br />   - Module symbols without '_': use mymod; call mysub()<br />   - Module symbols with '_'   : use mymod; call my_sub()<br /></pre>
    <p>If mangling for a category is not known, its macro is left undefined. All macros require raw names in both lower case and upper case. The MACRO_NAMESPACE option replaces the default "FortranCInterface_" prefix with a given namespace "&lt;macro-ns&gt;".<br /></p>
<p>The SYMBOLS option lists symbols to mangle automatically with C preprocessor definitions:<br /></p>
<pre>   &lt;function&gt;          ==&gt; #define &lt;ns&gt;&lt;function&gt; ...<br />   &lt;module&gt;:&lt;function&gt; ==&gt; #define &lt;ns&gt;&lt;module&gt;_&lt;function&gt; ...<br /></pre>
    <p>If the mangling for some symbol is not known then no preprocessor definition is created, and a warning is displayed. The SYMBOL_NAMESPACE option prefixes all preprocessor definitions generated by the SYMBOLS option with a given namespace "&lt;ns&gt;".<br /></p>
<p>Example usage:<br /></p>
<pre>   include(FortranCInterface)<br />   FortranCInterface_HEADER(FC.h MACRO_NAMESPACE "FC_")<br /></pre>
    <p>This creates a "FC.h" header that defines mangling macros FC_GLOBAL(), FC_GLOBAL_(), FC_MODULE(), and FC_MODULE_().<br /></p>
<p>Example usage:<br /></p>
<pre>   include(FortranCInterface)<br />   FortranCInterface_HEADER(FCMangle.h<br />                            MACRO_NAMESPACE "FC_"<br />                            SYMBOL_NAMESPACE "FC_"<br />                            SYMBOLS mysub mymod:my_sub)<br /></pre>
    <p>This creates a "FCMangle.h" header that defines the same FC_*() mangling macros as the previous example plus preprocessor symbols FC_mysub and FC_mymod_my_sub.<br /></p>
<p>Another function is provided to verify that the Fortran and C/C++ compilers work together:<br /></p>
<pre>   FortranCInterface_VERIFY([CXX] [QUIET])<br /></pre>
    <p>It tests whether a simple test executable using Fortran and C (and C++ when the CXX option is given) compiles and links successfully. The result is stored in the cache entry FortranCInterface_VERIFIED_C (or FortranCInterface_VERIFIED_CXX if CXX is given) as a boolean. If the check fails and QUIET is not given the function terminates with a FATAL_ERROR message describing the problem.  The purpose of this check is to stop a build early for incompatible compiler combinations.  The test is built in the Release configuration.<br /></p>
<p>FortranCInterface is aware of possible GLOBAL and MODULE manglings for many Fortran compilers, but it also provides an interface to specify new possible manglings.  Set the variables<br /></p>
<pre>   FortranCInterface_GLOBAL_SYMBOLS<br />   FortranCInterface_MODULE_SYMBOLS<br /></pre>
    <p>before including FortranCInterface to specify manglings of the symbols "MySub", "My_Sub", "MyModule:MySub", and "My_Module:My_Sub". For example, the code:<br /></p>
<pre>   set(FortranCInterface_GLOBAL_SYMBOLS mysub_ my_sub__ MYSUB_)<br />     #                                  ^^^^^  ^^^^^^   ^^^^^<br />   set(FortranCInterface_MODULE_SYMBOLS<br />       __mymodule_MOD_mysub __my_module_MOD_my_sub)<br />     #   ^^^^^^^^     ^^^^^   ^^^^^^^^^     ^^^^^^<br />   include(FortranCInterface)<br /></pre>
    <p>tells FortranCInterface to try given GLOBAL and MODULE manglings. (The carets point at raw symbol names for clarity in this example but are not needed.)</p>

  </li>
  <li>
    <a name="module:GNUInstallDirs"></a><b><code>GNUInstallDirs</code></b>: Define GNU standard installation directories<br />
    <p>Provides install directory variables as defined for GNU software:<br /></p>
<pre>  <a href="http://www.gnu.org/prep/standards/html_node/Directory-Variables.html">http://www.gnu.org/prep/standards/html_node/Directory-Variables.html</a><br /></pre>
    <p>Inclusion of this module defines the following variables:<br /></p>
<pre>  CMAKE_INSTALL_&lt;dir&gt;      - destination for files of a given type<br />  CMAKE_INSTALL_FULL_&lt;dir&gt; - corresponding absolute path<br /></pre>
    <p>where &lt;dir&gt; is one of:<br /></p>
<pre>  BINDIR           - user executables (bin)<br />  SBINDIR          - system admin executables (sbin)<br />  LIBEXECDIR       - program executables (libexec)<br />  SYSCONFDIR       - read-only single-machine data (etc)<br />  SHAREDSTATEDIR   - modifiable architecture-independent data (com)<br />  LOCALSTATEDIR    - modifiable single-machine data (var)<br />  LIBDIR           - object code libraries (lib or lib64 or lib/&lt;multiarch-tuple&gt; on Debian)<br />  INCLUDEDIR       - C header files (include)<br />  OLDINCLUDEDIR    - C header files for non-gcc (/usr/include)<br />  DATAROOTDIR      - read-only architecture-independent data root (share)<br />  DATADIR          - read-only architecture-independent data (DATAROOTDIR)<br />  INFODIR          - info documentation (DATAROOTDIR/info)<br />  LOCALEDIR        - locale-dependent data (DATAROOTDIR/locale)<br />  MANDIR           - man documentation (DATAROOTDIR/man)<br />  DOCDIR           - documentation root (DATAROOTDIR/doc/PROJECT_NAME)<br /></pre>
    <p>Each CMAKE_INSTALL_&lt;dir&gt; value may be passed to the DESTINATION options of install() commands for the corresponding file type.  If the includer does not define a value the above-shown default will be used and the value will appear in the cache for editing by the user. Each CMAKE_INSTALL_FULL_&lt;dir&gt; value contains an absolute path constructed from the corresponding destination by prepending (if necessary) the value of CMAKE_INSTALL_PREFIX.</p>

  </li>
  <li>
    <a name="module:GenerateExportHeader"></a><b><code>GenerateExportHeader</code></b>: Function for generation of export macros for libraries<br />
    <p>This module provides the function GENERATE_EXPORT_HEADER() and the accompanying ADD_COMPILER_EXPORT_FLAGS() function.<br /></p>
<p>The GENERATE_EXPORT_HEADER function can be used to generate a file suitable for preprocessor inclusion which contains EXPORT macros to be used in library classes.<br /></p>
<p>GENERATE_EXPORT_HEADER( LIBRARY_TARGET<br /></p>
<pre>             [BASE_NAME &lt;base_name&gt;]<br />             [EXPORT_MACRO_NAME &lt;export_macro_name&gt;]<br />             [EXPORT_FILE_NAME &lt;export_file_name&gt;]<br />             [DEPRECATED_MACRO_NAME &lt;deprecated_macro_name&gt;]<br />             [NO_EXPORT_MACRO_NAME &lt;no_export_macro_name&gt;]<br />             [STATIC_DEFINE &lt;static_define&gt;]<br />             [NO_DEPRECATED_MACRO_NAME &lt;no_deprecated_macro_name&gt;]<br />             [DEFINE_NO_DEPRECATED]<br />             [PREFIX_NAME &lt;prefix_name&gt;]<br /></pre>
    <p>)<br /></p>
<p>ADD_COMPILER_EXPORT_FLAGS( [&lt;output_variable&gt;] )<br /></p>
<p>By default GENERATE_EXPORT_HEADER() generates macro names in a file name determined by the name of the library. The ADD_COMPILER_EXPORT_FLAGS function adds -fvisibility=hidden to CMAKE_CXX_FLAGS if supported, and is a no-op on Windows which does not need extra compiler flags for exporting support. You may optionally pass a single argument to ADD_COMPILER_EXPORT_FLAGS that will be populated with the required CXX_FLAGS required to enable visibility support for the compiler/architecture in use.<br /></p>
<p>This means that in the simplest case, users of these functions will be equivalent to:<br /></p>
<pre>   add_compiler_export_flags()<br />   add_library(somelib someclass.cpp)<br />   generate_export_header(somelib)<br />   install(TARGETS somelib DESTINATION ${LIBRARY_INSTALL_DIR})<br />   install(FILES<br />    someclass.h<br />    ${PROJECT_BINARY_DIR}/somelib_export.h DESTINATION ${INCLUDE_INSTALL_DIR}<br />   )<br /></pre>
    <p><br /></p>
<p>And in the ABI header files:<br /></p>
<pre>   #include "somelib_export.h"<br />   class SOMELIB_EXPORT SomeClass {<br />     ...<br />   };<br /></pre>
    <p><br /></p>
<p>The CMake fragment will generate a file in the ${CMAKE_CURRENT_BINARY_DIR} called somelib_export.h containing the macros SOMELIB_EXPORT, SOMELIB_NO_EXPORT, SOMELIB_DEPRECATED, SOMELIB_DEPRECATED_EXPORT and SOMELIB_DEPRECATED_NO_EXPORT. The resulting file should be installed with other headers in the library.<br /></p>
<p>The BASE_NAME argument can be used to override the file name and the names used for the macros<br /></p>
<pre>   add_library(somelib someclass.cpp)<br />   generate_export_header(somelib<br />     BASE_NAME other_name<br />   )<br /></pre>
    <p><br /></p>
<p>Generates a file called other_name_export.h containing the macros OTHER_NAME_EXPORT, OTHER_NAME_NO_EXPORT and OTHER_NAME_DEPRECATED etc.<br /></p>
<p>The BASE_NAME may be overridden by specifiying other options in the function. For example:<br /></p>
<pre>   add_library(somelib someclass.cpp)<br />   generate_export_header(somelib<br />     EXPORT_MACRO_NAME OTHER_NAME_EXPORT<br />   )<br /></pre>
    <p><br /></p>
<p>creates the macro OTHER_NAME_EXPORT instead of SOMELIB_EXPORT, but other macros and the generated file name is as default.<br /></p>
<pre>   add_library(somelib someclass.cpp)<br />   generate_export_header(somelib<br />     DEPRECATED_MACRO_NAME KDE_DEPRECATED<br />   )<br /></pre>
    <p><br /></p>
<p>creates the macro KDE_DEPRECATED instead of SOMELIB_DEPRECATED.<br /></p>
<p>If LIBRARY_TARGET is a static library, macros are defined without values.<br /></p>
<p>If the same sources are used to create both a shared and a static library, the uppercased symbol ${BASE_NAME}_STATIC_DEFINE should be used when building the static library<br /></p>
<pre>   add_library(shared_variant SHARED ${lib_SRCS})<br />   add_library(static_variant ${lib_SRCS})<br />   generate_export_header(shared_variant BASE_NAME libshared_and_static)<br />   set_target_properties(static_variant PROPERTIES<br />     COMPILE_FLAGS -DLIBSHARED_AND_STATIC_STATIC_DEFINE)<br /></pre>
    <p><br /></p>
<p>This will cause the export macros to expand to nothing when building the static library.<br /></p>
<p>If DEFINE_NO_DEPRECATED is specified, then a macro ${BASE_NAME}_NO_DEPRECATED will be defined This macro can be used to remove deprecated code from preprocessor output.<br /></p>
<pre>   option(EXCLUDE_DEPRECATED "Exclude deprecated parts of the library" FALSE)<br />   if (EXCLUDE_DEPRECATED)<br />     set(NO_BUILD_DEPRECATED DEFINE_NO_DEPRECATED)<br />   endif()<br />   generate_export_header(somelib ${NO_BUILD_DEPRECATED})<br /></pre>
    <p><br /></p>
<p>And then in somelib:<br /></p>
<pre>   class SOMELIB_EXPORT SomeClass<br />   {<br />   public:<br />   #ifndef SOMELIB_NO_DEPRECATED<br />     SOMELIB_DEPRECATED void oldMethod();<br />   #endif<br />   };<br /></pre>
    <p><br /></p>
<pre>   #ifndef SOMELIB_NO_DEPRECATED<br />   void SomeClass::oldMethod() {  }<br />   #endif<br /></pre>
    <p><br /></p>
<p>If PREFIX_NAME is specified, the argument will be used as a prefix to all generated macros.<br /></p>
<p>For example:<br /></p>
<pre>   generate_export_header(somelib PREFIX_NAME VTK_)<br /></pre>
    <p><br /></p>
<p>Generates the macros VTK_SOMELIB_EXPORT etc.</p>

  </li>
  <li>
    <a name="module:GetPrerequisites"></a><b><code>GetPrerequisites</code></b>: Functions to analyze and list executable file prerequisites.<br />
    <p>This module provides functions to list the .dll, .dylib or .so files that an executable or shared library file depends on. (Its prerequisites.)<br /></p>
<p>It uses various tools to obtain the list of required shared library files:<br /></p>
<pre>   dumpbin (Windows)<br />   objdump (MinGW on Windows)<br />   ldd (Linux/Unix)<br />   otool (Mac OSX)<br /></pre>
    <p>The following functions are provided by this module:<br /></p>
<pre>   get_prerequisites<br />   list_prerequisites<br />   list_prerequisites_by_glob<br />   gp_append_unique<br />   is_file_executable<br />   gp_item_default_embedded_path<br />     (projects can override with gp_item_default_embedded_path_override)<br />   gp_resolve_item<br />     (projects can override with gp_resolve_item_override)<br />   gp_resolved_file_type<br />     (projects can override with gp_resolved_file_type_override)<br />   gp_file_type<br /></pre>
    <p>Requires CMake 2.6 or greater because it uses function, break, return and PARENT_SCOPE.<br /></p>
<pre>  GET_PREREQUISITES(&lt;target&gt; &lt;prerequisites_var&gt; &lt;exclude_system&gt; &lt;recurse&gt;<br />                    &lt;exepath&gt; &lt;dirs&gt;)<br /></pre>
    <p>Get the list of shared library files required by &lt;target&gt;. The list in the variable named &lt;prerequisites_var&gt; should be empty on first entry to this function. On exit, &lt;prerequisites_var&gt; will contain the list of required shared library files.<br /></p>
<p>&lt;target&gt; is the full path to an executable file. &lt;prerequisites_var&gt; is the name of a CMake variable to contain the results. &lt;exclude_system&gt; must be 0 or 1 indicating whether to include or exclude "system" prerequisites. If &lt;recurse&gt; is set to 1 all prerequisites will be found recursively, if set to 0 only direct prerequisites are listed. &lt;exepath&gt; is the path to the top level executable used for @executable_path replacment on the Mac. &lt;dirs&gt; is a list of paths where libraries might be found: these paths are searched first when a target without any path info is given. Then standard system locations are also searched: PATH, Framework locations, /usr/lib...<br /></p>
<pre>  LIST_PREREQUISITES(&lt;target&gt; [&lt;recurse&gt; [&lt;exclude_system&gt; [&lt;verbose&gt;]]])<br /></pre>
    <p>Print a message listing the prerequisites of &lt;target&gt;.<br /></p>
<p>&lt;target&gt; is the name of a shared library or executable target or the full path to a shared library or executable file. If &lt;recurse&gt; is set to 1 all prerequisites will be found recursively, if set to 0 only direct prerequisites are listed. &lt;exclude_system&gt; must be 0 or 1 indicating whether to include or exclude "system" prerequisites. With &lt;verbose&gt; set to 0 only the full path names of the prerequisites are printed, set to 1 extra informatin will be displayed.<br /></p>
<pre>  LIST_PREREQUISITES_BY_GLOB(&lt;glob_arg&gt; &lt;glob_exp&gt;)<br /></pre>
    <p>Print the prerequisites of shared library and executable files matching a globbing pattern. &lt;glob_arg&gt; is GLOB or GLOB_RECURSE and &lt;glob_exp&gt; is a globbing expression used with "file(GLOB" or "file(GLOB_RECURSE" to retrieve a list of matching files. If a matching file is executable, its prerequisites are listed.<br /></p>
<p>Any additional (optional) arguments provided are passed along as the optional arguments to the list_prerequisites calls.<br /></p>
<pre>  GP_APPEND_UNIQUE(&lt;list_var&gt; &lt;value&gt;)<br /></pre>
    <p>Append &lt;value&gt; to the list variable &lt;list_var&gt; only if the value is not already in the list.<br /></p>
<pre>  IS_FILE_EXECUTABLE(&lt;file&gt; &lt;result_var&gt;)<br /></pre>
    <p>Return 1 in &lt;result_var&gt; if &lt;file&gt; is a binary executable, 0 otherwise.<br /></p>
<pre>  GP_ITEM_DEFAULT_EMBEDDED_PATH(&lt;item&gt; &lt;default_embedded_path_var&gt;)<br /></pre>
    <p>Return the path that others should refer to the item by when the item is embedded inside a bundle.<br /></p>
<p>Override on a per-project basis by providing a project-specific gp_item_default_embedded_path_override function.<br /></p>
<pre>  GP_RESOLVE_ITEM(&lt;context&gt; &lt;item&gt; &lt;exepath&gt; &lt;dirs&gt; &lt;resolved_item_var&gt;)<br /></pre>
    <p>Resolve an item into an existing full path file.<br /></p>
<p>Override on a per-project basis by providing a project-specific gp_resolve_item_override function.<br /></p>
<pre>  GP_RESOLVED_FILE_TYPE(&lt;original_file&gt; &lt;file&gt; &lt;exepath&gt; &lt;dirs&gt; &lt;type_var&gt;)<br /></pre>
    <p>Return the type of &lt;file&gt; with respect to &lt;original_file&gt;. String describing type of prerequisite is returned in variable named &lt;type_var&gt;.<br /></p>
<p>Use &lt;exepath&gt; and &lt;dirs&gt; if necessary to resolve non-absolute &lt;file&gt; values -- but only for non-embedded items.<br /></p>
<p>Possible types are:<br /></p>
<pre>   system<br />   local<br />   embedded<br />   other<br /></pre>
    <p>Override on a per-project basis by providing a project-specific gp_resolved_file_type_override function.<br /></p>
<pre>  GP_FILE_TYPE(&lt;original_file&gt; &lt;file&gt; &lt;type_var&gt;)<br /></pre>
    <p>Return the type of &lt;file&gt; with respect to &lt;original_file&gt;. String describing type of prerequisite is returned in variable named &lt;type_var&gt;.<br /></p>
<p>Possible types are:<br /></p>
<pre>   system<br />   local<br />   embedded<br />   other<br /></pre>
    
  </li>
  <li>
    <a name="module:InstallRequiredSystemLibraries"></a><b><code>InstallRequiredSystemLibraries</code></b>:  <br />
    <p>By including this file, all library files listed in the variable CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS will be installed with install(PROGRAMS ...) into bin for WIN32 and lib for non-WIN32. If CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP is set to TRUE before including this file, then the INSTALL command is not called. The user can use the variable CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS to use a custom install command and install them however they want. If it is the MSVC compiler, then the microsoft run time libraries will be found and automatically added to the CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS, and installed. If CMAKE_INSTALL_DEBUG_LIBRARIES is set and it is the MSVC compiler, then the debug libraries are installed when available. If CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY is set then only the debug libraries are installed when both debug and release are available. If CMAKE_INSTALL_MFC_LIBRARIES is set then the MFC run time libraries are installed as well as the CRT run time libraries. If CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION is set then the libraries are installed to that directory rather than the default. If CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS is NOT set, then this file warns about required files that do not exist. You can set this variable to ON before including this file to avoid the warning. For example, the Visual Studio Express editions do not include the redistributable files, so if you include this file on a machine with only VS Express installed, you'll get the warning.</p>

  </li>
  <li>
    <a name="module:MacroAddFileDependencies"></a><b><code>MacroAddFileDependencies</code></b>: MACRO_ADD_FILE_DEPENDENCIES(&lt;_file&gt; depend_files...)<br />
    <p>Using the macro MACRO_ADD_FILE_DEPENDENCIES() is discouraged. There are usually better ways to specify the correct dependencies.<br /></p>
<p>MACRO_ADD_FILE_DEPENDENCIES(&lt;_file&gt; depend_files...) is just a convenience wrapper around the OBJECT_DEPENDS source file property. You can just use set_property(SOURCE &lt;file&gt; APPEND PROPERTY OBJECT_DEPENDS depend_files) instead.</p>

  </li>
  <li>
    <a name="module:ProcessorCount"></a><b><code>ProcessorCount</code></b>: ProcessorCount(var)<br />
    <p>Determine the number of processors/cores and save value in ${var}<br /></p>
<p>Sets the variable named ${var} to the number of physical cores available on the machine if the information can be determined. Otherwise it is set to 0. Currently this functionality is implemented for AIX, cygwin, FreeBSD, HPUX, IRIX, Linux, Mac OS X, QNX, Sun and Windows.<br /></p>
<p>This function is guaranteed to return a positive integer (&gt;=1) if it succeeds. It returns 0 if there's a problem determining the processor count.<br /></p>
<p>Example use, in a ctest -S dashboard script:<br /></p>
<pre>   include(ProcessorCount)<br />   ProcessorCount(N)<br />   if(NOT N EQUAL 0)<br />     set(CTEST_BUILD_FLAGS -j${N})<br />     set(ctest_test_args ${ctest_test_args} PARALLEL_LEVEL ${N})<br />   endif()<br /></pre>
    <p><br /></p>
<p>This function is intended to offer an approximation of the value of the number of compute cores available on the current machine, such that you may use that value for parallel building and parallel testing. It is meant to help utilize as much of the machine as seems reasonable. Of course, knowledge of what else might be running on the machine simultaneously should be used when deciding whether to request a machine's full capacity all for yourself.</p>

  </li>
  <li>
    <a name="module:Qt4ConfigDependentSettings"></a><b><code>Qt4ConfigDependentSettings</code></b>:  <br />
    <p>This file is included by FindQt4.cmake, don't include it directly.</p>

  </li>
  <li>
    <a name="module:Qt4Macros"></a><b><code>Qt4Macros</code></b>:  <br />
    <p>This file is included by FindQt4.cmake, don't include it directly.</p>

  </li>
  <li>
    <a name="module:SelectLibraryConfigurations"></a><b><code>SelectLibraryConfigurations</code></b>:  <br />
    <p>select_library_configurations( basename )<br /></p>
<p>This macro takes a library base name as an argument, and will choose good values for basename_LIBRARY, basename_LIBRARIES, basename_LIBRARY_DEBUG, and basename_LIBRARY_RELEASE depending on what has been found and set.  If only basename_LIBRARY_RELEASE is defined, basename_LIBRARY will be set to the release value, and basename_LIBRARY_DEBUG will be set to basename_LIBRARY_DEBUG-NOTFOUND.  If only basename_LIBRARY_DEBUG is defined, then basename_LIBRARY will take the debug value, and basename_LIBRARY_RELEASE will be set to basename_LIBRARY_RELEASE-NOTFOUND.<br /></p>
<p>If the generator supports configuration types, then basename_LIBRARY and basename_LIBRARIES will be set with debug and optimized flags specifying the library to be used for the given configuration.  If no build type has been set or the generator in use does not support configuration types, then basename_LIBRARY and basename_LIBRARIES will take only the release value, or the debug value if the release one is not set.</p>

  </li>
  <li>
    <a name="module:SquishTestScript"></a><b><code>SquishTestScript</code></b>:  <br />
    <p><br /></p>
<p>This script launches a GUI test using Squish.  You should not call the script directly; instead, you should access it via the SQUISH_ADD_TEST macro that is defined in FindSquish.cmake.<br /></p>
<p>This script starts the Squish server, launches the test on the client, and finally stops the squish server.  If any of these steps fail (including if the tests do not pass) then a fatal error is raised.<br /></p>

  </li>
  <li>
    <a name="module:TestBigEndian"></a><b><code>TestBigEndian</code></b>: Define macro to determine endian type<br />
    <p>Check if the system is big endian or little endian<br /></p>
<pre>  TEST_BIG_ENDIAN(VARIABLE)<br />  VARIABLE - variable to store the result to<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestCXXAcceptsFlag"></a><b><code>TestCXXAcceptsFlag</code></b>: Test CXX compiler for a flag<br />
    <p>Check if the CXX compiler accepts a flag<br /></p>
<pre>  Macro CHECK_CXX_ACCEPTS_FLAG(FLAGS VARIABLE) -<br />     checks if the function exists<br />  FLAGS - the flags to try<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestForANSIForScope"></a><b><code>TestForANSIForScope</code></b>: Check for ANSI for scope support<br />
    <p>Check if the compiler restricts the scope of variables declared in a for-init-statement to the loop body.<br /></p>
<pre>  CMAKE_NO_ANSI_FOR_SCOPE - holds result<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestForANSIStreamHeaders"></a><b><code>TestForANSIStreamHeaders</code></b>: Test for compiler support of ANSI stream headers iostream, etc.<br />
    <p>check if the compiler supports the standard ANSI iostream header (without the .h)<br /></p>
<pre>  CMAKE_NO_ANSI_STREAM_HEADERS - defined by the results<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestForSSTREAM"></a><b><code>TestForSSTREAM</code></b>: Test for compiler support of ANSI sstream header<br />
    <p>check if the compiler supports the standard ANSI sstream header<br /></p>
<pre>  CMAKE_NO_ANSI_STRING_STREAM - defined by the results<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestForSTDNamespace"></a><b><code>TestForSTDNamespace</code></b>: Test for std:: namespace support<br />
    <p>check if the compiler supports std:: on stl classes<br /></p>
<pre>  CMAKE_NO_STD_NAMESPACE - defined by the results<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:UseEcos"></a><b><code>UseEcos</code></b>: This module defines variables and macros required to build eCos application.<br />
    <p>This file contains the following macros: ECOS_ADD_INCLUDE_DIRECTORIES() - add the eCos include dirs ECOS_ADD_EXECUTABLE(name source1 ... sourceN ) - create an eCos executable ECOS_ADJUST_DIRECTORY(VAR source1 ... sourceN ) - adjusts the path of the source files and puts the result into VAR<br /></p>
<p>Macros for selecting the toolchain: ECOS_USE_ARM_ELF_TOOLS()       - enable the ARM ELF toolchain for the directory where it is called ECOS_USE_I386_ELF_TOOLS()      - enable the i386 ELF toolchain for the directory where it is called ECOS_USE_PPC_EABI_TOOLS()      - enable the PowerPC toolchain for the directory where it is called<br /></p>
<p>It contains the following variables: ECOS_DEFINITIONS ECOSCONFIG_EXECUTABLE ECOS_CONFIG_FILE               - defaults to ecos.ecc, if your eCos configuration file has a different name, adjust this variable for internal use only:<br /></p>
<pre>  ECOS_ADD_TARGET_LIB<br /></pre>
    
  </li>
  <li>
    <a name="module:UseJava"></a><b><code>UseJava</code></b>: Use Module for Java<br />
    <p>This file provides functions for Java. It is assumed that FindJava.cmake has already been loaded.  See FindJava.cmake for information on how to load Java into your CMake project.<br /></p>
<p>add_jar(target_name<br /></p>
<pre>         [SOURCES] source1 [source2 ...] [resource1 ...]<br />         [INCLUDE_JARS jar1 [jar2 ...]]<br />         [ENTRY_POINT entry]<br />         [VERSION version]<br />         [OUTPUT_NAME name]<br />         [OUTPUT_DIR dir]<br />        )<br /></pre>
    <p><br /></p>
<p>This command creates a &lt;target_name&gt;.jar. It compiles the given source files (source) and adds the given resource files (resource) to the jar file. If only resource files are given then just a jar file is created. The list of include jars are added to the classpath when compiling the java sources and also to the dependencies of the target. INCLUDE_JARS also accepts other target names created by add_jar. For backwards compatibility, jar files listed as sources are ignored (as they have been since the first version of this module).<br /></p>
<p>The default OUTPUT_DIR can also be changed by setting the variable CMAKE_JAVA_TARGET_OUTPUT_DIR.<br /></p>
<p>Additional instructions:<br /></p>
<pre>   To add compile flags to the target you can set these flags with<br />   the following variable:<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAVA_COMPILE_FLAGS -nowarn)<br /></pre>
    <p><br /></p>
<pre>   To add a path or a jar file to the class path you can do this<br />   with the CMAKE_JAVA_INCLUDE_PATH variable.<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAVA_INCLUDE_PATH /usr/share/java/shibboleet.jar)<br /></pre>
    <p><br /></p>
<pre>   To use a different output name for the target you can set it with:<br /></pre>
    <p><br /></p>
<pre>       add_jar(foobar foobar.java OUTPUT_NAME shibboleet.jar)<br /></pre>
    <p><br /></p>
<pre>   To use a different output directory than CMAKE_CURRENT_BINARY_DIR<br />   you can set it with:<br /></pre>
    <p><br /></p>
<pre>       add_jar(foobar foobar.java OUTPUT_DIR ${PROJECT_BINARY_DIR}/bin)<br /></pre>
    <p><br /></p>
<pre>   To define an entry point in your jar you can set it with the ENTRY_POINT<br />   named argument:<br /></pre>
    <p><br /></p>
<pre>       add_jar(example ENTRY_POINT com/examples/MyProject/Main)<br /></pre>
    <p><br /></p>
<pre>   To add a VERSION to the target output name you can set it using<br />   the VERSION named argument to add_jar. This will create a jar file with the<br />   name shibboleet-1.0.0.jar and will create a symlink shibboleet.jar<br />   pointing to the jar with the version information.<br /></pre>
    <p><br /></p>
<pre>       add_jar(shibboleet shibbotleet.java VERSION 1.2.0)<br /></pre>
    <p><br /></p>
<pre>    If the target is a JNI library, utilize the following commands to<br />    create a JNI symbolic link:<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JNI_TARGET TRUE)<br />       add_jar(shibboleet shibbotleet.java VERSION 1.2.0)<br />       install_jar(shibboleet ${LIB_INSTALL_DIR}/shibboleet)<br />       install_jni_symlink(shibboleet ${JAVA_LIB_INSTALL_DIR})<br /></pre>
    <p><br /></p>
<pre>    If a single target needs to produce more than one jar from its<br />    java source code, to prevent the accumulation of duplicate class<br />    files in subsequent jars, set/reset CMAKE_JAR_CLASSES_PREFIX prior<br />    to calling the add_jar() function:<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAR_CLASSES_PREFIX com/redhat/foo)<br />       add_jar(foo foo.java)<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAR_CLASSES_PREFIX com/redhat/bar)<br />       add_jar(bar bar.java)<br /></pre>
    <p><br /></p>
<p>Target Properties:<br /></p>
<pre>   The add_jar() functions sets some target properties. You can get these<br />   properties with the<br />      get_property(TARGET &lt;target_name&gt; PROPERTY &lt;propery_name&gt;)<br />   command.<br /></pre>
    <p><br /></p>
<pre>   INSTALL_FILES      The files which should be installed. This is used by<br />                      install_jar().<br />   JNI_SYMLINK        The JNI symlink which should be installed.<br />                      This is used by install_jni_symlink().<br />   JAR_FILE           The location of the jar file so that you can include<br />                      it.<br />   CLASS_DIR          The directory where the class files can be found. For<br />                      example to use them with javah.<br /></pre>
    <p><br /></p>
<p>find_jar(&lt;VAR&gt;<br /></p>
<pre>          name | NAMES name1 [name2 ...]<br />          [PATHS path1 [path2 ... ENV var]]<br />          [VERSIONS version1 [version2]]<br />          [DOC "cache documentation string"]<br />         )<br /></pre>
    <p><br /></p>
<p>This command is used to find a full path to the named jar. A cache entry named by &lt;VAR&gt; is created to stor the result of this command. If the full path to a jar is found the result is stored in the variable and the search will not repeated unless the variable is cleared. If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again next time find_jar is invoked with the same variable. The name of the full path to a file that is searched for is specified by the names listed after NAMES argument. Additional search locations can be specified after the PATHS argument. If you require special a version of a jar file you can specify it with the VERSIONS argument. The argument after DOC will be used for the documentation string in the cache.<br /></p>
<p>install_jar(TARGET_NAME DESTINATION)<br /></p>
<p>This command installs the TARGET_NAME files to the given DESTINATION. It should be called in the same scope as add_jar() or it will fail.<br /></p>
<p>install_jni_symlink(TARGET_NAME DESTINATION)<br /></p>
<p>This command installs the TARGET_NAME JNI symlinks to the given DESTINATION. It should be called in the same scope as add_jar() or it will fail.<br /></p>
<p>create_javadoc(&lt;VAR&gt;<br /></p>
<pre>                PACKAGES pkg1 [pkg2 ...]<br />                [SOURCEPATH &lt;sourcepath&gt;]<br />                [CLASSPATH &lt;classpath&gt;]<br />                [INSTALLPATH &lt;install path&gt;]<br />                [DOCTITLE "the documentation title"]<br />                [WINDOWTITLE "the title of the document"]<br />                [AUTHOR TRUE|FALSE]<br />                [USE TRUE|FALSE]<br />                [VERSION TRUE|FALSE]<br />               )<br /></pre>
    <p><br /></p>
<p>Create java documentation based on files or packages. For more details please read the javadoc manpage.<br /></p>
<p>There are two main signatures for create_javadoc. The first signature works with package names on a path with source files:<br /></p>
<pre>   Example:<br />   create_javadoc(my_example_doc<br />     PACKAGES com.exmaple.foo com.example.bar<br />     SOURCEPATH "${CMAKE_CURRENT_SOURCE_DIR}"<br />     CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}<br />     WINDOWTITLE "My example"<br />     DOCTITLE "&lt;h1&gt;My example&lt;/h1&gt;"<br />     AUTHOR TRUE<br />     USE TRUE<br />     VERSION TRUE<br />   )<br /></pre>
    <p><br /></p>
<p>The second signature for create_javadoc works on a given list of files.<br /></p>
<pre>   create_javadoc(&lt;VAR&gt;<br />                  FILES file1 [file2 ...]<br />                  [CLASSPATH &lt;classpath&gt;]<br />                  [INSTALLPATH &lt;install path&gt;]<br />                  [DOCTITLE "the documentation title"]<br />                  [WINDOWTITLE "the title of the document"]<br />                  [AUTHOR TRUE|FALSE]<br />                  [USE TRUE|FALSE]<br />                  [VERSION TRUE|FALSE]<br />                 )<br /></pre>
    <p><br /></p>
<p>Example:<br /></p>
<pre>   create_javadoc(my_example_doc<br />     FILES ${example_SRCS}<br />     CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}<br />     WINDOWTITLE "My example"<br />     DOCTITLE "&lt;h1&gt;My example&lt;/h1&gt;"<br />     AUTHOR TRUE<br />     USE TRUE<br />     VERSION TRUE<br />   )<br /></pre>
    <p><br /></p>
<p>Both signatures share most of the options. These options are the same as what you can find in the javadoc manpage. Please look at the manpage for CLASSPATH, DOCTITLE, WINDOWTITLE, AUTHOR, USE and VERSION.<br /></p>
<p>The documentation will be by default installed to<br /></p>
<pre>   ${CMAKE_INSTALL_PREFIX}/share/javadoc/&lt;VAR&gt;<br /></pre>
    <p><br /></p>
<p>if you don't set the INSTALLPATH.<br /></p>

  </li>
  <li>
    <a name="module:UseJavaClassFilelist"></a><b><code>UseJavaClassFilelist</code></b>:  <br />
    <p><br /></p>
<p>This script create a list of compiled Java class files to be added to a jar file. This avoids including cmake files which get created in the binary directory.<br /></p>

  </li>
  <li>
    <a name="module:UseJavaSymlinks"></a><b><code>UseJavaSymlinks</code></b>:  <br />
    <p><br /></p>
<p>Helper script for UseJava.cmake<br /></p>

  </li>
  <li>
    <a name="module:UsePkgConfig"></a><b><code>UsePkgConfig</code></b>: Obsolete pkg-config module for CMake, use FindPkgConfig instead.<br />
    <p><br /></p>
<p>This module defines the following macro:<br /></p>
<p>PKGCONFIG(package includedir libdir linkflags cflags)<br /></p>
<p>Calling PKGCONFIG will fill the desired information into the 4 given arguments, e.g. PKGCONFIG(libart-2.0 LIBART_INCLUDE_DIR LIBART_LINK_DIR LIBART_LINK_FLAGS LIBART_CFLAGS) if pkg-config was NOT found or the specified software package doesn't exist, the variable will be empty when the function returns, otherwise they will contain the respective information<br /></p>

  </li>
  <li>
    <a name="module:UseQt4"></a><b><code>UseQt4</code></b>: Use Module for QT4<br />
    <p>Sets up C and C++ to use Qt 4.  It is assumed that FindQt.cmake has already been loaded.  See FindQt.cmake for information on how to load Qt 4 into your CMake project.</p>

  </li>
  <li>
    <a name="module:UseSWIG"></a><b><code>UseSWIG</code></b>: SWIG module for CMake<br />
    <p>Defines the following macros:<br /></p>
<pre>   SWIG_ADD_MODULE(name language [ files ])<br />     - Define swig module with given name and specified language<br />   SWIG_LINK_LIBRARIES(name [ libraries ])<br />     - Link libraries to swig module<br /></pre>
    <p>All other macros are for internal use only. To get the actual name of the swig module, use: ${SWIG_MODULE_${name}_REAL_NAME}. Set Source files properties such as CPLUSPLUS and SWIG_FLAGS to specify special behavior of SWIG. Also global CMAKE_SWIG_FLAGS can be used to add special flags to all swig calls. Another special variable is CMAKE_SWIG_OUTDIR, it allows one to specify where to write all the swig generated module (swig -outdir option) The name-specific variable SWIG_MODULE_&lt;name&gt;_EXTRA_DEPS may be used to specify extra dependencies for the generated modules. If the source file generated by swig need some special flag you can use set_source_files_properties( ${swig_generated_file_fullname}<br /></p>
<pre>        PROPERTIES COMPILE_FLAGS "-bla")<br /></pre>
    
  </li>
  <li>
    <a name="module:Use_wxWindows"></a><b><code>Use_wxWindows</code></b>: ---------------------------------------------------<br />
    <p><br /></p>
<p>This convenience include finds if wxWindows is installed and set the appropriate libs, incdirs, flags etc. author Jan Woetzel &lt;jw -at- mip.informatik.uni-kiel.de&gt; (07/2003) USAGE:<br /></p>
<pre>   just include Use_wxWindows.cmake<br />   in your projects CMakeLists.txt<br /></pre>
    <p>include( ${CMAKE_MODULE_PATH}/Use_wxWindows.cmake)<br /></p>
<pre>   if you are sure you need GL then<br /></pre>
    <p>set(WXWINDOWS_USE_GL 1)<br /></p>
<pre>   *before* you include this file.<br /></pre>
    
  </li>
  <li>
    <a name="module:UsewxWidgets"></a><b><code>UsewxWidgets</code></b>: Convenience include for using wxWidgets library.<br />
    <p>Determines if wxWidgets was FOUND and sets the appropriate libs, incdirs, flags, etc. INCLUDE_DIRECTORIES and LINK_DIRECTORIES are called.<br /></p>
<p>USAGE<br /></p>
<pre>  # Note that for MinGW users the order of libs is important!<br />  find_package(wxWidgets REQUIRED net gl core base)<br />  include(${wxWidgets_USE_FILE})<br />  # and for each of your dependent executable/library targets:<br />  target_link_libraries(&lt;YourTarget&gt; ${wxWidgets_LIBRARIES})<br /></pre>
    <p><br /></p>
<p>DEPRECATED<br /></p>
<pre>  LINK_LIBRARIES is not called in favor of adding dependencies per target.<br /></pre>
    <p><br /></p>
<p>AUTHOR<br /></p>
<pre>  Jan Woetzel &lt;jw -at- mip.informatik.uni-kiel.de&gt;<br /></pre>
    
  </li>
  <li>
    <a name="module:WriteBasicConfigVersionFile"></a><b><code>WriteBasicConfigVersionFile</code></b>:  <br />
    <pre>  WRITE_BASIC_CONFIG_VERSION_FILE( filename VERSION major.minor.patch COMPATIBILITY (AnyNewerVersion|SameMajorVersion) )<br /></pre>
    <p><br /></p>
<p>Deprecated, see WRITE_BASIC_PACKAGE_VERSION_FILE(), it is identical.</p>

  </li>
</ul>
<h2><a name="section_Policies"></a>Policies</h2>
<ul>
    <li><a href="#policy:CMP0000"><b><code>CMP0000</code></b></a></li>
    <li><a href="#policy:CMP0001"><b><code>CMP0001</code></b></a></li>
    <li><a href="#policy:CMP0002"><b><code>CMP0002</code></b></a></li>
    <li><a href="#policy:CMP0003"><b><code>CMP0003</code></b></a></li>
    <li><a href="#policy:CMP0004"><b><code>CMP0004</code></b></a></li>
    <li><a href="#policy:CMP0005"><b><code>CMP0005</code></b></a></li>
    <li><a href="#policy:CMP0006"><b><code>CMP0006</code></b></a></li>
    <li><a href="#policy:CMP0007"><b><code>CMP0007</code></b></a></li>
    <li><a href="#policy:CMP0008"><b><code>CMP0008</code></b></a></li>
    <li><a href="#policy:CMP0009"><b><code>CMP0009</code></b></a></li>
    <li><a href="#policy:CMP0010"><b><code>CMP0010</code></b></a></li>
    <li><a href="#policy:CMP0011"><b><code>CMP0011</code></b></a></li>
    <li><a href="#policy:CMP0012"><b><code>CMP0012</code></b></a></li>
    <li><a href="#policy:CMP0013"><b><code>CMP0013</code></b></a></li>
    <li><a href="#policy:CMP0014"><b><code>CMP0014</code></b></a></li>
    <li><a href="#policy:CMP0015"><b><code>CMP0015</code></b></a></li>
    <li><a href="#policy:CMP0016"><b><code>CMP0016</code></b></a></li>
    <li><a href="#policy:CMP0017"><b><code>CMP0017</code></b></a></li>
    <li><a href="#policy:CMP0018"><b><code>CMP0018</code></b></a></li>
    <li><a href="#policy:CMP0019"><b><code>CMP0019</code></b></a></li>
    <li><a href="#policy:CMP0020"><b><code>CMP0020</code></b></a></li>
    <li><a href="#policy:CMP0021"><b><code>CMP0021</code></b></a></li>
    <li><a href="#policy:CMP0022"><b><code>CMP0022</code></b></a></li>
    <li><a href="#policy:CMP0023"><b><code>CMP0023</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="policy:CMP0000"></a><b><code>CMP0000</code></b>: A minimum required CMake version must be specified.<br />
    <p>CMake requires that projects specify the version of CMake to which they have been written.  This policy has been put in place so users trying to build the project may be told when they need to update their CMake.  Specifying a version also helps the project build with CMake versions newer than that specified.  Use the cmake_minimum_required command at the top of your main  CMakeLists.txt file:<br /></p>
<pre>  cmake_minimum_required(VERSION &lt;major&gt;.&lt;minor&gt;)<br /></pre>
    <p>where "&lt;major&gt;.&lt;minor&gt;" is the version of CMake you want to support (such as "2.6").  The command will ensure that at least the given version of CMake is running and help newer versions be compatible with the project.  See documentation of cmake_minimum_required for details.<br /></p>
<p>Note that the command invocation must appear in the CMakeLists.txt file itself; a call in an included file is not sufficient.  However, the cmake_policy command may be called to set policy CMP0000 to OLD or NEW behavior explicitly.  The OLD behavior is to silently ignore the missing invocation.  The NEW behavior is to issue an error instead of a warning.  An included file may set CMP0000 explicitly to affect how this policy is enforced for the main CMakeLists.txt file.<br /></p>
<p>This policy was introduced in CMake version 2.6.0.</p>

  </li>
  <li>
    <a name="policy:CMP0001"></a><b><code>CMP0001</code></b>: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used.<br />
    <p>The OLD behavior is to check CMAKE_BACKWARDS_COMPATIBILITY and present it to the user.  The NEW behavior is to ignore CMAKE_BACKWARDS_COMPATIBILITY completely.<br /></p>
<p>In CMake 2.4 and below the variable CMAKE_BACKWARDS_COMPATIBILITY was used to request compatibility with earlier versions of CMake.  In CMake 2.6 and above all compatibility issues are handled by policies and the cmake_policy command.  However, CMake must still check CMAKE_BACKWARDS_COMPATIBILITY for projects written for CMake 2.4 and below.<br /></p>
<p>This policy was introduced in CMake version 2.6.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0002"></a><b><code>CMP0002</code></b>: Logical target names must be globally unique.<br />
    <p>Targets names created with add_executable, add_library, or add_custom_target are logical build target names.  Logical target names must be globally unique because:<br /></p>
<pre>  - Unique names may be referenced unambiguously both in CMake<br />    code and on make tool command lines.<br />  - Logical names are used by Xcode and VS IDE generators<br />    to produce meaningful project names for the targets.<br /></pre>
    <p>The logical name of executable and library targets does not have to correspond to the physical file names built.  Consider using the OUTPUT_NAME target property to create two targets with the same physical name while keeping logical names distinct.  Custom targets must simply have globally unique names (unless one uses the global property ALLOW_DUPLICATE_CUSTOM_TARGETS with a Makefiles generator).<br /></p>
<p>This policy was introduced in CMake version 2.6.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0003"></a><b><code>CMP0003</code></b>: Libraries linked via full path no longer produce linker search paths.<br />
    <p>This policy affects how libraries whose full paths are NOT known are found at link time, but was created due to a change in how CMake deals with libraries whose full paths are known.  Consider the code<br /></p>
<pre>  target_link_libraries(myexe /path/to/libA.so)<br /></pre>
    <p>CMake 2.4 and below implemented linking to libraries whose full paths are known by splitting them on the link line into separate components consisting of the linker search path and the library name.  The example code might have produced something like<br /></p>
<pre>  ... -L/path/to -lA ...<br /></pre>
    <p>in order to link to library A.  An analysis was performed to order multiple link directories such that the linker would find library A in the desired location, but there are cases in which this does not work.  CMake versions 2.6 and above use the more reliable approach of passing the full path to libraries directly to the linker in most cases.  The example code now produces something like<br /></p>
<pre>  ... /path/to/libA.so ....<br /></pre>
    <p>Unfortunately this change can break code like<br /></p>
<pre>  target_link_libraries(myexe /path/to/libA.so B)<br /></pre>
    <p>where "B" is meant to find "/path/to/libB.so".  This code is wrong because the user is asking the linker to find library B but has not provided a linker search path (which may be added with the link_directories command).  However, with the old linking implementation the code would work accidentally because the linker search path added for library A allowed library B to be found.<br /></p>
<p>In order to support projects depending on linker search paths added by linking to libraries with known full paths, the OLD behavior for this policy will add the linker search paths even though they are not needed for their own libraries.  When this policy is set to OLD, CMake will produce a link line such as<br /></p>
<pre>  ... -L/path/to /path/to/libA.so -lB ...<br /></pre>
    <p>which will allow library B to be found as it was previously.  When this policy is set to NEW, CMake will produce a link line such as<br /></p>
<pre>  ... /path/to/libA.so -lB ...<br /></pre>
    <p>which more accurately matches what the project specified.<br /></p>
<p>The setting for this policy used when generating the link line is that in effect when the target is created by an add_executable or add_library command.  For the example described above, the code<br /></p>
<pre>  cmake_policy(SET CMP0003 OLD) # or cmake_policy(VERSION 2.4)<br />  add_executable(myexe myexe.c)<br />  target_link_libraries(myexe /path/to/libA.so B)<br /></pre>
    <p>will work and suppress the warning for this policy.  It may also be updated to work with the corrected linking approach:<br /></p>
<pre>  cmake_policy(SET CMP0003 NEW) # or cmake_policy(VERSION 2.6)<br />  link_directories(/path/to) # needed to find library B<br />  add_executable(myexe myexe.c)<br />  target_link_libraries(myexe /path/to/libA.so B)<br /></pre>
    <p>Even better, library B may be specified with a full path:<br /></p>
<pre>  add_executable(myexe myexe.c)<br />  target_link_libraries(myexe /path/to/libA.so /path/to/libB.so)<br /></pre>
    <p>When all items on the link line have known paths CMake does not check this policy so it has no effect.<br /></p>
<p>Note that the warning for this policy will be issued for at most one target.  This avoids flooding users with messages for every target when setting the policy once will probably fix all targets.<br /></p>
<p>This policy was introduced in CMake version 2.6.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0004"></a><b><code>CMP0004</code></b>: Libraries linked may not have leading or trailing whitespace.<br />
    <p>CMake versions 2.4 and below silently removed leading and trailing whitespace from libraries linked with code like<br /></p>
<pre>  target_link_libraries(myexe " A ")<br /></pre>
    <p>This could lead to subtle errors in user projects.<br /></p>
<p>The OLD behavior for this policy is to silently remove leading and trailing whitespace.  The NEW behavior for this policy is to diagnose the existence of such whitespace as an error.  The setting for this policy used when checking the library names is that in effect when the target is created by an add_executable or add_library command.<br /></p>
<p>This policy was introduced in CMake version 2.6.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0005"></a><b><code>CMP0005</code></b>: Preprocessor definition values are now escaped automatically.<br />
    <p>This policy determines whether or not CMake should generate escaped preprocessor definition values added via add_definitions.  CMake versions 2.4 and below assumed that only trivial values would be given for macros in add_definitions calls.  It did not attempt to escape non-trivial values such as string literals in generated build rules.  CMake versions 2.6 and above support escaping of most values, but cannot assume the user has not added escapes already in an attempt to work around limitations in earlier versions.<br /></p>
<p>The OLD behavior for this policy is to place definition values given to add_definitions directly in the generated build rules without attempting to escape anything.  The NEW behavior for this policy is to generate correct escapes for all native build tools automatically.  See documentation of the COMPILE_DEFINITIONS target property for limitations of the escaping implementation.<br /></p>
<p>This policy was introduced in CMake version 2.6.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0006"></a><b><code>CMP0006</code></b>: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.<br />
    <p>This policy determines whether the install(TARGETS) command must be given a BUNDLE DESTINATION when asked to install a target with the MACOSX_BUNDLE property set.  CMake 2.4 and below did not distinguish application bundles from normal executables when installing targets.  CMake 2.6 provides a BUNDLE option to the install(TARGETS) command that specifies rules specific to application bundles on the Mac.  Projects should use this option when installing a target with the MACOSX_BUNDLE property set.<br /></p>
<p>The OLD behavior for this policy is to fall back to the RUNTIME DESTINATION if a BUNDLE DESTINATION is not given.  The NEW behavior for this policy is to produce an error if a bundle target is installed without a BUNDLE DESTINATION.<br /></p>
<p>This policy was introduced in CMake version 2.6.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0007"></a><b><code>CMP0007</code></b>: list command no longer ignores empty elements.<br />
    <p>This policy determines whether the list command will ignore empty elements in the list. CMake 2.4 and below list commands ignored all empty elements in the list.  For example, a;b;;c would have length 3 and not 4. The OLD behavior for this policy is to ignore empty list elements. The NEW behavior for this policy is to correctly count empty elements in a list. <br /></p>
<p>This policy was introduced in CMake version 2.6.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0008"></a><b><code>CMP0008</code></b>: Libraries linked by full-path must have a valid library file name.<br />
    <p>In CMake 2.4 and below it is possible to write code like<br /></p>
<pre>  target_link_libraries(myexe /full/path/to/somelib)<br /></pre>
    <p>where "somelib" is supposed to be a valid library file name such as "libsomelib.a" or "somelib.lib".  For Makefile generators this produces an error at build time because the dependency on the full path cannot be found.  For VS IDE and Xcode generators this used to work by accident because CMake would always split off the library directory and ask the linker to search for the library by name (-lsomelib or somelib.lib).  Despite the failure with Makefiles, some projects have code like this and build only with VS and/or Xcode.  This version of CMake prefers to pass the full path directly to the native build tool, which will fail in this case because it does not name a valid library file.<br /></p>
<p>This policy determines what to do with full paths that do not appear to name a valid library file.  The OLD behavior for this policy is to split the library name from the path and ask the linker to search for it.  The NEW behavior for this policy is to trust the given path and pass it directly to the native build tool unchanged.<br /></p>
<p>This policy was introduced in CMake version 2.6.1.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0009"></a><b><code>CMP0009</code></b>: FILE GLOB_RECURSE calls should not follow symlinks by default.<br />
    <p>In CMake 2.6.1 and below, FILE GLOB_RECURSE calls would follow through symlinks, sometimes coming up with unexpectedly large result sets because of symlinks to top level directories that contain hundreds of thousands of files.<br /></p>
<p>This policy determines whether or not to follow symlinks encountered during a FILE GLOB_RECURSE call. The OLD behavior for this policy is to follow the symlinks. The NEW behavior for this policy is not to follow the symlinks by default, but only if FOLLOW_SYMLINKS is given as an additional argument to the FILE command.<br /></p>
<p>This policy was introduced in CMake version 2.6.2.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0010"></a><b><code>CMP0010</code></b>: Bad variable reference syntax is an error.<br />
    <p>In CMake 2.6.2 and below, incorrect variable reference syntax such as a missing close-brace ("${FOO") was reported but did not stop processing of CMake code.  This policy determines whether a bad variable reference is an error.  The OLD behavior for this policy is to warn about the error, leave the string untouched, and continue. The NEW behavior for this policy is to report an error.<br /></p>
<p>This policy was introduced in CMake version 2.6.3.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0011"></a><b><code>CMP0011</code></b>: Included scripts do automatic cmake_policy PUSH and POP.<br />
    <p>In CMake 2.6.2 and below, CMake Policy settings in scripts loaded by the include() and find_package() commands would affect the includer.  Explicit invocations of cmake_policy(PUSH) and cmake_policy(POP) were required to isolate policy changes and protect the includer.  While some scripts intend to affect the policies of their includer, most do not.  In CMake 2.6.3 and above, include() and find_package() by default PUSH and POP an entry on the policy stack around an included script, but provide a NO_POLICY_SCOPE option to disable it.  This policy determines whether or not to imply NO_POLICY_SCOPE for compatibility.  The OLD behavior for this policy is to imply NO_POLICY_SCOPE for include() and find_package() commands.  The NEW behavior for this policy is to allow the commands to do their default cmake_policy PUSH and POP.<br /></p>
<p>This policy was introduced in CMake version 2.6.3.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0012"></a><b><code>CMP0012</code></b>: if() recognizes numbers and boolean constants.<br />
    <p>In CMake versions 2.6.4 and lower the if() command implicitly dereferenced arguments corresponding to variables, even those named like numbers or boolean constants, except for 0 and 1.  Numbers and boolean constants such as true, false, yes, no, on, off, y, n, notfound, ignore (all case insensitive) were recognized in some cases but not all.  For example, the code "if(TRUE)" might have evaluated as false.  Numbers such as 2 were recognized only in boolean expressions like "if(NOT 2)" (leading to false) but not as a single-argument like "if(2)" (also leading to false). Later versions of CMake prefer to treat numbers and boolean constants literally, so they should not be used as variable names.<br /></p>
<p>The OLD behavior for this policy is to implicitly dereference variables named like numbers and boolean constants. The NEW behavior for this policy is to recognize numbers and boolean constants without dereferencing variables with such names.<br /></p>
<p>This policy was introduced in CMake version 2.8.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0013"></a><b><code>CMP0013</code></b>: Duplicate binary directories are not allowed.<br />
    <p>CMake 2.6.3 and below silently permitted add_subdirectory() calls to create the same binary directory multiple times.  During build system generation files would be written and then overwritten in the build tree and could lead to strange behavior.  CMake 2.6.4 and above explicitly detect duplicate binary directories.  CMake 2.6.4 always considers this case an error.  In CMake 2.8.0 and above this policy determines whether or not the case is an error.  The OLD behavior for this policy is to allow duplicate binary directories.  The NEW behavior for this policy is to disallow duplicate binary directories with an error.<br /></p>
<p>This policy was introduced in CMake version 2.8.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0014"></a><b><code>CMP0014</code></b>: Input directories must have CMakeLists.txt.<br />
    <p>CMake versions before 2.8 silently ignored missing CMakeLists.txt files in directories referenced by add_subdirectory() or subdirs(), treating them as if present but empty.  In CMake 2.8.0 and above this policy determines whether or not the case is an error.  The OLD behavior for this policy is to silently ignore the problem.  The NEW behavior for this policy is to report an error.<br /></p>
<p>This policy was introduced in CMake version 2.8.0.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0015"></a><b><code>CMP0015</code></b>: link_directories() treats paths relative to the source dir.<br />
    <p>In CMake 2.8.0 and lower the link_directories() command passed relative paths unchanged to the linker.  In CMake 2.8.1 and above the link_directories() command prefers to interpret relative paths with respect to CMAKE_CURRENT_SOURCE_DIR, which is consistent with include_directories() and other commands.  The OLD behavior for this policy is to use relative paths verbatim in the linker command.  The NEW behavior for this policy is to convert relative paths to absolute paths by appending the relative path to CMAKE_CURRENT_SOURCE_DIR.<br /></p>
<p>This policy was introduced in CMake version 2.8.1.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0016"></a><b><code>CMP0016</code></b>: target_link_libraries() reports error if its only argument is not a target.<br />
    <p>In CMake 2.8.2 and lower the target_link_libraries() command silently ignored if it was called with only one argument, and this argument wasn't a valid target. In CMake 2.8.3 and above it reports an error in this case.<br /></p>
<p>This policy was introduced in CMake version 2.8.3.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0017"></a><b><code>CMP0017</code></b>: Prefer files from the CMake module directory when including from there.<br />
    <p>Starting with CMake 2.8.4, if a cmake-module shipped with CMake (i.e. located in the CMake module directory) calls include() or find_package(), the files located in the CMake module directory are preferred over the files in CMAKE_MODULE_PATH.  This makes sure that the modules belonging to CMake always get those files included which they expect, and against which they were developed and tested.  In all other cases, the files found in CMAKE_MODULE_PATH still take precedence over the ones in the CMake module directory.  The OLD behaviour is to always prefer files from CMAKE_MODULE_PATH over files from the CMake modules directory.<br /></p>
<p>This policy was introduced in CMake version 2.8.4.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0018"></a><b><code>CMP0018</code></b>: Ignore CMAKE_SHARED_LIBRARY_&lt;Lang&gt;_FLAGS variable.<br />
    <p>CMake 2.8.8 and lower compiled sources in SHARED and MODULE libraries using the value of the undocumented CMAKE_SHARED_LIBRARY_&lt;Lang&gt;_FLAGS platform variable.  The variable contained platform-specific flags needed to compile objects for shared libraries.  Typically it included a flag such as -fPIC for position independent code but also included other flags needed on certain platforms.  CMake 2.8.9 and higher prefer instead to use the POSITION_INDEPENDENT_CODE target property to determine what targets should be position independent, and new undocumented platform variables to select flags while ignoring CMAKE_SHARED_LIBRARY_&lt;Lang&gt;_FLAGS completely.<br /></p>
<p>The default for either approach produces identical compilation flags, but if a project modifies CMAKE_SHARED_LIBRARY_&lt;Lang&gt;_FLAGS from its original value this policy determines which approach to use.<br /></p>
<p>The OLD behavior for this policy is to ignore the POSITION_INDEPENDENT_CODE property for all targets and use the modified value of CMAKE_SHARED_LIBRARY_&lt;Lang&gt;_FLAGS for SHARED and MODULE libraries.<br /></p>
<p>The NEW behavior for this policy is to ignore CMAKE_SHARED_LIBRARY_&lt;Lang&gt;_FLAGS whether it is modified or not and honor the POSITION_INDEPENDENT_CODE target property.<br /></p>
<p>This policy was introduced in CMake version 2.8.9.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0019"></a><b><code>CMP0019</code></b>: Do not re-expand variables in include and link information.<br />
    <p>CMake 2.8.10 and lower re-evaluated values given to the include_directories, link_directories, and link_libraries commands to expand any leftover variable references at the end of the configuration step.  This was for strict compatibility with VERY early CMake versions because all variable references are now normally evaluated during CMake language processing.  CMake 2.8.11 and higher prefer to skip the extra evaluation.<br /></p>
<p>The OLD behavior for this policy is to re-evaluate the values for strict compatibility.  The NEW behavior for this policy is to leave the values untouched.<br /></p>
<p>This policy was introduced in CMake version 2.8.11.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0020"></a><b><code>CMP0020</code></b>: Automatically link Qt executables to qtmain target on Windows.<br />
    <p>CMake 2.8.10 and lower required users of Qt to always specify a link dependency to the qtmain.lib static library manually on Windows.  CMake 2.8.11 gained the ability to evaluate generator expressions while determining the link dependencies from IMPORTED targets.  This allows CMake itself to automatically link executables which link to Qt to the qtmain.lib library when using IMPORTED Qt targets.  For applications already linking to qtmain.lib, this should have little impact.  For applications which supply their own alternative WinMain implementation and for applications which use the QAxServer library, this automatic linking will need to be disabled as per the documentation.<br /></p>
<p>The OLD behavior for this policy is not to link executables to qtmain.lib automatically when they link to the QtCore IMPORTEDtarget.  The NEW behavior for this policy is to link executables to qtmain.lib automatically when they link to QtCore IMPORTED target.<br /></p>
<p>This policy was introduced in CMake version 2.8.11.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0021"></a><b><code>CMP0021</code></b>: Fatal error on relative paths in INCLUDE_DIRECTORIES target property.<br />
    <p>CMake 2.8.10.2 and lower allowed the INCLUDE_DIRECTORIES target property to contain relative paths.  The base path for such relative entries is not well defined.  CMake 2.8.12 issues a FATAL_ERROR if the INCLUDE_DIRECTORIES property contains a relative path.<br /></p>
<p>The OLD behavior for this policy is not to warn about relative paths in the INCLUDE_DIRECTORIES target property.  The NEW behavior for this policy is to issue a FATAL_ERROR if INCLUDE_DIRECTORIES contains a relative path.<br /></p>
<p>This policy was introduced in CMake version 2.8.12.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0022"></a><b><code>CMP0022</code></b>: INTERFACE_LINK_LIBRARIES defines the link interface.<br />
    <p>CMake 2.8.11 constructed the 'link interface' of a target from properties matching (IMPORTED_)?LINK_INTERFACE_LIBRARIES(_&lt;CONFIG&gt;)?.  The modern way to specify config-sensitive content is to use generator expressions and the IMPORTED_ prefix makes uniform processing of the link interface with generator expressions impossible.  The INTERFACE_LINK_LIBRARIES target property was introduced as a replacement in CMake 2.8.12. This new property is named consistently with the INTERFACE_COMPILE_DEFINITIONS, INTERFACE_INCLUDE_DIRECTORIES and INTERFACE_COMPILE_OPTIONS properties.  For in-build targets, CMake will use the INTERFACE_LINK_LIBRARIES property as the source of the link interface only if policy CMP0022 is NEW.  When exporting a target which has this policy set to NEW, only the INTERFACE_LINK_LIBRARIES property will be processed and generated for the IMPORTED target by default.  A new option to the install(EXPORT) and export commands allows export of the old-style properties for compatibility with downstream users of CMake versions older than 2.8.12.  The target_link_libraries command will no longer populate the properties matching LINK_INTERFACE_LIBRARIES(_&lt;CONFIG&gt;)? if this policy is NEW.<br /></p>
<p>The OLD behavior for this policy is to ignore the INTERFACE_LINK_LIBRARIES property for in-build targets.  The NEW behavior for this policy is to use the INTERFACE_LINK_LIBRARIES property for in-build targets, and ignore the old properties matching (IMPORTED_)?LINK_INTERFACE_LIBRARIES(_&lt;CONFIG&gt;)?.<br /></p>
<p>This policy was introduced in CMake version 2.8.12.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
  <li>
    <a name="policy:CMP0023"></a><b><code>CMP0023</code></b>: Plain and keyword target_link_libraries signatures cannot be mixed.<br />
    <p>CMake 2.8.12 introduced the target_link_libraries signature using the PUBLIC, PRIVATE, and INTERFACE keywords to generalize the LINK_PUBLIC and LINK_PRIVATE keywords introduced in CMake 2.8.7.  Use of signatures with any of these keywords sets the link interface of a target explicitly, even if empty.  This produces confusing behavior when used in combination with the historical behavior of the plain target_link_libraries signature.  For example, consider the code:<br /></p>
<pre> target_link_libraries(mylib A)<br /> target_link_libraries(mylib PRIVATE B)<br /></pre>
    <p>After the first line the link interface has not been set explicitly so CMake would use the link implementation, A, as the link interface.  However, the second line sets the link interface to empty.  In order to avoid this subtle behavior CMake now prefers to disallow mixing the plain and keyword signatures of target_link_libraries for a single target.<br /></p>
<p>The OLD behavior for this policy is to allow keyword and plain target_link_libraries signatures to be mixed.  The NEW behavior for this policy is to not to allow mixing of the keyword and plain signatures.<br /></p>
<p>This policy was introduced in CMake version 2.8.12.  CMake version 2.8.12.2 warns when the policy is not set and uses OLD behavior.  Use the cmake_policy command to set it to OLD or NEW explicitly.</p>

  </li>
</ul>
<h2><a name="section_Variables"></a>Variables</h2>
<h2><a name="section_VariablesThatChangeBehavior"></a>Variables That Change Behavior</h2>
<ul>
    <li><a href="#variable:BUILD_SHARED_LIBS"><b><code>BUILD_SHARED_LIBS</code></b></a></li>
    <li><a href="#variable:CMAKE_ABSOLUTE_DESTINATION_FILES"><b><code>CMAKE_ABSOLUTE_DESTINATION_FILES</code></b></a></li>
    <li><a href="#variable:CMAKE_AUTOMOC_RELAXED_MODE"><b><code>CMAKE_AUTOMOC_RELAXED_MODE</code></b></a></li>
    <li><a href="#variable:CMAKE_BACKWARDS_COMPATIBILITY"><b><code>CMAKE_BACKWARDS_COMPATIBILITY</code></b></a></li>
    <li><a href="#variable:CMAKE_BUILD_TYPE"><b><code>CMAKE_BUILD_TYPE</code></b></a></li>
    <li><a href="#variable:CMAKE_COLOR_MAKEFILE"><b><code>CMAKE_COLOR_MAKEFILE</code></b></a></li>
    <li><a href="#variable:CMAKE_CONFIGURATION_TYPES"><b><code>CMAKE_CONFIGURATION_TYPES</code></b></a></li>
    <li><a href="#variable:CMAKE_DEBUG_TARGET_PROPERTIES"><b><code>CMAKE_DEBUG_TARGET_PROPERTIES</code></b></a></li>
    <li><a href="#variable:CMAKE_DISABLE_FIND_PACKAGE_PackageName"><b><code>CMAKE_DISABLE_FIND_PACKAGE_&lt;PackageName&gt;</code></b></a></li>
    <li><a href="#variable:CMAKE_ERROR_DEPRECATED"><b><code>CMAKE_ERROR_DEPRECATED</code></b></a></li>
    <li><a href="#variable:CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION"><b><code>CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION</code></b></a></li>
    <li><a href="#variable:CMAKE_FIND_LIBRARY_PREFIXES"><b><code>CMAKE_FIND_LIBRARY_PREFIXES</code></b></a></li>
    <li><a href="#variable:CMAKE_FIND_LIBRARY_SUFFIXES"><b><code>CMAKE_FIND_LIBRARY_SUFFIXES</code></b></a></li>
    <li><a href="#variable:CMAKE_FIND_PACKAGE_WARN_NO_MODULE"><b><code>CMAKE_FIND_PACKAGE_WARN_NO_MODULE</code></b></a></li>
    <li><a href="#variable:CMAKE_IGNORE_PATH"><b><code>CMAKE_IGNORE_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_INCLUDE_PATH"><b><code>CMAKE_INCLUDE_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_INSTALL_DEFAULT_COMPONENT_NAME"><b><code>CMAKE_INSTALL_DEFAULT_COMPONENT_NAME</code></b></a></li>
    <li><a href="#variable:CMAKE_INSTALL_PREFIX"><b><code>CMAKE_INSTALL_PREFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_LIBRARY_PATH"><b><code>CMAKE_LIBRARY_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_MFC_FLAG"><b><code>CMAKE_MFC_FLAG</code></b></a></li>
    <li><a href="#variable:CMAKE_MODULE_PATH"><b><code>CMAKE_MODULE_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_NOT_USING_CONFIG_FLAGS"><b><code>CMAKE_NOT_USING_CONFIG_FLAGS</code></b></a></li>
    <li><a href="#variable:CMAKE_POLICY_DEFAULT_CMPNNNN"><b><code>CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt;</code></b></a></li>
    <li><a href="#variable:CMAKE_PREFIX_PATH"><b><code>CMAKE_PREFIX_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_PROGRAM_PATH"><b><code>CMAKE_PROGRAM_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_SKIP_INSTALL_ALL_DEPENDENCY"><b><code>CMAKE_SKIP_INSTALL_ALL_DEPENDENCY</code></b></a></li>
    <li><a href="#variable:CMAKE_SYSTEM_IGNORE_PATH"><b><code>CMAKE_SYSTEM_IGNORE_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_SYSTEM_INCLUDE_PATH"><b><code>CMAKE_SYSTEM_INCLUDE_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_SYSTEM_LIBRARY_PATH"><b><code>CMAKE_SYSTEM_LIBRARY_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_SYSTEM_PREFIX_PATH"><b><code>CMAKE_SYSTEM_PREFIX_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_SYSTEM_PROGRAM_PATH"><b><code>CMAKE_SYSTEM_PROGRAM_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_USER_MAKE_RULES_OVERRIDE"><b><code>CMAKE_USER_MAKE_RULES_OVERRIDE</code></b></a></li>
    <li><a href="#variable:CMAKE_WARN_DEPRECATED"><b><code>CMAKE_WARN_DEPRECATED</code></b></a></li>
    <li><a href="#variable:CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION"><b><code>CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="variable:BUILD_SHARED_LIBS"></a><b><code>BUILD_SHARED_LIBS</code></b>: Global flag to cause add_library to create shared libraries if on.<br />
    <p>If present and true, this will cause all libraries to be built shared unless the library was explicitly added as a static library.  This variable is often added to projects as an OPTION so that each user of a project can decide if they want to build the project using shared or static libraries.</p>

  </li>
  <li>
    <a name="variable:CMAKE_ABSOLUTE_DESTINATION_FILES"></a><b><code>CMAKE_ABSOLUTE_DESTINATION_FILES</code></b>: List of files which have been installed using  an ABSOLUTE DESTINATION path.<br />
    <p>This variable is defined by CMake-generated cmake_install.cmake scripts. It can be used (read-only) by programs or scripts that source those install scripts. This is used by some CPack generators (e.g. RPM).</p>

  </li>
  <li>
    <a name="variable:CMAKE_AUTOMOC_RELAXED_MODE"></a><b><code>CMAKE_AUTOMOC_RELAXED_MODE</code></b>: Switch between strict and relaxed automoc mode.<br />
    <p>By default, automoc behaves exactly as described in the documentation of the AUTOMOC target property.  When set to TRUE, it accepts more input and tries to find the correct input file for moc even if it differs from the documented behaviour.  In this mode it e.g. also checks whether a header file is intended to be processed by moc when a "foo.moc" file has been included.<br /></p>
<p>Relaxed mode has to be enabled for KDE4 compatibility.</p>

  </li>
  <li>
    <a name="variable:CMAKE_BACKWARDS_COMPATIBILITY"></a><b><code>CMAKE_BACKWARDS_COMPATIBILITY</code></b>: Version of cmake required to build project<br />
    <p>From the point of view of backwards compatibility, this specifies what version of CMake should be supported. By default this value is the version number of CMake that you are running. You can set this to an older version of CMake to support deprecated commands of CMake in projects that were written to use older versions of CMake. This can be set by the user or set at the beginning of a CMakeLists file.</p>

  </li>
  <li>
    <a name="variable:CMAKE_BUILD_TYPE"></a><b><code>CMAKE_BUILD_TYPE</code></b>: Specifies the build type on single-configuration generators.<br />
    <p>This statically specifies what build type (configuration) will be built in this build tree. Possible values are empty, Debug, Release, RelWithDebInfo and MinSizeRel.  This variable is only meaningful to single-configuration generators (such as make and Ninja) i.e. those which choose a single configuration when CMake runs to generate a build tree as opposed to multi-configuration generators which offer selection of the build configuration within the generated build environment.  There are many per-config properties and variables (usually following clean SOME_VAR_&lt;CONFIG&gt; order conventions), such as CMAKE_C_FLAGS_&lt;CONFIG&gt;, specified as uppercase: CMAKE_C_FLAGS_[DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL].  For example, in a build tree configured to build type Debug, CMake will see to having CMAKE_C_FLAGS_DEBUG settings get added to the CMAKE_C_FLAGS settings.  See also CMAKE_CONFIGURATION_TYPES.</p>

  </li>
  <li>
    <a name="variable:CMAKE_COLOR_MAKEFILE"></a><b><code>CMAKE_COLOR_MAKEFILE</code></b>: Enables color output when using the Makefile generator.<br />
    <p>When enabled, the generated Makefiles will produce colored output.  Default is ON.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CONFIGURATION_TYPES"></a><b><code>CMAKE_CONFIGURATION_TYPES</code></b>: Specifies the available build types on multi-config generators.<br />
    <p>This specifies what build types (configurations) will be available such as Debug, Release, RelWithDebInfo etc.  This has reasonable defaults on most platforms, but can be extended to provide other build types.  See also CMAKE_BUILD_TYPE for details of managing configuration data, and CMAKE_CFG_INTDIR.</p>

  </li>
  <li>
    <a name="variable:CMAKE_DEBUG_TARGET_PROPERTIES"></a><b><code>CMAKE_DEBUG_TARGET_PROPERTIES</code></b>: Enables tracing output for target properties.<br />
    <p>This variable can be populated with a list of properties to generate debug output for when evaluating target properties.  Currently it can only be used when evaluating the INCLUDE_DIRECTORIES, COMPILE_DEFINITIONS and COMPILE_OPTIONS target properties.  In that case, it outputs a backtrace for each entry in the target property.  Default is unset.</p>

  </li>
  <li>
    <a name="variable:CMAKE_DISABLE_FIND_PACKAGE_PackageName"></a><b><code>CMAKE_DISABLE_FIND_PACKAGE_&lt;PackageName&gt;</code></b>: Variable for disabling find_package() calls.<br />
    <p>Every non-REQUIRED find_package() call in a project can be disabled by setting the variable CMAKE_DISABLE_FIND_PACKAGE_&lt;PackageName&gt; to TRUE. This can be used to build a project without an optional package, although that package is installed.<br /></p>
<p>This switch should be used during the initial CMake run. Otherwise if the package has already been found in a previous CMake run, the variables which have been stored in the cache will still be there.  In that case it is recommended to remove the cache variables for this package from the cache using the cache editor or cmake -U</p>

  </li>
  <li>
    <a name="variable:CMAKE_ERROR_DEPRECATED"></a><b><code>CMAKE_ERROR_DEPRECATED</code></b>: Whether to issue deprecation errors for macros and functions.<br />
    <p>If TRUE, this can be used by macros and functions to issue fatal errors when deprecated macros or functions are used.  This variable is FALSE by default.</p>

  </li>
  <li>
    <a name="variable:CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION"></a><b><code>CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION</code></b>: Ask cmake_install.cmake script to error out as soon as a file with absolute INSTALL DESTINATION is encountered.<br />
    <p>The fatal error is emitted before the installation of the offending file takes place. This variable is used by CMake-generated cmake_install.cmake scripts. If one sets this variable to ON while running the script, it may get fatal error messages from the script.</p>

  </li>
  <li>
    <a name="variable:CMAKE_FIND_LIBRARY_PREFIXES"></a><b><code>CMAKE_FIND_LIBRARY_PREFIXES</code></b>: Prefixes to prepend when looking for libraries.<br />
    <p>This specifies what prefixes to add to library names when the find_library command looks for libraries. On UNIX systems this is typically lib, meaning that when trying to find the foo library it will look for libfoo.</p>

  </li>
  <li>
    <a name="variable:CMAKE_FIND_LIBRARY_SUFFIXES"></a><b><code>CMAKE_FIND_LIBRARY_SUFFIXES</code></b>: Suffixes to append when looking for libraries.<br />
    <p>This specifies what suffixes to add to library names when the find_library command looks for libraries. On Windows systems this is typically .lib and .dll, meaning that when trying to find the foo library it will look for foo.dll etc.</p>

  </li>
  <li>
    <a name="variable:CMAKE_FIND_PACKAGE_WARN_NO_MODULE"></a><b><code>CMAKE_FIND_PACKAGE_WARN_NO_MODULE</code></b>: Tell find_package to warn if called without an explicit mode.<br />
    <p>If find_package is called without an explicit mode option (MODULE, CONFIG or NO_MODULE) and no Find&lt;pkg&gt;.cmake module is in CMAKE_MODULE_PATH then CMake implicitly assumes that the caller intends to search for a package configuration file.  If no package configuration file is found then the wording of the failure message must account for both the case that the package is really missing and the case that the project has a bug and failed to provide the intended Find module.  If instead the caller specifies an explicit mode option then the failure message can be more specific.<br /></p>
<p>Set CMAKE_FIND_PACKAGE_WARN_NO_MODULE to TRUE to tell find_package to warn when it implicitly assumes Config mode.  This helps developers enforce use of an explicit mode in all calls to find_package within a project.</p>

  </li>
  <li>
    <a name="variable:CMAKE_IGNORE_PATH"></a><b><code>CMAKE_IGNORE_PATH</code></b>: Path to be ignored by FIND_XXX() commands.<br />
    <p>Specifies directories to be ignored by searches in FIND_XXX() commands.  This is useful in cross-compiled environments where some system directories contain incompatible but possibly linkable libraries. For example, on cross-compiled cluster environments, this allows a user to ignore directories containing libraries meant for the front-end machine that modules like FindX11 (and others) would normally search.  By default this is empty; it is intended to be set by the project.  Note that CMAKE_IGNORE_PATH takes a list of directory names, NOT a list of prefixes. If you want to ignore paths under prefixes (bin, include, lib, etc.), you'll need to specify them explicitly.  See also CMAKE_PREFIX_PATH, CMAKE_LIBRARY_PATH, CMAKE_INCLUDE_PATH, CMAKE_PROGRAM_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_INCLUDE_PATH"></a><b><code>CMAKE_INCLUDE_PATH</code></b>: Path used for searching by FIND_FILE() and FIND_PATH().<br />
    <p>Specifies a path which will be used both by FIND_FILE() and FIND_PATH(). Both commands will check each of the contained directories for the existence of the file which is currently searched. By default it is empty, it is intended to be set by the project. See also CMAKE_SYSTEM_INCLUDE_PATH, CMAKE_PREFIX_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_INSTALL_DEFAULT_COMPONENT_NAME"></a><b><code>CMAKE_INSTALL_DEFAULT_COMPONENT_NAME</code></b>: Default component used in install() commands.<br />
    <p>If an install() command is used without the COMPONENT argument, these files will be grouped into a default component. The name of this default install component will be taken from this variable.  It defaults to "Unspecified".</p>

  </li>
  <li>
    <a name="variable:CMAKE_INSTALL_PREFIX"></a><b><code>CMAKE_INSTALL_PREFIX</code></b>: Install directory used by install.<br />
    <p>If "make install" is invoked or INSTALL is built, this directory is prepended onto all install directories. This variable defaults to /usr/local on UNIX and c:/Program Files on Windows.<br /></p>
<p>On UNIX one can use the DESTDIR mechanism in order to relocate the whole installation.  DESTDIR means DESTination DIRectory. It is commonly used by makefile users in order to install software at non-default location.  It is usually invoked like this:<br /></p>
<pre> make DESTDIR=/home/john install<br /></pre>
    <p>which will install the concerned software using the installation prefix, e.g. "/usr/local" prepended with the DESTDIR value which finally gives "/home/john/usr/local".<br /></p>
<p>WARNING: DESTDIR may not be used on Windows because installation prefix usually contains a drive letter like in "C:/Program Files" which cannot be prepended with some other prefix.<br /></p>
<p>The installation prefix is also added to CMAKE_SYSTEM_PREFIX_PATH so that find_package, find_program, find_library, find_path, and find_file will search the prefix for other software.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LIBRARY_PATH"></a><b><code>CMAKE_LIBRARY_PATH</code></b>: Path used for searching by FIND_LIBRARY().<br />
    <p>Specifies a path which will be used by FIND_LIBRARY(). FIND_LIBRARY() will check each of the contained directories for the existence of the library which is currently searched. By default it is empty, it is intended to be set by the project. See also CMAKE_SYSTEM_LIBRARY_PATH, CMAKE_PREFIX_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_MFC_FLAG"></a><b><code>CMAKE_MFC_FLAG</code></b>: Tell cmake to use MFC for an executable or dll.<br />
    <p>This can be set in a CMakeLists.txt file and will enable MFC in the application.  It should be set to 1 for the static MFC library, and 2 for the shared MFC library.  This is used in Visual Studio 6 and 7 project files.   The CMakeSetup dialog used MFC and the CMakeLists.txt looks like this:<br /></p>
<pre>  add_definitions(-D_AFXDLL)<br />  set(CMAKE_MFC_FLAG 2)<br />  add_executable(CMakeSetup WIN32 ${SRCS})<br /></pre>
    
  </li>
  <li>
    <a name="variable:CMAKE_MODULE_PATH"></a><b><code>CMAKE_MODULE_PATH</code></b>: List of directories to search for CMake modules.<br />
    <p>Commands like include() and find_package() search for files in directories listed by this variable before checking the default modules that come with CMake.</p>

  </li>
  <li>
    <a name="variable:CMAKE_NOT_USING_CONFIG_FLAGS"></a><b><code>CMAKE_NOT_USING_CONFIG_FLAGS</code></b>: Skip _BUILD_TYPE flags if true.<br />
    <p>This is an internal flag used by the generators in CMake to tell CMake to skip the _BUILD_TYPE flags.</p>

  </li>
  <li>
    <a name="variable:CMAKE_POLICY_DEFAULT_CMPNNNN"></a><b><code>CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt;</code></b>: Default for CMake Policy CMP&lt;NNNN&gt; when it is otherwise left unset.<br />
    <p>Commands cmake_minimum_required(VERSION) and cmake_policy(VERSION) by default leave policies introduced after the given version unset.  Set CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt; to OLD or NEW to specify the default for policy CMP&lt;NNNN&gt;, where &lt;NNNN&gt; is the policy number.<br /></p>
<p>This variable should not be set by a project in CMake code; use cmake_policy(SET) instead.  Users running CMake may set this variable in the cache (e.g. -DCMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt;=&lt;OLD|NEW&gt;) to set a policy not otherwise set by the project.  Set to OLD to quiet a policy warning while using old behavior or to NEW to try building the project with new behavior.</p>

  </li>
  <li>
    <a name="variable:CMAKE_PREFIX_PATH"></a><b><code>CMAKE_PREFIX_PATH</code></b>: Path used for searching by FIND_XXX(), with appropriate suffixes added.<br />
    <p>Specifies a path which will be used by the FIND_XXX() commands. It contains the "base" directories, the FIND_XXX() commands append appropriate subdirectories to the base directories. So FIND_PROGRAM() adds /bin to each of the directories in the path, FIND_LIBRARY() appends /lib to each of the directories, and FIND_PATH() and FIND_FILE() append /include . By default it is empty, it is intended to be set by the project. See also CMAKE_SYSTEM_PREFIX_PATH, CMAKE_INCLUDE_PATH, CMAKE_LIBRARY_PATH, CMAKE_PROGRAM_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_PROGRAM_PATH"></a><b><code>CMAKE_PROGRAM_PATH</code></b>: Path used for searching by FIND_PROGRAM().<br />
    <p>Specifies a path which will be used by FIND_PROGRAM(). FIND_PROGRAM() will check each of the contained directories for the existence of the program which is currently searched. By default it is empty, it is intended to be set by the project. See also CMAKE_SYSTEM_PROGRAM_PATH,  CMAKE_PREFIX_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SKIP_INSTALL_ALL_DEPENDENCY"></a><b><code>CMAKE_SKIP_INSTALL_ALL_DEPENDENCY</code></b>: Don't make the install target depend on the all target.<br />
    <p>By default, the "install" target depends on the "all" target.  This has the effect, that when "make install" is invoked or INSTALL is built, first the "all" target is built, then the installation starts.  If CMAKE_SKIP_INSTALL_ALL_DEPENDENCY is set to TRUE, this dependency is not created, so the installation process will start immediately, independent from whether the project has been completely built or not.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SYSTEM_IGNORE_PATH"></a><b><code>CMAKE_SYSTEM_IGNORE_PATH</code></b>: Path to be ignored by FIND_XXX() commands.<br />
    <p>Specifies directories to be ignored by searches in FIND_XXX() commands.  This is useful in cross-compiled environments where some system directories contain incompatible but possibly linkable libraries. For example, on cross-compiled cluster environments, this allows a user to ignore directories containing libraries meant for the front-end machine that modules like FindX11 (and others) would normally search.  By default this contains a list of directories containing incompatible binaries for the host system.  See also CMAKE_SYSTEM_PREFIX_PATH, CMAKE_SYSTEM_LIBRARY_PATH, CMAKE_SYSTEM_INCLUDE_PATH, and CMAKE_SYSTEM_PROGRAM_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SYSTEM_INCLUDE_PATH"></a><b><code>CMAKE_SYSTEM_INCLUDE_PATH</code></b>: Path used for searching by FIND_FILE() and FIND_PATH().<br />
    <p>Specifies a path which will be used both by FIND_FILE() and FIND_PATH(). Both commands will check each of the contained directories for the existence of the file which is currently searched. By default it contains the standard directories for the current system. It is NOT intended to be modified by the project, use CMAKE_INCLUDE_PATH for this. See also CMAKE_SYSTEM_PREFIX_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SYSTEM_LIBRARY_PATH"></a><b><code>CMAKE_SYSTEM_LIBRARY_PATH</code></b>: Path used for searching by FIND_LIBRARY().<br />
    <p>Specifies a path which will be used by FIND_LIBRARY(). FIND_LIBRARY() will check each of the contained directories for the existence of the library which is currently searched. By default it contains the standard directories for the current system. It is NOT intended to be modified by the project, use CMAKE_LIBRARY_PATH for this. See also CMAKE_SYSTEM_PREFIX_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SYSTEM_PREFIX_PATH"></a><b><code>CMAKE_SYSTEM_PREFIX_PATH</code></b>: Path used for searching by FIND_XXX(), with appropriate suffixes added.<br />
    <p>Specifies a path which will be used by the FIND_XXX() commands. It contains the "base" directories, the FIND_XXX() commands append appropriate subdirectories to the base directories. So FIND_PROGRAM() adds /bin to each of the directories in the path, FIND_LIBRARY() appends /lib to each of the directories, and FIND_PATH() and FIND_FILE() append /include . By default this contains the standard directories for the current system and the CMAKE_INSTALL_PREFIX.  It is NOT intended to be modified by the project, use CMAKE_PREFIX_PATH for this. See also CMAKE_SYSTEM_INCLUDE_PATH, CMAKE_SYSTEM_LIBRARY_PATH, CMAKE_SYSTEM_PROGRAM_PATH, and CMAKE_SYSTEM_IGNORE_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SYSTEM_PROGRAM_PATH"></a><b><code>CMAKE_SYSTEM_PROGRAM_PATH</code></b>: Path used for searching by FIND_PROGRAM().<br />
    <p>Specifies a path which will be used by FIND_PROGRAM(). FIND_PROGRAM() will check each of the contained directories for the existence of the program which is currently searched. By default it contains the standard directories for the current system. It is NOT intended to be modified by the project, use CMAKE_PROGRAM_PATH for this. See also CMAKE_SYSTEM_PREFIX_PATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_USER_MAKE_RULES_OVERRIDE"></a><b><code>CMAKE_USER_MAKE_RULES_OVERRIDE</code></b>: Specify a CMake file that overrides platform information.<br />
    <p>CMake loads the specified file while enabling support for each language from either the project() or enable_language() commands.  It is loaded after CMake's builtin compiler and platform information modules have been loaded but before the information is used.  The file may set platform information variables to override CMake's defaults.<br /></p>
<p>This feature is intended for use only in overriding information variables that must be set before CMake builds its first test project to check that the compiler for a language works.  It should not be used to load a file in cases that a normal include() will work.  Use it only as a last resort for behavior that cannot be achieved any other way.  For example, one may set CMAKE_C_FLAGS_INIT to change the default value used to initialize CMAKE_C_FLAGS before it is cached.  The override file should NOT be used to set anything that could be set after languages are enabled, such as variables like CMAKE_RUNTIME_OUTPUT_DIRECTORY that affect the placement of binaries.  Information set in the file will be used for try_compile and try_run builds too.</p>

  </li>
  <li>
    <a name="variable:CMAKE_WARN_DEPRECATED"></a><b><code>CMAKE_WARN_DEPRECATED</code></b>: Whether to issue deprecation warnings for macros and functions.<br />
    <p>If TRUE, this can be used by macros and functions to issue deprecation warnings.  This variable is FALSE by default.</p>

  </li>
  <li>
    <a name="variable:CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION"></a><b><code>CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION</code></b>: Ask cmake_install.cmake script to warn each time a file with absolute INSTALL DESTINATION is encountered.<br />
    <p>This variable is used by CMake-generated cmake_install.cmake scripts. If one sets this variable to ON while running the script, it may get warning messages from the script.</p>

  </li>
</ul>
<h2><a name="section_VariablesThatDescribetheSystem"></a>Variables That Describe the System</h2>
<ul>
    <li><a href="#variable:APPLE"><b><code>APPLE</code></b></a></li>
    <li><a href="#variable:BORLAND"><b><code>BORLAND</code></b></a></li>
    <li><a href="#variable:CMAKE_CL_64"><b><code>CMAKE_CL_64</code></b></a></li>
    <li><a href="#variable:CMAKE_COMPILER_2005"><b><code>CMAKE_COMPILER_2005</code></b></a></li>
    <li><a href="#variable:CMAKE_HOST_APPLE"><b><code>CMAKE_HOST_APPLE</code></b></a></li>
    <li><a href="#variable:CMAKE_HOST_SYSTEM"><b><code>CMAKE_HOST_SYSTEM</code></b></a></li>
    <li><a href="#variable:CMAKE_HOST_SYSTEM_NAME"><b><code>CMAKE_HOST_SYSTEM_NAME</code></b></a></li>
    <li><a href="#variable:CMAKE_HOST_SYSTEM_PROCESSOR"><b><code>CMAKE_HOST_SYSTEM_PROCESSOR</code></b></a></li>
    <li><a href="#variable:CMAKE_HOST_SYSTEM_VERSION"><b><code>CMAKE_HOST_SYSTEM_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_HOST_UNIX"><b><code>CMAKE_HOST_UNIX</code></b></a></li>
    <li><a href="#variable:CMAKE_HOST_WIN32"><b><code>CMAKE_HOST_WIN32</code></b></a></li>
    <li><a href="#variable:CMAKE_LIBRARY_ARCHITECTURE"><b><code>CMAKE_LIBRARY_ARCHITECTURE</code></b></a></li>
    <li><a href="#variable:CMAKE_LIBRARY_ARCHITECTURE_REGEX"><b><code>CMAKE_LIBRARY_ARCHITECTURE_REGEX</code></b></a></li>
    <li><a href="#variable:CMAKE_OBJECT_PATH_MAX"><b><code>CMAKE_OBJECT_PATH_MAX</code></b></a></li>
    <li><a href="#variable:CMAKE_SYSTEM"><b><code>CMAKE_SYSTEM</code></b></a></li>
    <li><a href="#variable:CMAKE_SYSTEM_NAME"><b><code>CMAKE_SYSTEM_NAME</code></b></a></li>
    <li><a href="#variable:CMAKE_SYSTEM_PROCESSOR"><b><code>CMAKE_SYSTEM_PROCESSOR</code></b></a></li>
    <li><a href="#variable:CMAKE_SYSTEM_VERSION"><b><code>CMAKE_SYSTEM_VERSION</code></b></a></li>
    <li><a href="#variable:CYGWIN"><b><code>CYGWIN</code></b></a></li>
    <li><a href="#variable:ENV"><b><code>ENV</code></b></a></li>
    <li><a href="#variable:MSVC"><b><code>MSVC</code></b></a></li>
    <li><a href="#variable:MSVC10"><b><code>MSVC10</code></b></a></li>
    <li><a href="#variable:MSVC11"><b><code>MSVC11</code></b></a></li>
    <li><a href="#variable:MSVC12"><b><code>MSVC12</code></b></a></li>
    <li><a href="#variable:MSVC60"><b><code>MSVC60</code></b></a></li>
    <li><a href="#variable:MSVC70"><b><code>MSVC70</code></b></a></li>
    <li><a href="#variable:MSVC71"><b><code>MSVC71</code></b></a></li>
    <li><a href="#variable:MSVC80"><b><code>MSVC80</code></b></a></li>
    <li><a href="#variable:MSVC90"><b><code>MSVC90</code></b></a></li>
    <li><a href="#variable:MSVC_IDE"><b><code>MSVC_IDE</code></b></a></li>
    <li><a href="#variable:MSVC_VERSION"><b><code>MSVC_VERSION</code></b></a></li>
    <li><a href="#variable:UNIX"><b><code>UNIX</code></b></a></li>
    <li><a href="#variable:WIN32"><b><code>WIN32</code></b></a></li>
    <li><a href="#variable:XCODE_VERSION"><b><code>XCODE_VERSION</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="variable:APPLE"></a><b><code>APPLE</code></b>: True if running on Mac OS X.<br />
    <p>Set to true on Mac OS X.</p>

  </li>
  <li>
    <a name="variable:BORLAND"></a><b><code>BORLAND</code></b>: True if the Borland compiler is being used.<br />
    <p>This is set to true if the Borland compiler is being used.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CL_64"></a><b><code>CMAKE_CL_64</code></b>: Using the 64 bit compiler from Microsoft<br />
    <p>Set to true when using the 64 bit cl compiler from Microsoft.</p>

  </li>
  <li>
    <a name="variable:CMAKE_COMPILER_2005"></a><b><code>CMAKE_COMPILER_2005</code></b>: Using the Visual Studio 2005 compiler from Microsoft<br />
    <p>Set to true when using the Visual Studio 2005 compiler from Microsoft.</p>

  </li>
  <li>
    <a name="variable:CMAKE_HOST_APPLE"></a><b><code>CMAKE_HOST_APPLE</code></b>: True for Apple OS X operating systems.<br />
    <p>Set to true when the host system is Apple OS X.</p>

  </li>
  <li>
    <a name="variable:CMAKE_HOST_SYSTEM"></a><b><code>CMAKE_HOST_SYSTEM</code></b>: Name of system cmake is being run on.<br />
    <p>The same as CMAKE_SYSTEM but for the host system instead of the target system when cross compiling.</p>

  </li>
  <li>
    <a name="variable:CMAKE_HOST_SYSTEM_NAME"></a><b><code>CMAKE_HOST_SYSTEM_NAME</code></b>: Name of the OS CMake is running on.<br />
    <p>The same as CMAKE_SYSTEM_NAME but for the host system instead of the target system when cross compiling.</p>

  </li>
  <li>
    <a name="variable:CMAKE_HOST_SYSTEM_PROCESSOR"></a><b><code>CMAKE_HOST_SYSTEM_PROCESSOR</code></b>: The name of the CPU CMake is running on.<br />
    <p>The same as CMAKE_SYSTEM_PROCESSOR but for the host system instead of the target system when cross compiling.</p>

  </li>
  <li>
    <a name="variable:CMAKE_HOST_SYSTEM_VERSION"></a><b><code>CMAKE_HOST_SYSTEM_VERSION</code></b>: OS version CMake is running on.<br />
    <p>The same as CMAKE_SYSTEM_VERSION but for the host system instead of the target system when cross compiling.</p>

  </li>
  <li>
    <a name="variable:CMAKE_HOST_UNIX"></a><b><code>CMAKE_HOST_UNIX</code></b>: True for UNIX and UNIX like operating systems.<br />
    <p>Set to true when the host system is UNIX or UNIX like (i.e. APPLE and CYGWIN).</p>

  </li>
  <li>
    <a name="variable:CMAKE_HOST_WIN32"></a><b><code>CMAKE_HOST_WIN32</code></b>: True on windows systems, including win64.<br />
    <p>Set to true when the host system is Windows and on Cygwin.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LIBRARY_ARCHITECTURE"></a><b><code>CMAKE_LIBRARY_ARCHITECTURE</code></b>: Target architecture library directory name, if detected.<br />
    <p>This is the value of CMAKE_&lt;lang&gt;_LIBRARY_ARCHITECTURE as detected for one of the enabled languages.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LIBRARY_ARCHITECTURE_REGEX"></a><b><code>CMAKE_LIBRARY_ARCHITECTURE_REGEX</code></b>: Regex matching possible target architecture library directory names.<br />
    <p>This is used to detect CMAKE_&lt;lang&gt;_LIBRARY_ARCHITECTURE from the implicit linker search path by matching the &lt;arch&gt; name.</p>

  </li>
  <li>
    <a name="variable:CMAKE_OBJECT_PATH_MAX"></a><b><code>CMAKE_OBJECT_PATH_MAX</code></b>: Maximum object file full-path length allowed by native build tools.<br />
    <p>CMake computes for every source file an object file name that is unique to the source file and deterministic with respect to the full path to the source file.  This allows multiple source files in a target to share the same name if they lie in different directories without rebuilding when one is added or removed.  However, it can produce long full paths in a few cases, so CMake shortens the path using a hashing scheme when the full path to an object file exceeds a limit.  CMake has a built-in limit for each platform that is sufficient for common tools, but some native tools may have a lower limit.  This variable may be set to specify the limit explicitly.  The value must be an integer no less than 128.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SYSTEM"></a><b><code>CMAKE_SYSTEM</code></b>: Name of system cmake is compiling for.<br />
    <p>This variable is the composite of CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_VERSION, like this ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_VERSION}.  If CMAKE_SYSTEM_VERSION is not set, then CMAKE_SYSTEM is the same as CMAKE_SYSTEM_NAME.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SYSTEM_NAME"></a><b><code>CMAKE_SYSTEM_NAME</code></b>: Name of the OS CMake is building for.<br />
    <p>This is the name of the operating system on which CMake is targeting.   On systems that have the uname command, this variable is set to the output of uname -s.  Linux, Windows,  and Darwin for Mac OS X are the values found  on the big three operating systems.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SYSTEM_PROCESSOR"></a><b><code>CMAKE_SYSTEM_PROCESSOR</code></b>: The name of the CPU CMake is building for.<br />
    <p>On systems that support uname, this variable is set to the output of uname -p, on windows it is set to the value of the environment variable PROCESSOR_ARCHITECTURE</p>

  </li>
  <li>
    <a name="variable:CMAKE_SYSTEM_VERSION"></a><b><code>CMAKE_SYSTEM_VERSION</code></b>: OS version CMake is building for.<br />
    <p>A numeric version string for the system, on systems that support uname, this variable is set to the output of uname -r. On other systems this is set to major-minor version numbers.</p>

  </li>
  <li>
    <a name="variable:CYGWIN"></a><b><code>CYGWIN</code></b>: True for Cygwin.<br />
    <p>Set to true when using Cygwin.</p>

  </li>
  <li>
    <a name="variable:ENV"></a><b><code>ENV</code></b>: Access environment variables.<br />
    <p>Use the syntax $ENV{VAR} to read environment variable VAR.  See also the set() command to set ENV{VAR}.</p>

  </li>
  <li>
    <a name="variable:MSVC"></a><b><code>MSVC</code></b>: True when using Microsoft Visual C<br />
    <p>Set to true when the compiler is some version of Microsoft Visual C.</p>

  </li>
  <li>
    <a name="variable:MSVC10"></a><b><code>MSVC10</code></b>: True when using Microsoft Visual C 10.0<br />
    <p>Set to true when the compiler is version 10.0 of Microsoft Visual C.</p>

  </li>
  <li>
    <a name="variable:MSVC11"></a><b><code>MSVC11</code></b>: True when using Microsoft Visual C 11.0<br />
    <p>Set to true when the compiler is version 11.0 of Microsoft Visual C.</p>

  </li>
  <li>
    <a name="variable:MSVC12"></a><b><code>MSVC12</code></b>: True when using Microsoft Visual C 12.0<br />
    <p>Set to true when the compiler is version 12.0 of Microsoft Visual C.</p>

  </li>
  <li>
    <a name="variable:MSVC60"></a><b><code>MSVC60</code></b>: True when using Microsoft Visual C 6.0<br />
    <p>Set to true when the compiler is version 6.0 of Microsoft Visual C.</p>

  </li>
  <li>
    <a name="variable:MSVC70"></a><b><code>MSVC70</code></b>: True when using Microsoft Visual C 7.0<br />
    <p>Set to true when the compiler is version 7.0 of Microsoft Visual C.</p>

  </li>
  <li>
    <a name="variable:MSVC71"></a><b><code>MSVC71</code></b>: True when using Microsoft Visual C 7.1<br />
    <p>Set to true when the compiler is version 7.1 of Microsoft Visual C.</p>

  </li>
  <li>
    <a name="variable:MSVC80"></a><b><code>MSVC80</code></b>: True when using Microsoft Visual C 8.0<br />
    <p>Set to true when the compiler is version 8.0 of Microsoft Visual C.</p>

  </li>
  <li>
    <a name="variable:MSVC90"></a><b><code>MSVC90</code></b>: True when using Microsoft Visual C 9.0<br />
    <p>Set to true when the compiler is version 9.0 of Microsoft Visual C.</p>

  </li>
  <li>
    <a name="variable:MSVC_IDE"></a><b><code>MSVC_IDE</code></b>: True when using the Microsoft Visual C IDE<br />
    <p>Set to true when the target platform is the Microsoft Visual C IDE, as opposed to the command line compiler.</p>

  </li>
  <li>
    <a name="variable:MSVC_VERSION"></a><b><code>MSVC_VERSION</code></b>: The version of Microsoft Visual C/C++ being used if any.<br />
    <p>Known version numbers are:<br /></p>
<pre>  1200 = VS  6.0<br />  1300 = VS  7.0<br />  1310 = VS  7.1<br />  1400 = VS  8.0<br />  1500 = VS  9.0<br />  1600 = VS 10.0<br />  1700 = VS 11.0<br />  1800 = VS 12.0<br /></pre>
    
  </li>
  <li>
    <a name="variable:UNIX"></a><b><code>UNIX</code></b>: True for UNIX and UNIX like operating systems.<br />
    <p>Set to true when the target system is UNIX or UNIX like (i.e. APPLE and CYGWIN).</p>

  </li>
  <li>
    <a name="variable:WIN32"></a><b><code>WIN32</code></b>: True on windows systems, including win64.<br />
    <p>Set to true when the target system is Windows.</p>

  </li>
  <li>
    <a name="variable:XCODE_VERSION"></a><b><code>XCODE_VERSION</code></b>: Version of Xcode (Xcode generator only).<br />
    <p>Under the Xcode generator, this is the version of Xcode as specified in "Xcode.app/Contents/version.plist" (such as "3.1.2").</p>

  </li>
</ul>
<h2><a name="section_VariablesforLanguages"></a>Variables for Languages</h2>
<ul>
    <li><a href="#variable:CMAKE_LANG_ARCHIVE_APPEND"><b><code>CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_ARCHIVE_CREATE"><b><code>CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_ARCHIVE_FINISH"><b><code>CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_COMPILER"><b><code>CMAKE_&lt;LANG&gt;_COMPILER</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_COMPILER_ABI"><b><code>CMAKE_&lt;LANG&gt;_COMPILER_ABI</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_COMPILER_ID"><b><code>CMAKE_&lt;LANG&gt;_COMPILER_ID</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_COMPILER_LOADED"><b><code>CMAKE_&lt;LANG&gt;_COMPILER_LOADED</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_COMPILER_VERSION"><b><code>CMAKE_&lt;LANG&gt;_COMPILER_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_COMPILE_OBJECT"><b><code>CMAKE_&lt;LANG&gt;_COMPILE_OBJECT</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_CREATE_SHARED_LIBRARY"><b><code>CMAKE_&lt;LANG&gt;_CREATE_SHARED_LIBRARY</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_CREATE_SHARED_MODULE"><b><code>CMAKE_&lt;LANG&gt;_CREATE_SHARED_MODULE</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_CREATE_STATIC_LIBRARY"><b><code>CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_FLAGS"><b><code>CMAKE_&lt;LANG&gt;_FLAGS</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_FLAGS_DEBUG"><b><code>CMAKE_&lt;LANG&gt;_FLAGS_DEBUG</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_FLAGS_MINSIZEREL"><b><code>CMAKE_&lt;LANG&gt;_FLAGS_MINSIZEREL</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_FLAGS_RELEASE"><b><code>CMAKE_&lt;LANG&gt;_FLAGS_RELEASE</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_FLAGS_RELWITHDEBINFO"><b><code>CMAKE_&lt;LANG&gt;_FLAGS_RELWITHDEBINFO</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_IGNORE_EXTENSIONS"><b><code>CMAKE_&lt;LANG&gt;_IGNORE_EXTENSIONS</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_IMPLICIT_INCLUDE_DIRECTORIES"><b><code>CMAKE_&lt;LANG&gt;_IMPLICIT_INCLUDE_DIRECTORIES</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES"><b><code>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_DIRECTORIES</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES"><b><code>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_IMPLICIT_LINK_LIBRARIES"><b><code>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_LIBRARIES</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_LIBRARY_ARCHITECTURE"><b><code>CMAKE_&lt;LANG&gt;_LIBRARY_ARCHITECTURE</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_LINKER_PREFERENCE"><b><code>CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_LINKER_PREFERENCE_PROPAGATES"><b><code>CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE_PROPAGATES</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_LINK_EXECUTABLE"><b><code>CMAKE_&lt;LANG&gt;_LINK_EXECUTABLE </code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_OUTPUT_EXTENSION"><b><code>CMAKE_&lt;LANG&gt;_OUTPUT_EXTENSION</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_PLATFORM_ID"><b><code>CMAKE_&lt;LANG&gt;_PLATFORM_ID</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_SIZEOF_DATA_PTR"><b><code>CMAKE_&lt;LANG&gt;_SIZEOF_DATA_PTR</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_SOURCE_FILE_EXTENSIONS"><b><code>CMAKE_&lt;LANG&gt;_SOURCE_FILE_EXTENSIONS</code></b></a></li>
    <li><a href="#variable:CMAKE_COMPILER_IS_GNULANG"><b><code>CMAKE_COMPILER_IS_GNU&lt;LANG&gt;</code></b></a></li>
    <li><a href="#variable:CMAKE_Fortran_MODDIR_DEFAULT"><b><code>CMAKE_Fortran_MODDIR_DEFAULT</code></b></a></li>
    <li><a href="#variable:CMAKE_Fortran_MODDIR_FLAG"><b><code>CMAKE_Fortran_MODDIR_FLAG</code></b></a></li>
    <li><a href="#variable:CMAKE_Fortran_MODOUT_FLAG"><b><code>CMAKE_Fortran_MODOUT_FLAG</code></b></a></li>
    <li><a href="#variable:CMAKE_INTERNAL_PLATFORM_ABI"><b><code>CMAKE_INTERNAL_PLATFORM_ABI</code></b></a></li>
    <li><a href="#variable:CMAKE_USER_MAKE_RULES_OVERRIDE_LANG"><b><code>CMAKE_USER_MAKE_RULES_OVERRIDE_&lt;LANG&gt;</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="variable:CMAKE_LANG_ARCHIVE_APPEND"></a><b><code>CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND</code></b>: Rule variable to append to a static archive.<br />
    <p>This is a rule variable that tells CMake how to append to a static archive.  It is used in place of CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY on some platforms in order to support large object counts.  See also CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE and CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_ARCHIVE_CREATE"></a><b><code>CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE</code></b>: Rule variable to create a new static archive.<br />
    <p>This is a rule variable that tells CMake how to create a static archive.  It is used in place of CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY on some platforms in order to support large object counts.  See also CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND and CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_ARCHIVE_FINISH"></a><b><code>CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH</code></b>: Rule variable to finish an existing static archive.<br />
    <p>This is a rule variable that tells CMake how to finish a static archive.  It is used in place of CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY on some platforms in order to support large object counts.  See also CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE and CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_COMPILER"></a><b><code>CMAKE_&lt;LANG&gt;_COMPILER</code></b>: The full path to the compiler for LANG.<br />
    <p>This is the command that will be used as the &lt;LANG&gt; compiler.  Once set, you can not change this variable.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_COMPILER_ABI"></a><b><code>CMAKE_&lt;LANG&gt;_COMPILER_ABI</code></b>: An internal variable subject to change.<br />
    <p>This is used in determining the compiler ABI and is subject to change.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_COMPILER_ID"></a><b><code>CMAKE_&lt;LANG&gt;_COMPILER_ID</code></b>: Compiler identification string.<br />
    <p>A short string unique to the compiler vendor.  Possible values include:<br /></p>
<pre>  Absoft = Absoft Fortran (absoft.com)<br />  ADSP = Analog VisualDSP++ (analog.com)<br />  Clang = LLVM Clang (clang.llvm.org)<br />  Cray = Cray Compiler (cray.com)<br />  Embarcadero, Borland = Embarcadero (embarcadero.com)<br />  G95 = G95 Fortran (g95.org)<br />  GNU = GNU Compiler Collection (gcc.gnu.org)<br />  HP = Hewlett-Packard Compiler (hp.com)<br />  Intel = Intel Compiler (intel.com)<br />  MIPSpro = SGI MIPSpro (sgi.com)<br />  MSVC = Microsoft Visual Studio (microsoft.com)<br />  PGI = The Portland Group (pgroup.com)<br />  PathScale = PathScale (pathscale.com)<br />  SDCC = Small Device C Compiler (sdcc.sourceforge.net)<br />  SunPro = Oracle Solaris Studio (oracle.com)<br />  TI = Texas Instruments (ti.com)<br />  TinyCC = Tiny C Compiler (tinycc.org)<br />  Watcom = Open Watcom (openwatcom.org)<br />  XL, VisualAge, zOS = IBM XL (ibm.com)<br /></pre>
    <p>This variable is not guaranteed to be defined for all compilers or languages.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_COMPILER_LOADED"></a><b><code>CMAKE_&lt;LANG&gt;_COMPILER_LOADED</code></b>: Defined to true if the language is enabled.<br />
    <p>When language &lt;LANG&gt; is enabled by project() or enable_language() this variable is defined to 1.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_COMPILER_VERSION"></a><b><code>CMAKE_&lt;LANG&gt;_COMPILER_VERSION</code></b>: Compiler version string.<br />
    <p>Compiler version in major[.minor[.patch[.tweak]]] format.  This variable is not guaranteed to be defined for all compilers or languages.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_COMPILE_OBJECT"></a><b><code>CMAKE_&lt;LANG&gt;_COMPILE_OBJECT</code></b>: Rule variable to compile a single object file.<br />
    <p>This is a rule variable that tells CMake how to compile a single object file for the language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_CREATE_SHARED_LIBRARY"></a><b><code>CMAKE_&lt;LANG&gt;_CREATE_SHARED_LIBRARY</code></b>: Rule variable to create a shared library.<br />
    <p>This is a rule variable that tells CMake how to create a shared library for the language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_CREATE_SHARED_MODULE"></a><b><code>CMAKE_&lt;LANG&gt;_CREATE_SHARED_MODULE</code></b>: Rule variable to create a shared module.<br />
    <p>This is a rule variable that tells CMake how to create a shared library for the language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_CREATE_STATIC_LIBRARY"></a><b><code>CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY</code></b>: Rule variable to create a static library.<br />
    <p>This is a rule variable that tells CMake how to create a static library for the language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_FLAGS"></a><b><code>CMAKE_&lt;LANG&gt;_FLAGS</code></b>: Flags for all build types.<br />
    <p>&lt;LANG&gt; flags used regardless of the value of CMAKE_BUILD_TYPE.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_FLAGS_DEBUG"></a><b><code>CMAKE_&lt;LANG&gt;_FLAGS_DEBUG</code></b>: Flags for Debug build type or configuration.<br />
    <p>&lt;LANG&gt; flags used when CMAKE_BUILD_TYPE is Debug.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_FLAGS_MINSIZEREL"></a><b><code>CMAKE_&lt;LANG&gt;_FLAGS_MINSIZEREL</code></b>: Flags for MinSizeRel build type or configuration.<br />
    <p>&lt;LANG&gt; flags used when CMAKE_BUILD_TYPE is MinSizeRel.Short for minimum size release.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_FLAGS_RELEASE"></a><b><code>CMAKE_&lt;LANG&gt;_FLAGS_RELEASE</code></b>: Flags for Release build type or configuration.<br />
    <p>&lt;LANG&gt; flags used when CMAKE_BUILD_TYPE is Release</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_FLAGS_RELWITHDEBINFO"></a><b><code>CMAKE_&lt;LANG&gt;_FLAGS_RELWITHDEBINFO</code></b>: Flags for RelWithDebInfo type or configuration.<br />
    <p>&lt;LANG&gt; flags used when CMAKE_BUILD_TYPE is RelWithDebInfo.  Short for Release With Debug Information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_IGNORE_EXTENSIONS"></a><b><code>CMAKE_&lt;LANG&gt;_IGNORE_EXTENSIONS</code></b>: File extensions that should be ignored by the build.<br />
    <p>This is a list of file extensions that may be part of a project for a given language but are not compiled.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_IMPLICIT_INCLUDE_DIRECTORIES"></a><b><code>CMAKE_&lt;LANG&gt;_IMPLICIT_INCLUDE_DIRECTORIES</code></b>: Directories implicitly searched by the compiler for header files.<br />
    <p>CMake does not explicitly specify these directories on compiler command lines for language &lt;LANG&gt;.  This prevents system include directories from being treated as user include directories on some compilers.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES"></a><b><code>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_DIRECTORIES</code></b>: Implicit linker search path detected for language &lt;LANG&gt;.<br />
    <p>Compilers typically pass directories containing language runtime libraries and default library search paths when they invoke a linker.  These paths are implicit linker search directories for the compiler's language.  CMake automatically detects these directories for each language and reports the results in this variable.<br /></p>
<p>When a library in one of these directories is given by full path to target_link_libraries() CMake will generate the -l&lt;name&gt; form on link lines to ensure the linker searches its implicit directories for the library.  Note that some toolchains read implicit directories from an environment variable such as LIBRARY_PATH so keep its value consistent when operating in a given build tree.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES"></a><b><code>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES</code></b>: Implicit linker framework search path detected for language &lt;LANG&gt;.<br />
    <p>These paths are implicit linker framework search directories for the compiler's language.  CMake automatically detects these directories for each language and reports the results in this variable.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_IMPLICIT_LINK_LIBRARIES"></a><b><code>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_LIBRARIES</code></b>: Implicit link libraries and flags detected for language &lt;LANG&gt;.<br />
    <p>Compilers typically pass language runtime library names and other flags when they invoke a linker.  These flags are implicit link options for the compiler's language.  CMake automatically detects these libraries and flags for each language and reports the results in this variable.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_LIBRARY_ARCHITECTURE"></a><b><code>CMAKE_&lt;LANG&gt;_LIBRARY_ARCHITECTURE</code></b>: Target architecture library directory name detected for &lt;lang&gt;.<br />
    <p>If the &lt;lang&gt; compiler passes to the linker an architecture-specific system library search directory such as &lt;prefix&gt;/lib/&lt;arch&gt; this variable contains the &lt;arch&gt; name if/as detected by CMake.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_LINKER_PREFERENCE"></a><b><code>CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE</code></b>: Preference value for linker language selection.<br />
    <p>The "linker language" for executable, shared library, and module targets is the language whose compiler will invoke the linker.  The LINKER_LANGUAGE target property sets the language explicitly.  Otherwise, the linker language is that whose linker preference value is highest among languages compiled and linked into the target.  See also the CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE_PROPAGATES variable.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_LINKER_PREFERENCE_PROPAGATES"></a><b><code>CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE_PROPAGATES</code></b>: True if CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE propagates across targets.<br />
    <p>This is used when CMake selects a linker language for a target.  Languages compiled directly into the target are always considered.  A language compiled into static libraries linked by the target is considered if this variable is true.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_LINK_EXECUTABLE"></a><b><code>CMAKE_&lt;LANG&gt;_LINK_EXECUTABLE </code></b>: Rule variable to link an executable.<br />
    <p>Rule variable to link an executable for the given language.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_OUTPUT_EXTENSION"></a><b><code>CMAKE_&lt;LANG&gt;_OUTPUT_EXTENSION</code></b>: Extension for the output of a compile for a single file.<br />
    <p>This is the extension for an object file for the given &lt;LANG&gt;. For example .obj for C on Windows.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_PLATFORM_ID"></a><b><code>CMAKE_&lt;LANG&gt;_PLATFORM_ID</code></b>: An internal variable subject to change.<br />
    <p>This is used in determining the platform and is subject to change.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_SIZEOF_DATA_PTR"></a><b><code>CMAKE_&lt;LANG&gt;_SIZEOF_DATA_PTR</code></b>: Size of pointer-to-data types for language &lt;LANG&gt;.<br />
    <p>This holds the size (in bytes) of pointer-to-data types in the target platform ABI.  It is defined for languages C and CXX (C++).</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_SOURCE_FILE_EXTENSIONS"></a><b><code>CMAKE_&lt;LANG&gt;_SOURCE_FILE_EXTENSIONS</code></b>: Extensions of source files for the given language.<br />
    <p>This is the list of extensions for a given language's source files.</p>

  </li>
  <li>
    <a name="variable:CMAKE_COMPILER_IS_GNULANG"></a><b><code>CMAKE_COMPILER_IS_GNU&lt;LANG&gt;</code></b>: True if the compiler is GNU.<br />
    <p>If the selected &lt;LANG&gt; compiler is the GNU compiler then this is TRUE, if not it is FALSE.  Unlike the other per-language variables, this uses the GNU syntax for identifying languages instead of the CMake syntax. Recognized values of the &lt;LANG&gt; suffix are:<br /></p>
<pre>  CC = C compiler<br />  CXX = C++ compiler<br />  G77 = Fortran compiler</pre>
    
  </li>
  <li>
    <a name="variable:CMAKE_Fortran_MODDIR_DEFAULT"></a><b><code>CMAKE_Fortran_MODDIR_DEFAULT</code></b>: Fortran default module output directory.<br />
    <p>Most Fortran compilers write .mod files to the current working directory.  For those that do not, this is set to "." and used when the Fortran_MODULE_DIRECTORY target property is not set.</p>

  </li>
  <li>
    <a name="variable:CMAKE_Fortran_MODDIR_FLAG"></a><b><code>CMAKE_Fortran_MODDIR_FLAG</code></b>: Fortran flag for module output directory.<br />
    <p>This stores the flag needed to pass the value of the Fortran_MODULE_DIRECTORY target property to the compiler.</p>

  </li>
  <li>
    <a name="variable:CMAKE_Fortran_MODOUT_FLAG"></a><b><code>CMAKE_Fortran_MODOUT_FLAG</code></b>: Fortran flag to enable module output.<br />
    <p>Most Fortran compilers write .mod files out by default.  For others, this stores the flag needed to enable module output.</p>

  </li>
  <li>
    <a name="variable:CMAKE_INTERNAL_PLATFORM_ABI"></a><b><code>CMAKE_INTERNAL_PLATFORM_ABI</code></b>: An internal variable subject to change.<br />
    <p>This is used in determining the compiler ABI and is subject to change.</p>

  </li>
  <li>
    <a name="variable:CMAKE_USER_MAKE_RULES_OVERRIDE_LANG"></a><b><code>CMAKE_USER_MAKE_RULES_OVERRIDE_&lt;LANG&gt;</code></b>: Specify a CMake file that overrides platform information for &lt;LANG&gt;.<br />
    <p>This is a language-specific version of CMAKE_USER_MAKE_RULES_OVERRIDE loaded only when enabling language &lt;LANG&gt;.</p>

  </li>
</ul>
<h2><a name="section_VariablesthatControltheBuild"></a>Variables that Control the Build</h2>
<ul>
    <li><a href="#variable:CMAKE_CONFIG_POSTFIX"><b><code>CMAKE_&lt;CONFIG&gt;_POSTFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_LANG_VISIBILITY_PRESET"><b><code>CMAKE_&lt;LANG&gt;_VISIBILITY_PRESET</code></b></a></li>
    <li><a href="#variable:CMAKE_ARCHIVE_OUTPUT_DIRECTORY"><b><code>CMAKE_ARCHIVE_OUTPUT_DIRECTORY</code></b></a></li>
    <li><a href="#variable:CMAKE_AUTOMOC"><b><code>CMAKE_AUTOMOC</code></b></a></li>
    <li><a href="#variable:CMAKE_AUTOMOC_MOC_OPTIONS"><b><code>CMAKE_AUTOMOC_MOC_OPTIONS</code></b></a></li>
    <li><a href="#variable:CMAKE_BUILD_WITH_INSTALL_RPATH"><b><code>CMAKE_BUILD_WITH_INSTALL_RPATH</code></b></a></li>
    <li><a href="#variable:CMAKE_DEBUG_POSTFIX"><b><code>CMAKE_DEBUG_POSTFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_EXE_LINKER_FLAGS"><b><code>CMAKE_EXE_LINKER_FLAGS</code></b></a></li>
    <li><a href="#variable:CMAKE_EXE_LINKER_FLAGS_CONFIG"><b><code>CMAKE_EXE_LINKER_FLAGS_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#variable:CMAKE_Fortran_FORMAT"><b><code>CMAKE_Fortran_FORMAT</code></b></a></li>
    <li><a href="#variable:CMAKE_Fortran_MODULE_DIRECTORY"><b><code>CMAKE_Fortran_MODULE_DIRECTORY</code></b></a></li>
    <li><a href="#variable:CMAKE_GNUtoMS"><b><code>CMAKE_GNUtoMS</code></b></a></li>
    <li><a href="#variable:CMAKE_INCLUDE_CURRENT_DIR"><b><code>CMAKE_INCLUDE_CURRENT_DIR</code></b></a></li>
    <li><a href="#variable:CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE"><b><code>CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE</code></b></a></li>
    <li><a href="#variable:CMAKE_INSTALL_NAME_DIR"><b><code>CMAKE_INSTALL_NAME_DIR</code></b></a></li>
    <li><a href="#variable:CMAKE_INSTALL_RPATH"><b><code>CMAKE_INSTALL_RPATH</code></b></a></li>
    <li><a href="#variable:CMAKE_INSTALL_RPATH_USE_LINK_PATH"><b><code>CMAKE_INSTALL_RPATH_USE_LINK_PATH</code></b></a></li>
    <li><a href="#variable:CMAKE_LIBRARY_OUTPUT_DIRECTORY"><b><code>CMAKE_LIBRARY_OUTPUT_DIRECTORY</code></b></a></li>
    <li><a href="#variable:CMAKE_LIBRARY_PATH_FLAG"><b><code>CMAKE_LIBRARY_PATH_FLAG</code></b></a></li>
    <li><a href="#variable:CMAKE_LINK_DEF_FILE_FLAG"><b><code>CMAKE_LINK_DEF_FILE_FLAG  </code></b></a></li>
    <li><a href="#variable:CMAKE_LINK_DEPENDS_NO_SHARED"><b><code>CMAKE_LINK_DEPENDS_NO_SHARED</code></b></a></li>
    <li><a href="#variable:CMAKE_LINK_INTERFACE_LIBRARIES"><b><code>CMAKE_LINK_INTERFACE_LIBRARIES</code></b></a></li>
    <li><a href="#variable:CMAKE_LINK_LIBRARY_FILE_FLAG"><b><code>CMAKE_LINK_LIBRARY_FILE_FLAG</code></b></a></li>
    <li><a href="#variable:CMAKE_LINK_LIBRARY_FLAG"><b><code>CMAKE_LINK_LIBRARY_FLAG</code></b></a></li>
    <li><a href="#variable:CMAKE_MACOSX_BUNDLE"><b><code>CMAKE_MACOSX_BUNDLE</code></b></a></li>
    <li><a href="#variable:CMAKE_MODULE_LINKER_FLAGS"><b><code>CMAKE_MODULE_LINKER_FLAGS</code></b></a></li>
    <li><a href="#variable:CMAKE_MODULE_LINKER_FLAGS_CONFIG"><b><code>CMAKE_MODULE_LINKER_FLAGS_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#variable:CMAKE_NO_BUILTIN_CHRPATH"><b><code>CMAKE_NO_BUILTIN_CHRPATH</code></b></a></li>
    <li><a href="#variable:CMAKE_PDB_OUTPUT_DIRECTORY"><b><code>CMAKE_PDB_OUTPUT_DIRECTORY</code></b></a></li>
    <li><a href="#variable:CMAKE_POSITION_INDEPENDENT_CODE"><b><code>CMAKE_POSITION_INDEPENDENT_CODE</code></b></a></li>
    <li><a href="#variable:CMAKE_RUNTIME_OUTPUT_DIRECTORY"><b><code>CMAKE_RUNTIME_OUTPUT_DIRECTORY</code></b></a></li>
    <li><a href="#variable:CMAKE_SHARED_LINKER_FLAGS"><b><code>CMAKE_SHARED_LINKER_FLAGS</code></b></a></li>
    <li><a href="#variable:CMAKE_SHARED_LINKER_FLAGS_CONFIG"><b><code>CMAKE_SHARED_LINKER_FLAGS_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#variable:CMAKE_SKIP_BUILD_RPATH"><b><code>CMAKE_SKIP_BUILD_RPATH</code></b></a></li>
    <li><a href="#variable:CMAKE_SKIP_INSTALL_RPATH"><b><code>CMAKE_SKIP_INSTALL_RPATH</code></b></a></li>
    <li><a href="#variable:CMAKE_STATIC_LINKER_FLAGS"><b><code>CMAKE_STATIC_LINKER_FLAGS</code></b></a></li>
    <li><a href="#variable:CMAKE_STATIC_LINKER_FLAGS_CONFIG"><b><code>CMAKE_STATIC_LINKER_FLAGS_&lt;CONFIG&gt;</code></b></a></li>
    <li><a href="#variable:CMAKE_TRY_COMPILE_CONFIGURATION"><b><code>CMAKE_TRY_COMPILE_CONFIGURATION</code></b></a></li>
    <li><a href="#variable:CMAKE_USE_RELATIVE_PATHS"><b><code>CMAKE_USE_RELATIVE_PATHS</code></b></a></li>
    <li><a href="#variable:CMAKE_VISIBILITY_INLINES_HIDDEN"><b><code>CMAKE_VISIBILITY_INLINES_HIDDEN</code></b></a></li>
    <li><a href="#variable:CMAKE_WIN32_EXECUTABLE"><b><code>CMAKE_WIN32_EXECUTABLE</code></b></a></li>
    <li><a href="#variable:EXECUTABLE_OUTPUT_PATH"><b><code>EXECUTABLE_OUTPUT_PATH</code></b></a></li>
    <li><a href="#variable:LIBRARY_OUTPUT_PATH"><b><code>LIBRARY_OUTPUT_PATH</code></b></a></li>
</ul>
<ul>
  <li>
    <a name="variable:CMAKE_CONFIG_POSTFIX"></a><b><code>CMAKE_&lt;CONFIG&gt;_POSTFIX</code></b>: Default filename postfix for libraries under configuration &lt;CONFIG&gt;.<br />
    <p>When a non-executable target is created its &lt;CONFIG&gt;_POSTFIX target property is initialized with the value of this variable if it is set.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LANG_VISIBILITY_PRESET"></a><b><code>CMAKE_&lt;LANG&gt;_VISIBILITY_PRESET</code></b>: Default value for &lt;LANG&gt;_VISIBILITY_PRESET of targets.<br />
    <p>This variable is used to initialize the &lt;LANG&gt;_VISIBILITY_PRESET property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_ARCHIVE_OUTPUT_DIRECTORY"></a><b><code>CMAKE_ARCHIVE_OUTPUT_DIRECTORY</code></b>: Where to put all the ARCHIVE targets when built.<br />
    <p>This variable is used to initialize the ARCHIVE_OUTPUT_DIRECTORY property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_AUTOMOC"></a><b><code>CMAKE_AUTOMOC</code></b>: Whether to handle moc automatically for Qt targets.<br />
    <p>This variable is used to initialize the AUTOMOC property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_AUTOMOC_MOC_OPTIONS"></a><b><code>CMAKE_AUTOMOC_MOC_OPTIONS</code></b>: Additional options for moc when using automoc (see CMAKE_AUTOMOC).<br />
    <p>This variable is used to initialize the AUTOMOC_MOC_OPTIONS property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_BUILD_WITH_INSTALL_RPATH"></a><b><code>CMAKE_BUILD_WITH_INSTALL_RPATH</code></b>: Use the install path for the RPATH<br />
    <p>Normally CMake uses the build tree for the RPATH when building executables etc on systems that use RPATH. When the software is installed the executables etc are relinked by CMake to have the install RPATH. If this variable is set to true then the software is always built with the install path for the RPATH and does not need to be relinked when installed.</p>

  </li>
  <li>
    <a name="variable:CMAKE_DEBUG_POSTFIX"></a><b><code>CMAKE_DEBUG_POSTFIX</code></b>: See variable CMAKE_&lt;CONFIG&gt;_POSTFIX.<br />
    <p>This variable is a special case of the more-general CMAKE_&lt;CONFIG&gt;_POSTFIX variable for the DEBUG configuration.</p>

  </li>
  <li>
    <a name="variable:CMAKE_EXE_LINKER_FLAGS"></a><b><code>CMAKE_EXE_LINKER_FLAGS</code></b>: Linker flags to be used to create executables.<br />
    <p>These flags will be used by the linker when creating an executable.</p>

  </li>
  <li>
    <a name="variable:CMAKE_EXE_LINKER_FLAGS_CONFIG"></a><b><code>CMAKE_EXE_LINKER_FLAGS_&lt;CONFIG&gt;</code></b>: Flags to be used when linking an executable.<br />
    <p>Same as CMAKE_C_FLAGS_* but used by the linker when creating executables.</p>

  </li>
  <li>
    <a name="variable:CMAKE_Fortran_FORMAT"></a><b><code>CMAKE_Fortran_FORMAT</code></b>: Set to FIXED or FREE to indicate the Fortran source layout.<br />
    <p>This variable is used to initialize the Fortran_FORMAT property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_Fortran_MODULE_DIRECTORY"></a><b><code>CMAKE_Fortran_MODULE_DIRECTORY</code></b>: Fortran module output directory.<br />
    <p>This variable is used to initialize the Fortran_MODULE_DIRECTORY property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_GNUtoMS"></a><b><code>CMAKE_GNUtoMS</code></b>: Convert GNU import libraries (.dll.a) to MS format (.lib).<br />
    <p>This variable is used to initialize the GNUtoMS property on targets when they are created.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_INCLUDE_CURRENT_DIR"></a><b><code>CMAKE_INCLUDE_CURRENT_DIR</code></b>: Automatically add the current source- and build directories to the include path.<br />
    <p>If this variable is enabled, CMake automatically adds in each directory ${CMAKE_CURRENT_SOURCE_DIR} and ${CMAKE_CURRENT_BINARY_DIR} to the include path for this directory. These additional include directories do not propagate down to subdirectories. This is useful mainly for out-of-source builds, where files generated into the build tree are included by files located in the source tree.<br /></p>
<p>By default CMAKE_INCLUDE_CURRENT_DIR is OFF.</p>

  </li>
  <li>
    <a name="variable:CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE"></a><b><code>CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE</code></b>: Automatically add the current source- and build directories to the INTERFACE_INCLUDE_DIRECTORIES.<br />
    <p>If this variable is enabled, CMake automatically adds for each shared library target, static library target, module target and executable target, ${CMAKE_CURRENT_SOURCE_DIR} and ${CMAKE_CURRENT_BINARY_DIR} to the INTERFACE_INCLUDE_DIRECTORIES.By default CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE is OFF.</p>

  </li>
  <li>
    <a name="variable:CMAKE_INSTALL_NAME_DIR"></a><b><code>CMAKE_INSTALL_NAME_DIR</code></b>: Mac OS X directory name for installed targets.<br />
    <p>CMAKE_INSTALL_NAME_DIR is used to initialize the INSTALL_NAME_DIR property on all targets. See that target property for more information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_INSTALL_RPATH"></a><b><code>CMAKE_INSTALL_RPATH</code></b>: The rpath to use for installed targets.<br />
    <p>A semicolon-separated list specifying the rpath to use in installed targets (for platforms that support it).  This is used to initialize the target property INSTALL_RPATH for all targets.</p>

  </li>
  <li>
    <a name="variable:CMAKE_INSTALL_RPATH_USE_LINK_PATH"></a><b><code>CMAKE_INSTALL_RPATH_USE_LINK_PATH</code></b>: Add paths to linker search and installed rpath.<br />
    <p>CMAKE_INSTALL_RPATH_USE_LINK_PATH is a boolean that if set to true will append directories in the linker search path and outside the project to the INSTALL_RPATH.  This is used to initialize the target property INSTALL_RPATH_USE_LINK_PATH for all targets.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LIBRARY_OUTPUT_DIRECTORY"></a><b><code>CMAKE_LIBRARY_OUTPUT_DIRECTORY</code></b>: Where to put all the LIBRARY targets when built.<br />
    <p>This variable is used to initialize the LIBRARY_OUTPUT_DIRECTORY property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LIBRARY_PATH_FLAG"></a><b><code>CMAKE_LIBRARY_PATH_FLAG</code></b>: The flag to be used to add a library search path to a compiler.<br />
    <p>The flag will be used to specify a library directory to the compiler.  On most compilers this is "-L".</p>

  </li>
  <li>
    <a name="variable:CMAKE_LINK_DEF_FILE_FLAG"></a><b><code>CMAKE_LINK_DEF_FILE_FLAG  </code></b>: Linker flag to be used to specify a .def file for dll creation.<br />
    <p>The flag will be used to add a .def file when creating a dll on Windows; this is only defined on Windows.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LINK_DEPENDS_NO_SHARED"></a><b><code>CMAKE_LINK_DEPENDS_NO_SHARED</code></b>: Whether to skip link dependencies on shared library files.<br />
    <p>This variable initializes the LINK_DEPENDS_NO_SHARED property on targets when they are created.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LINK_INTERFACE_LIBRARIES"></a><b><code>CMAKE_LINK_INTERFACE_LIBRARIES</code></b>: Default value for LINK_INTERFACE_LIBRARIES of targets.<br />
    <p>This variable is used to initialize the LINK_INTERFACE_LIBRARIES property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LINK_LIBRARY_FILE_FLAG"></a><b><code>CMAKE_LINK_LIBRARY_FILE_FLAG</code></b>: Flag to be used to link a library specified by a path to its file.<br />
    <p>The flag will be used before a library file path is given to the linker.  This is needed only on very few platforms.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LINK_LIBRARY_FLAG"></a><b><code>CMAKE_LINK_LIBRARY_FLAG</code></b>: Flag to be used to link a library into an executable.<br />
    <p>The flag will be used to specify a library to link to an executable.  On most compilers this is "-l".</p>

  </li>
  <li>
    <a name="variable:CMAKE_MACOSX_BUNDLE"></a><b><code>CMAKE_MACOSX_BUNDLE</code></b>: Default value for MACOSX_BUNDLE of targets.<br />
    <p>This variable is used to initialize the MACOSX_BUNDLE property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_MODULE_LINKER_FLAGS"></a><b><code>CMAKE_MODULE_LINKER_FLAGS</code></b>: Linker flags to be used to create modules.<br />
    <p>These flags will be used by the linker when creating a module.</p>

  </li>
  <li>
    <a name="variable:CMAKE_MODULE_LINKER_FLAGS_CONFIG"></a><b><code>CMAKE_MODULE_LINKER_FLAGS_&lt;CONFIG&gt;</code></b>: Flags to be used when linking a module.<br />
    <p>Same as CMAKE_C_FLAGS_* but used by the linker when creating modules.</p>

  </li>
  <li>
    <a name="variable:CMAKE_NO_BUILTIN_CHRPATH"></a><b><code>CMAKE_NO_BUILTIN_CHRPATH</code></b>: Do not use the builtin ELF editor to fix RPATHs on installation.<br />
    <p>When an ELF binary needs to have a different RPATH after installation than it does in the build tree, CMake uses a builtin editor to change the RPATH in the installed copy.  If this variable is set to true then CMake will relink the binary before installation instead of using its builtin editor.</p>

  </li>
  <li>
    <a name="variable:CMAKE_PDB_OUTPUT_DIRECTORY"></a><b><code>CMAKE_PDB_OUTPUT_DIRECTORY</code></b>: Where to put all the MS debug symbol files from linker.<br />
    <p>This variable is used to initialize the PDB_OUTPUT_DIRECTORY property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_POSITION_INDEPENDENT_CODE"></a><b><code>CMAKE_POSITION_INDEPENDENT_CODE</code></b>: Default value for POSITION_INDEPENDENT_CODE of targets.<br />
    <p>This variable is used to initialize the POSITION_INDEPENDENT_CODE property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_RUNTIME_OUTPUT_DIRECTORY"></a><b><code>CMAKE_RUNTIME_OUTPUT_DIRECTORY</code></b>: Where to put all the RUNTIME targets when built.<br />
    <p>This variable is used to initialize the RUNTIME_OUTPUT_DIRECTORY property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SHARED_LINKER_FLAGS"></a><b><code>CMAKE_SHARED_LINKER_FLAGS</code></b>: Linker flags to be used to create shared libraries.<br />
    <p>These flags will be used by the linker when creating a shared library.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SHARED_LINKER_FLAGS_CONFIG"></a><b><code>CMAKE_SHARED_LINKER_FLAGS_&lt;CONFIG&gt;</code></b>: Flags to be used when linking a shared library.<br />
    <p>Same as CMAKE_C_FLAGS_* but used by the linker when creating shared libraries.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SKIP_BUILD_RPATH"></a><b><code>CMAKE_SKIP_BUILD_RPATH</code></b>: Do not include RPATHs in the build tree.<br />
    <p>Normally CMake uses the build tree for the RPATH when building executables etc on systems that use RPATH. When the software is installed the executables etc are relinked by CMake to have the install RPATH. If this variable is set to true then the software is always built with no RPATH.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SKIP_INSTALL_RPATH"></a><b><code>CMAKE_SKIP_INSTALL_RPATH</code></b>: Do not include RPATHs in the install tree.<br />
    <p>Normally CMake uses the build tree for the RPATH when building executables etc on systems that use RPATH. When the software is installed the executables etc are relinked by CMake to have the install RPATH. If this variable is set to true then the software is always installed without RPATH, even if RPATH is enabled when building.  This can be useful for example to allow running tests from the build directory with RPATH enabled before the installation step.  To omit RPATH in both the build and install steps, use CMAKE_SKIP_RPATH instead.</p>

  </li>
  <li>
    <a name="variable:CMAKE_STATIC_LINKER_FLAGS"></a><b><code>CMAKE_STATIC_LINKER_FLAGS</code></b>: Linker flags to be used to create static libraries.<br />
    <p>These flags will be used by the linker when creating a static library.</p>

  </li>
  <li>
    <a name="variable:CMAKE_STATIC_LINKER_FLAGS_CONFIG"></a><b><code>CMAKE_STATIC_LINKER_FLAGS_&lt;CONFIG&gt;</code></b>: Flags to be used when linking a static library.<br />
    <p>Same as CMAKE_C_FLAGS_* but used by the linker when creating static libraries.</p>

  </li>
  <li>
    <a name="variable:CMAKE_TRY_COMPILE_CONFIGURATION"></a><b><code>CMAKE_TRY_COMPILE_CONFIGURATION</code></b>: Build configuration used for try_compile and try_run projects.<br />
    <p>Projects built by try_compile and try_run are built synchronously during the CMake configuration step.  Therefore a specific build configuration must be chosen even if the generated build system supports multiple configurations.</p>

  </li>
  <li>
    <a name="variable:CMAKE_USE_RELATIVE_PATHS"></a><b><code>CMAKE_USE_RELATIVE_PATHS</code></b>: Use relative paths (May not work!).<br />
    <p>If this is set to TRUE, then CMake will use relative paths between the source and binary tree.  This option does not work for more complicated projects, and relative paths are used when possible.  In general, it is not possible to move CMake generated makefiles to a different location regardless of the value of this variable.</p>

  </li>
  <li>
    <a name="variable:CMAKE_VISIBILITY_INLINES_HIDDEN"></a><b><code>CMAKE_VISIBILITY_INLINES_HIDDEN</code></b>: Default value for VISIBILITY_INLINES_HIDDEN of targets.<br />
    <p>This variable is used to initialize the VISIBILITY_INLINES_HIDDEN property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:CMAKE_WIN32_EXECUTABLE"></a><b><code>CMAKE_WIN32_EXECUTABLE</code></b>: Default value for WIN32_EXECUTABLE of targets.<br />
    <p>This variable is used to initialize the WIN32_EXECUTABLE property on all the targets.  See that target property for additional information.</p>

  </li>
  <li>
    <a name="variable:EXECUTABLE_OUTPUT_PATH"></a><b><code>EXECUTABLE_OUTPUT_PATH</code></b>: Old executable location variable.<br />
    <p>The target property RUNTIME_OUTPUT_DIRECTORY supercedes this variable for a target if it is set.  Executable targets are otherwise placed in this directory.</p>

  </li>
  <li>
    <a name="variable:LIBRARY_OUTPUT_PATH"></a><b><code>LIBRARY_OUTPUT_PATH</code></b>: Old library location variable.<br />
    <p>The target properties ARCHIVE_OUTPUT_DIRECTORY, LIBRARY_OUTPUT_DIRECTORY, and RUNTIME_OUTPUT_DIRECTORY supercede this variable for a target if they are set.  Library targets are otherwise placed in this directory.</p>

  </li>
</ul>
<h2><a name="section_VariablesthatProvideInformation"></a>Variables that Provide Information</h2>
<ul>
    <li><a href="#variable:CMAKE_AR"><b><code>CMAKE_AR</code></b></a></li>
    <li><a href="#variable:CMAKE_ARGC"><b><code>CMAKE_ARGC</code></b></a></li>
    <li><a href="#variable:CMAKE_ARGV0"><b><code>CMAKE_ARGV0</code></b></a></li>
    <li><a href="#variable:CMAKE_BINARY_DIR"><b><code>CMAKE_BINARY_DIR</code></b></a></li>
    <li><a href="#variable:CMAKE_BUILD_TOOL"><b><code>CMAKE_BUILD_TOOL</code></b></a></li>
    <li><a href="#variable:CMAKE_CACHEFILE_DIR"><b><code>CMAKE_CACHEFILE_DIR</code></b></a></li>
    <li><a href="#variable:CMAKE_CACHE_MAJOR_VERSION"><b><code>CMAKE_CACHE_MAJOR_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_CACHE_MINOR_VERSION"><b><code>CMAKE_CACHE_MINOR_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_CACHE_PATCH_VERSION"><b><code>CMAKE_CACHE_PATCH_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_CFG_INTDIR"><b><code>CMAKE_CFG_INTDIR</code></b></a></li>
    <li><a href="#variable:CMAKE_COMMAND"><b><code>CMAKE_COMMAND</code></b></a></li>
    <li><a href="#variable:CMAKE_CROSSCOMPILING"><b><code>CMAKE_CROSSCOMPILING</code></b></a></li>
    <li><a href="#variable:CMAKE_CTEST_COMMAND"><b><code>CMAKE_CTEST_COMMAND</code></b></a></li>
    <li><a href="#variable:CMAKE_CURRENT_BINARY_DIR"><b><code>CMAKE_CURRENT_BINARY_DIR</code></b></a></li>
    <li><a href="#variable:CMAKE_CURRENT_LIST_DIR"><b><code>CMAKE_CURRENT_LIST_DIR</code></b></a></li>
    <li><a href="#variable:CMAKE_CURRENT_LIST_FILE"><b><code>CMAKE_CURRENT_LIST_FILE</code></b></a></li>
    <li><a href="#variable:CMAKE_CURRENT_LIST_LINE"><b><code>CMAKE_CURRENT_LIST_LINE</code></b></a></li>
    <li><a href="#variable:CMAKE_CURRENT_SOURCE_DIR"><b><code>CMAKE_CURRENT_SOURCE_DIR</code></b></a></li>
    <li><a href="#variable:CMAKE_DL_LIBS"><b><code>CMAKE_DL_LIBS</code></b></a></li>
    <li><a href="#variable:CMAKE_EDIT_COMMAND"><b><code>CMAKE_EDIT_COMMAND</code></b></a></li>
    <li><a href="#variable:CMAKE_EXECUTABLE_SUFFIX"><b><code>CMAKE_EXECUTABLE_SUFFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_EXTRA_GENERATOR"><b><code>CMAKE_EXTRA_GENERATOR</code></b></a></li>
    <li><a href="#variable:CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES"><b><code>CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES</code></b></a></li>
    <li><a href="#variable:CMAKE_GENERATOR"><b><code>CMAKE_GENERATOR</code></b></a></li>
    <li><a href="#variable:CMAKE_GENERATOR_TOOLSET"><b><code>CMAKE_GENERATOR_TOOLSET</code></b></a></li>
    <li><a href="#variable:CMAKE_HOME_DIRECTORY"><b><code>CMAKE_HOME_DIRECTORY</code></b></a></li>
    <li><a href="#variable:CMAKE_IMPORT_LIBRARY_PREFIX"><b><code>CMAKE_IMPORT_LIBRARY_PREFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_IMPORT_LIBRARY_SUFFIX"><b><code>CMAKE_IMPORT_LIBRARY_SUFFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_LINK_LIBRARY_SUFFIX"><b><code>CMAKE_LINK_LIBRARY_SUFFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_MAJOR_VERSION"><b><code>CMAKE_MAJOR_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_MAKE_PROGRAM"><b><code>CMAKE_MAKE_PROGRAM</code></b></a></li>
    <li><a href="#variable:CMAKE_MINIMUM_REQUIRED_VERSION"><b><code>CMAKE_MINIMUM_REQUIRED_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_MINOR_VERSION"><b><code>CMAKE_MINOR_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_PARENT_LIST_FILE"><b><code>CMAKE_PARENT_LIST_FILE</code></b></a></li>
    <li><a href="#variable:CMAKE_PATCH_VERSION"><b><code>CMAKE_PATCH_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_PROJECT_NAME"><b><code>CMAKE_PROJECT_NAME</code></b></a></li>
    <li><a href="#variable:CMAKE_RANLIB"><b><code>CMAKE_RANLIB</code></b></a></li>
    <li><a href="#variable:CMAKE_ROOT"><b><code>CMAKE_ROOT</code></b></a></li>
    <li><a href="#variable:CMAKE_SCRIPT_MODE_FILE"><b><code>CMAKE_SCRIPT_MODE_FILE</code></b></a></li>
    <li><a href="#variable:CMAKE_SHARED_LIBRARY_PREFIX"><b><code>CMAKE_SHARED_LIBRARY_PREFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_SHARED_LIBRARY_SUFFIX"><b><code>CMAKE_SHARED_LIBRARY_SUFFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_SHARED_MODULE_PREFIX"><b><code>CMAKE_SHARED_MODULE_PREFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_SHARED_MODULE_SUFFIX"><b><code>CMAKE_SHARED_MODULE_SUFFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_SIZEOF_VOID_P"><b><code>CMAKE_SIZEOF_VOID_P</code></b></a></li>
    <li><a href="#variable:CMAKE_SKIP_RPATH"><b><code>CMAKE_SKIP_RPATH</code></b></a></li>
    <li><a href="#variable:CMAKE_SOURCE_DIR"><b><code>CMAKE_SOURCE_DIR</code></b></a></li>
    <li><a href="#variable:CMAKE_STANDARD_LIBRARIES"><b><code>CMAKE_STANDARD_LIBRARIES</code></b></a></li>
    <li><a href="#variable:CMAKE_STATIC_LIBRARY_PREFIX"><b><code>CMAKE_STATIC_LIBRARY_PREFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_STATIC_LIBRARY_SUFFIX"><b><code>CMAKE_STATIC_LIBRARY_SUFFIX</code></b></a></li>
    <li><a href="#variable:CMAKE_TWEAK_VERSION"><b><code>CMAKE_TWEAK_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_VERBOSE_MAKEFILE"><b><code>CMAKE_VERBOSE_MAKEFILE</code></b></a></li>
    <li><a href="#variable:CMAKE_VERSION"><b><code>CMAKE_VERSION</code></b></a></li>
    <li><a href="#variable:CMAKE_VS_PLATFORM_TOOLSET"><b><code>CMAKE_VS_PLATFORM_TOOLSET</code></b></a></li>
    <li><a href="#variable:CMAKE_XCODE_PLATFORM_TOOLSET"><b><code>CMAKE_XCODE_PLATFORM_TOOLSET</code></b></a></li>
    <li><a href="#variable:PROJECT_BINARY_DIR"><b><code>PROJECT_BINARY_DIR</code></b></a></li>
    <li><a href="#variable:PROJECT_NAME"><b><code>PROJECT_NAME</code></b></a></li>
    <li><a href="#variable:PROJECT_SOURCE_DIR"><b><code>PROJECT_SOURCE_DIR</code></b></a></li>
    <li><a href="#variable:Projectname_BINARY_DIR"><b><code>[Project name]_BINARY_DIR</code></b></a></li>
    <li><a href="#variable:Projectname_SOURCE_DIR"><b><code>[Project name]_SOURCE_DIR</code></b></a></li>
</ul>
<p>variables defined by cmake, that give information about the project, and cmake</p>

<ul>
  <li>
    <a name="variable:CMAKE_AR"></a><b><code>CMAKE_AR</code></b>: Name of archiving tool for static libraries.<br />
    <p>This specifies the name of the program that creates archive or static libraries.</p>

  </li>
  <li>
    <a name="variable:CMAKE_ARGC"></a><b><code>CMAKE_ARGC</code></b>: Number of command line arguments passed to CMake in script mode.<br />
    <p>When run in -P script mode, CMake sets this variable to the number of command line arguments. See also CMAKE_ARGV0, 1, 2 ...</p>

  </li>
  <li>
    <a name="variable:CMAKE_ARGV0"></a><b><code>CMAKE_ARGV0</code></b>: Command line argument passed to CMake in script mode.<br />
    <p>When run in -P script mode, CMake sets this variable to the first command line argument. It then also sets CMAKE_ARGV1, CMAKE_ARGV2, ... and so on, up to the number of command line arguments given. See also CMAKE_ARGC.</p>

  </li>
  <li>
    <a name="variable:CMAKE_BINARY_DIR"></a><b><code>CMAKE_BINARY_DIR</code></b>: The path to the top level of the build tree.<br />
    <p>This is the full path to the top level of the current CMake build tree. For an in-source build, this would be the same as CMAKE_SOURCE_DIR.</p>

  </li>
  <li>
    <a name="variable:CMAKE_BUILD_TOOL"></a><b><code>CMAKE_BUILD_TOOL</code></b>: Tool used for the actual build process.<br />
    <p>This variable is set to the program that will be needed to build the output of CMake.   If the generator selected was Visual Studio 6, the CMAKE_BUILD_TOOL will be set to msdev, for Unix Makefiles it will be set to make or gmake, and for Visual Studio 7 it set to devenv.  For NMake Makefiles the value is nmake. This can be useful for adding special flags and commands based on the final build environment.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CACHEFILE_DIR"></a><b><code>CMAKE_CACHEFILE_DIR</code></b>: The directory with the CMakeCache.txt file.<br />
    <p>This is the full path to the directory that has the CMakeCache.txt file in it.  This is the same as CMAKE_BINARY_DIR.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CACHE_MAJOR_VERSION"></a><b><code>CMAKE_CACHE_MAJOR_VERSION</code></b>: Major version of CMake used to create the CMakeCache.txt file<br />
    <p>This stores the major version of CMake used to write a CMake cache file. It is only different when a different version of CMake is run on a previously created cache file.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CACHE_MINOR_VERSION"></a><b><code>CMAKE_CACHE_MINOR_VERSION</code></b>: Minor version of CMake used to create the CMakeCache.txt file<br />
    <p>This stores the minor version of CMake used to write a CMake cache file. It is only different when a different version of CMake is run on a previously created cache file.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CACHE_PATCH_VERSION"></a><b><code>CMAKE_CACHE_PATCH_VERSION</code></b>: Patch version of CMake used to create the CMakeCache.txt file<br />
    <p>This stores the patch version of CMake used to write a CMake cache file. It is only different when a different version of CMake is run on a previously created cache file.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CFG_INTDIR"></a><b><code>CMAKE_CFG_INTDIR</code></b>: Build-time reference to per-configuration output subdirectory.<br />
    <p>For native build systems supporting multiple configurations in the build tree (such as Visual Studio and Xcode), the value is a reference to a build-time variable specifying the name of the per-configuration output subdirectory.  On Makefile generators this evaluates to "." because there is only one configuration in a build tree.  Example values:<br /></p>
<pre>  $(IntDir)        = Visual Studio 6<br />  $(OutDir)        = Visual Studio 7, 8, 9<br />  $(Configuration) = Visual Studio 10<br />  $(CONFIGURATION) = Xcode<br />  .                = Make-based tools<br /></pre>
    <p>Since these values are evaluated by the native build system, this variable is suitable only for use in command lines that will be evaluated at build time.  Example of intended usage:<br /></p>
<pre>  add_executable(mytool mytool.c)<br />  add_custom_command(<br />    OUTPUT out.txt<br />    COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mytool<br />            ${CMAKE_CURRENT_SOURCE_DIR}/in.txt out.txt<br />    DEPENDS mytool in.txt<br />    )<br />  add_custom_target(drive ALL DEPENDS out.txt)<br /></pre>
    <p>Note that CMAKE_CFG_INTDIR is no longer necessary for this purpose but has been left for compatibility with existing projects.  Instead add_custom_command() recognizes executable target names in its COMMAND option, so "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mytool" can be replaced by just "mytool".<br /></p>
<p>This variable is read-only.  Setting it is undefined behavior.  In multi-configuration build systems the value of this variable is passed as the value of preprocessor symbol "CMAKE_INTDIR" to the compilation of all source files.</p>

  </li>
  <li>
    <a name="variable:CMAKE_COMMAND"></a><b><code>CMAKE_COMMAND</code></b>: The full path to the cmake executable.<br />
    <p>This is the full path to the CMake executable cmake which is useful from custom commands that want to use the cmake -E option for portable system commands.  (e.g. /usr/local/bin/cmake</p>

  </li>
  <li>
    <a name="variable:CMAKE_CROSSCOMPILING"></a><b><code>CMAKE_CROSSCOMPILING</code></b>: Is CMake currently cross compiling.<br />
    <p>This variable will be set to true by CMake if CMake is cross compiling. Specifically if the build platform is different from the target platform.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CTEST_COMMAND"></a><b><code>CMAKE_CTEST_COMMAND</code></b>: Full path to ctest command installed with cmake.<br />
    <p>This is the full path to the CTest executable ctest which is useful from custom commands that want to use the cmake -E option for portable system commands.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CURRENT_BINARY_DIR"></a><b><code>CMAKE_CURRENT_BINARY_DIR</code></b>: The path to the binary directory currently being processed.<br />
    <p>This the full path to the build directory that is currently being processed by cmake.  Each directory added by add_subdirectory will create a binary directory in the build tree, and as it is being processed this variable will be set.  For in-source builds this is the current source directory being processed.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CURRENT_LIST_DIR"></a><b><code>CMAKE_CURRENT_LIST_DIR</code></b>: Full directory of the listfile currently being processed.<br />
    <p>As CMake processes the listfiles in your project this variable will always be set to the directory where the listfile which is currently being processed (CMAKE_CURRENT_LIST_FILE) is located.  The value has dynamic scope.  When CMake starts processing commands in a source file it sets this variable to the directory where this file is located.  When CMake finishes processing commands from the file it restores the previous value.  Therefore the value of the variable inside a macro or function is the directory of the file invoking the bottom-most entry on the call stack, not the directory of the file containing the macro or function definition.<br /></p>
<p>See also CMAKE_CURRENT_LIST_FILE.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CURRENT_LIST_FILE"></a><b><code>CMAKE_CURRENT_LIST_FILE</code></b>: Full path to the listfile currently being processed.<br />
    <p>As CMake processes the listfiles in your project this variable will always be set to the one currently being processed.  The value has dynamic scope.  When CMake starts processing commands in a source file it sets this variable to the location of the file.  When CMake finishes processing commands from the file it restores the previous value.  Therefore the value of the variable inside a macro or function is the file invoking the bottom-most entry on the call stack, not the file containing the macro or function definition.<br /></p>
<p>See also CMAKE_PARENT_LIST_FILE.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CURRENT_LIST_LINE"></a><b><code>CMAKE_CURRENT_LIST_LINE</code></b>: The line number of the current file being processed.<br />
    <p>This is the line number of the file currently being processed by cmake.</p>

  </li>
  <li>
    <a name="variable:CMAKE_CURRENT_SOURCE_DIR"></a><b><code>CMAKE_CURRENT_SOURCE_DIR</code></b>: The path to the source directory currently being processed.<br />
    <p>This the full path to the source directory that is currently being processed by cmake.  </p>

  </li>
  <li>
    <a name="variable:CMAKE_DL_LIBS"></a><b><code>CMAKE_DL_LIBS</code></b>: Name of library containing dlopen and dlcose.<br />
    <p>The name of the library that has dlopen and dlclose in it, usually -ldl on most UNIX machines.</p>

  </li>
  <li>
    <a name="variable:CMAKE_EDIT_COMMAND"></a><b><code>CMAKE_EDIT_COMMAND</code></b>: Full path to cmake-gui or ccmake.<br />
    <p>This is the full path to the CMake executable that can graphically edit the cache.  For example, cmake-gui, ccmake, or cmake -i.</p>

  </li>
  <li>
    <a name="variable:CMAKE_EXECUTABLE_SUFFIX"></a><b><code>CMAKE_EXECUTABLE_SUFFIX</code></b>: The suffix for executables on this platform.<br />
    <p>The suffix to use for the end of an executable filename if any, .exe on Windows.<br /></p>
<p>CMAKE_EXECUTABLE_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_EXTRA_GENERATOR"></a><b><code>CMAKE_EXTRA_GENERATOR</code></b>: The extra generator used to build the project.<br />
    <p>When using the Eclipse, CodeBlocks or KDevelop generators, CMake generates Makefiles (CMAKE_GENERATOR) and additionally project files for the respective IDE. This IDE project file generator is stored in CMAKE_EXTRA_GENERATOR (e.g. "Eclipse CDT4").</p>

  </li>
  <li>
    <a name="variable:CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES"></a><b><code>CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES</code></b>: Additional suffixes for shared libraries.<br />
    <p>Extensions for shared libraries other than that specified by CMAKE_SHARED_LIBRARY_SUFFIX, if any.  CMake uses this to recognize external shared library files during analysis of libraries linked by a target.</p>

  </li>
  <li>
    <a name="variable:CMAKE_GENERATOR"></a><b><code>CMAKE_GENERATOR</code></b>: The generator used to build the project.<br />
    <p>The name of the generator that is being used to generate the build files.  (e.g. "Unix Makefiles", "Visual Studio 6", etc.)</p>

  </li>
  <li>
    <a name="variable:CMAKE_GENERATOR_TOOLSET"></a><b><code>CMAKE_GENERATOR_TOOLSET</code></b>: Native build system toolset name specified by user.<br />
    <p>Some CMake generators support a toolset name to be given to the native build system to choose a compiler.  If the user specifies a toolset name (e.g. via the cmake -T option) the value will be available in this variable.</p>

  </li>
  <li>
    <a name="variable:CMAKE_HOME_DIRECTORY"></a><b><code>CMAKE_HOME_DIRECTORY</code></b>: Path to top of source tree.<br />
    <p>This is the path to the top level of the source tree.</p>

  </li>
  <li>
    <a name="variable:CMAKE_IMPORT_LIBRARY_PREFIX"></a><b><code>CMAKE_IMPORT_LIBRARY_PREFIX</code></b>: The prefix for import libraries that you link to.<br />
    <p>The prefix to use for the name of an import library if used on this platform.<br /></p>
<p>CMAKE_IMPORT_LIBRARY_PREFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_IMPORT_LIBRARY_SUFFIX"></a><b><code>CMAKE_IMPORT_LIBRARY_SUFFIX</code></b>: The suffix for import libraries that you link to.<br />
    <p>The suffix to use for the end of an import library filename if used on this platform.<br /></p>
<p>CMAKE_IMPORT_LIBRARY_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_LINK_LIBRARY_SUFFIX"></a><b><code>CMAKE_LINK_LIBRARY_SUFFIX</code></b>: The suffix for libraries that you link to.<br />
    <p>The suffix to use for the end of a library filename, .lib on Windows.</p>

  </li>
  <li>
    <a name="variable:CMAKE_MAJOR_VERSION"></a><b><code>CMAKE_MAJOR_VERSION</code></b>: The Major version of cmake (i.e. the 2 in 2.X.X)<br />
    <p>This specifies the major version of the CMake executable being run.</p>

  </li>
  <li>
    <a name="variable:CMAKE_MAKE_PROGRAM"></a><b><code>CMAKE_MAKE_PROGRAM</code></b>: See CMAKE_BUILD_TOOL.<br />
    <p>This variable is around for backwards compatibility, see CMAKE_BUILD_TOOL.</p>

  </li>
  <li>
    <a name="variable:CMAKE_MINIMUM_REQUIRED_VERSION"></a><b><code>CMAKE_MINIMUM_REQUIRED_VERSION</code></b>: Version specified to cmake_minimum_required command<br />
    <p>Variable containing the VERSION component specified in the cmake_minimum_required command.</p>

  </li>
  <li>
    <a name="variable:CMAKE_MINOR_VERSION"></a><b><code>CMAKE_MINOR_VERSION</code></b>: The Minor version of cmake (i.e. the 4 in X.4.X).<br />
    <p>This specifies the minor version of the CMake executable being run.</p>

  </li>
  <li>
    <a name="variable:CMAKE_PARENT_LIST_FILE"></a><b><code>CMAKE_PARENT_LIST_FILE</code></b>: Full path to the CMake file that included the current one.<br />
    <p>While processing a CMake file loaded by include() or find_package() this variable contains the full path to the file including it.  The top of the include stack is always the CMakeLists.txt for the current directory.  See also CMAKE_CURRENT_LIST_FILE.</p>

  </li>
  <li>
    <a name="variable:CMAKE_PATCH_VERSION"></a><b><code>CMAKE_PATCH_VERSION</code></b>: The patch version of cmake (i.e. the 3 in X.X.3).<br />
    <p>This specifies the patch version of the CMake executable being run.</p>

  </li>
  <li>
    <a name="variable:CMAKE_PROJECT_NAME"></a><b><code>CMAKE_PROJECT_NAME</code></b>: The name of the current project.<br />
    <p>This specifies name of the current project from the closest inherited PROJECT command.</p>

  </li>
  <li>
    <a name="variable:CMAKE_RANLIB"></a><b><code>CMAKE_RANLIB</code></b>: Name of randomizing tool for static libraries.<br />
    <p>This specifies name of the program that randomizes libraries on UNIX, not used on Windows, but may be present.</p>

  </li>
  <li>
    <a name="variable:CMAKE_ROOT"></a><b><code>CMAKE_ROOT</code></b>: Install directory for running cmake.<br />
    <p>This is the install root for the running CMake and the Modules directory can be found here. This is commonly used in this format: ${CMAKE_ROOT}/Modules</p>

  </li>
  <li>
    <a name="variable:CMAKE_SCRIPT_MODE_FILE"></a><b><code>CMAKE_SCRIPT_MODE_FILE</code></b>: Full path to the -P script file currently being processed.<br />
    <p>When run in -P script mode, CMake sets this variable to the full path of the script file. When run to configure a CMakeLists.txt file, this variable is not set.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SHARED_LIBRARY_PREFIX"></a><b><code>CMAKE_SHARED_LIBRARY_PREFIX</code></b>: The prefix for shared libraries that you link to.<br />
    <p>The prefix to use for the name of a shared library, lib on UNIX.<br /></p>
<p>CMAKE_SHARED_LIBRARY_PREFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SHARED_LIBRARY_SUFFIX"></a><b><code>CMAKE_SHARED_LIBRARY_SUFFIX</code></b>: The suffix for shared libraries that you link to.<br />
    <p>The suffix to use for the end of a shared library filename, .dll on Windows.<br /></p>
<p>CMAKE_SHARED_LIBRARY_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SHARED_MODULE_PREFIX"></a><b><code>CMAKE_SHARED_MODULE_PREFIX</code></b>: The prefix for loadable modules that you link to.<br />
    <p>The prefix to use for the name of a loadable module on this platform.<br /></p>
<p>CMAKE_SHARED_MODULE_PREFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SHARED_MODULE_SUFFIX"></a><b><code>CMAKE_SHARED_MODULE_SUFFIX</code></b>: The suffix for shared libraries that you link to.<br />
    <p>The suffix to use for the end of a loadable module filename on this platform<br /></p>
<p>CMAKE_SHARED_MODULE_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SIZEOF_VOID_P"></a><b><code>CMAKE_SIZEOF_VOID_P</code></b>: Size of a void pointer.<br />
    <p>This is set to the size of a pointer on the machine, and is determined by a try compile. If a 64 bit size is found, then the library search path is modified to look for 64 bit libraries first.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SKIP_RPATH"></a><b><code>CMAKE_SKIP_RPATH</code></b>: If true, do not add run time path information.<br />
    <p>If this is set to TRUE, then the rpath information is not added to compiled executables.  The default is to add rpath information if the platform supports it.  This allows for easy running from the build tree.  To omit RPATH in the install step, but not the build step, use CMAKE_SKIP_INSTALL_RPATH instead.</p>

  </li>
  <li>
    <a name="variable:CMAKE_SOURCE_DIR"></a><b><code>CMAKE_SOURCE_DIR</code></b>: The path to the top level of the source tree.<br />
    <p>This is the full path to the top level of the current CMake source tree. For an in-source build, this would be the same as CMAKE_BINARY_DIR.</p>

  </li>
  <li>
    <a name="variable:CMAKE_STANDARD_LIBRARIES"></a><b><code>CMAKE_STANDARD_LIBRARIES</code></b>: Libraries linked into every executable and shared library.<br />
    <p>This is the list of libraries that are linked into all executables and libraries.</p>

  </li>
  <li>
    <a name="variable:CMAKE_STATIC_LIBRARY_PREFIX"></a><b><code>CMAKE_STATIC_LIBRARY_PREFIX</code></b>: The prefix for static libraries that you link to.<br />
    <p>The prefix to use for the name of a static library, lib on UNIX.<br /></p>
<p>CMAKE_STATIC_LIBRARY_PREFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_STATIC_LIBRARY_SUFFIX"></a><b><code>CMAKE_STATIC_LIBRARY_SUFFIX</code></b>: The suffix for static libraries that you link to.<br />
    <p>The suffix to use for the end of a static library filename, .lib on Windows.<br /></p>
<p>CMAKE_STATIC_LIBRARY_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</p>

  </li>
  <li>
    <a name="variable:CMAKE_TWEAK_VERSION"></a><b><code>CMAKE_TWEAK_VERSION</code></b>: The tweak version of cmake (i.e. the 1 in X.X.X.1).<br />
    <p>This specifies the tweak version of the CMake executable being run.  Releases use tweak &lt; 20000000 and development versions use the date format CCYYMMDD for the tweak level.</p>

  </li>
  <li>
    <a name="variable:CMAKE_VERBOSE_MAKEFILE"></a><b><code>CMAKE_VERBOSE_MAKEFILE</code></b>: Create verbose makefiles if on.<br />
    <p>This variable defaults to false. You can set this variable to true to make CMake produce verbose makefiles that show each command line as it is used.</p>

  </li>
  <li>
    <a name="variable:CMAKE_VERSION"></a><b><code>CMAKE_VERSION</code></b>: The full version of cmake in major.minor.patch[.tweak[-id]] format.<br />
    <p>This specifies the full version of the CMake executable being run.  This variable is defined by versions 2.6.3 and higher.  See variables CMAKE_MAJOR_VERSION, CMAKE_MINOR_VERSION, CMAKE_PATCH_VERSION, and CMAKE_TWEAK_VERSION for individual version components.  The [-id] component appears in non-release versions and may be arbitrary text.</p>

  </li>
  <li>
    <a name="variable:CMAKE_VS_PLATFORM_TOOLSET"></a><b><code>CMAKE_VS_PLATFORM_TOOLSET</code></b>: Visual Studio Platform Toolset name.<br />
    <p>VS 10 and above use MSBuild under the hood and support multiple compiler toolchains.  CMake may specify a toolset explicitly, such as "v110" for VS 11 or "Windows7.1SDK" for 64-bit support in VS 10 Express.  CMake provides the name of the chosen toolset in this variable.</p>

  </li>
  <li>
    <a name="variable:CMAKE_XCODE_PLATFORM_TOOLSET"></a><b><code>CMAKE_XCODE_PLATFORM_TOOLSET</code></b>: Xcode compiler selection.<br />
    <p>Xcode supports selection of a compiler from one of the installed toolsets.  CMake provides the name of the chosen toolset in this variable, if any is explicitly selected (e.g. via the cmake -T option).</p>

  </li>
  <li>
    <a name="variable:PROJECT_BINARY_DIR"></a><b><code>PROJECT_BINARY_DIR</code></b>: Full path to build directory for project.<br />
    <p>This is the binary directory of the most recent PROJECT command.</p>

  </li>
  <li>
    <a name="variable:PROJECT_NAME"></a><b><code>PROJECT_NAME</code></b>: Name of the project given to the project command.<br />
    <p>This is the name given to the most recent PROJECT command.</p>

  </li>
  <li>
    <a name="variable:PROJECT_SOURCE_DIR"></a><b><code>PROJECT_SOURCE_DIR</code></b>: Top level source directory for the current project.<br />
    <p>This is the source directory of the most recent PROJECT command.</p>

  </li>
  <li>
    <a name="variable:Projectname_BINARY_DIR"></a><b><code>[Project name]_BINARY_DIR</code></b>: Top level binary directory for the named project.<br />
    <p>A variable is created with the name used in the PROJECT command, and is the binary directory for the project.   This can be useful when SUBDIR is used to connect several projects.</p>

  </li>
  <li>
    <a name="variable:Projectname_SOURCE_DIR"></a><b><code>[Project name]_SOURCE_DIR</code></b>: Top level source directory for the named project.<br />
    <p>A variable is created with the name used in the PROJECT command, and is the source directory for the project.   This can be useful when add_subdirectory is used to connect several projects.</p>

  </li>
</ul>
<h2><a name="section_Copyright"></a>Copyright</h2>
<p>Copyright 2000-2012 Kitware, Inc., Insight Software Consortium.  All rights reserved.</p>

<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>

<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p>

<p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>

<p>Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.</p>

<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>

<h2><a name="section_SeeAlso"></a>See Also</h2>
<ul>
    <li><a href="#see:HomePage"><b><code>Home Page</code></b></a></li>
    <li><a href="#see:FrequentlyAskedQuestions"><b><code>Frequently Asked Questions</code></b></a></li>
    <li><a href="#see:OnlineDocumentation"><b><code>Online Documentation</code></b></a></li>
    <li><a href="#see:MailingList"><b><code>Mailing List</code></b></a></li>
</ul>
<p>The following resources are available to get help using CMake:</p>

<ul>
  <li>
    <a name="see:HomePage"></a><b><code>Home Page</code></b>: <a href="http://www.cmake.org">http://www.cmake.org</a><br />
    <p>The primary starting point for learning about CMake.</p>

  </li>
  <li>
    <a name="see:FrequentlyAskedQuestions"></a><b><code>Frequently Asked Questions</code></b>: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br />
    <p>A Wiki is provided containing answers to frequently asked questions. </p>

  </li>
  <li>
    <a name="see:OnlineDocumentation"></a><b><code>Online Documentation</code></b>: <a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a><br />
    <p>Links to available documentation may be found on this web page.</p>

  </li>
  <li>
    <a name="see:MailingList"></a><b><code>Mailing List</code></b>: <a href="http://www.cmake.org/HTML/MailingLists.html">http://www.cmake.org/HTML/MailingLists.html</a><br />
    <p>For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member-post-only but one may sign up on the CMake web page. Please first read the full documentation at <a href="http://www.cmake.org">http://www.cmake.org</a> before posting questions to the list.</p>

  </li>
</ul>
</body></html>