forked from rose-compiler/rose-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
1270 lines (1069 loc) · 49.7 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
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
# Please be careful about where to put your tests and variable settings -*- cmake -*-
# The order matters!!
#----- put platform independent settings in this section-----------------
cmake_minimum_required(VERSION 2.8)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
project (ROSE CXX C)
OPTION(BUILD_SHARED_LIBS "Build all libraries shared" FALSE)
if(WIN32)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
add_definitions(-DBOOST_ALL_NO_LIB=1)
# Why do we have to have a copy of some standard built-in modules inside rose?
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
#message ("CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}")
#-------------------------------------------------------------------------------
# ROSE SCM Version Information
#
# 1. Grab the SCM information from Git, otherwise
# 2. Grab the SCM information from the $ROSE/VERSION file
#-------------------------------------------------------------------------------
set(ROSE_SCM_VERSION_ID_REGEX "^[0-9a-zA-Z]+$") # {40}
set(ROSE_SCM_VERSION_ID_LENGTH_EXACT 40)
set(ROSE_SCM_VERSION_UNIX_DATE_REGEX "^[0-9]+$") # {10,}
set(ROSE_SCM_VERSION_UNIX_DATE_LENGTH_MIN 10)
set(ROSE_SCM_VERSION_FILE "${PROJECT_SOURCE_DIR}/VERSION")
set(ROSE_SCM_VERSION_FILE_FIELD_COUNT 2)
message(STATUS "Check for ROSE source tree type")
if(IS_DIRECTORY ${PROJECT_SOURCE_DIR}/.git)
message(STATUS "Check for ROSE source tree type - Git")
find_package(Git)
if(NOT GIT_FOUND)
string(REPLACE ":" "\n\t" ENV_PATH "$ENV{PATH}")
message(
FATAL_ERROR
"git executable not found. You might need to add /path/to/git/bin "
"to your \$PATH environment variable.\n"
"PATH=${ENV_PATH}"
)
else()
message(
STATUS
"Detecting ROSE SCM version information (from Git)"
)
# HEAD
execute_process(
COMMAND "${GIT_EXECUTABLE}" rev-parse HEAD
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
ERROR_VARIABLE stderr
RESULT_VARIABLE error_code
OUTPUT_VARIABLE ROSE_SCM_VERSION_ID
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if (NOT error_code EQUAL 0)
message(
FATAL_ERROR
"(status=${error_code}) "
"Failed to determine the ROSE SCM version id: "
"${ROSE_SCM_VERSION_ID}${stderr}"
)
endif()
execute_process(
# Author time (%at) of the HEAD commit
COMMAND "${GIT_EXECUTABLE}" log -1 --format=%at HEAD
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
ERROR_VARIABLE stderr
RESULT_VARIABLE error_code
OUTPUT_VARIABLE ROSE_SCM_VERSION_UNIX_DATE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(NOT error_code EQUAL 0)
message(
FATAL_ERROR
"(status=${error_code} "
"Failed to determine the ROSE SCM version unix timestamp: "
"${ROSE_SCM_VERSION_UNIX_DATE}${stderr}"
)
endif()
endif()
else()
# Distribution versions of ROSE will have a VERSION file.
message(STATUS "Check for ROSE source tree type - Distribution")
message(STATUS "Check for VERSION file - ${ROSE_SCM_VERSION_FILE}")
if(NOT EXISTS "${ROSE_SCM_VERSION_FILE}")
message(
FATAL_ERROR
"File not found: ${ROSE_SCM_VERSION_FILE}"
)
else()
message(
STATUS
"Check for VERSION file - found "
"${ROSE_SCM_VERSION_FILE}"
)
message(
STATUS
"Detecting ROSE SCM version information "
"(from ${ROSE_SCM_VERSION_FILE})"
)
execute_process(
COMMAND "cat" ${ROSE_SCM_VERSION_FILE}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
ERROR_VARIABLE stderr
RESULT_VARIABLE error_code
OUTPUT_VARIABLE ROSE_SCM_VERSION_INFO
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if (NOT error_code EQUAL 0)
message(
FATAL_ERROR
"(status=${error_code}) "
"Failed to extract the ROSE SCM version information from "
"${ROSE_SCM_VERSION_FILE}\n"
"${ROSE_SCM_VERSION_INFO}${stderr}"
)
endif()
# Convert string information to CMake LIST
# (space-delimited to semicolon-delimited)
string(
REPLACE " " ";" # <match> <replace>
ROSE_SCM_VERSION_INFO_LIST # output
${ROSE_SCM_VERSION_INFO} # input
)
list(
LENGTH
ROSE_SCM_VERSION_INFO_LIST
ROSE_SCM_VERSION_INFO_LIST_LENGTH
)
if(NOT ROSE_SCM_VERSION_INFO_LIST_LENGTH EQUAL ${ROSE_SCM_VERSION_FILE_FIELD_COUNT})
message(
FATAL_ERROR
"Check for VERSION file - failed\n"
"Invalid VERSION file ${ROSE_SCM_VERSION_FILE} has "
"(${ROSE_SCM_VERSION_INFO_LIST_LENGTH}) fields, expected "
"only (${ROSE_SCM_VERSION_FILE_FIELD_COUNT}) fields!"
)
else()
list(GET ROSE_SCM_VERSION_INFO_LIST 0 ROSE_SCM_VERSION_ID)
list(GET ROSE_SCM_VERSION_INFO_LIST 1 ROSE_SCM_VERSION_UNIX_DATE)
endif()
endif()
endif(IS_DIRECTORY ${PROJECT_SOURCE_DIR}/.git)
#---------------------------------------
# HEAD commit - id
#---------------------------------------
if (NOT "${ROSE_SCM_VERSION_ID}" MATCHES
"${ROSE_SCM_VERSION_ID_REGEX}")
message(
FATAL_ERROR
"Invalid Git hash \"${ROSE_SCM_VERSION_ID}\" does not "
"match regex \"${ROSE_SCM_VERSION_ID_REGEX}\""
)
endif()
string(LENGTH ${ROSE_SCM_VERSION_ID} ROSE_SCM_VERSION_ID_LENGTH)
if (NOT "${ROSE_SCM_VERSION_ID_LENGTH}" EQUAL
"${ROSE_SCM_VERSION_ID_LENGTH_EXACT}")
message(
FATAL_ERROR
"Invalid Git hash \"${ROSE_SCM_VERSION_ID}\" has length="
"${ROSE_SCM_VERSION_ID_LENGTH}; expected length="
"${ROSE_SCM_VERSION_ID_LENGTH_EXACT}"
)
endif()
#---------------------------------------
# HEAD commit - date (Unix timestamp)
#---------------------------------------
if(NOT "${ROSE_SCM_VERSION_UNIX_DATE}" MATCHES
"${ROSE_SCM_VERSION_UNIX_DATE_REGEX}")
message(
FATAL_ERROR
"Invalid Git author date \"${ROSE_SCM_VERSION_UNIX_DATE}\" does not "
"match regex \"${ROSE_SCM_VERSION_UNIX_DATE_REGEX}\"")
endif()
string(LENGTH ${ROSE_SCM_VERSION_UNIX_DATE} ROSE_SCM_VERSION_UNIX_DATE_LENGTH)
if ("${ROSE_SCM_VERSION_UNIX_DATE_LENGTH}" LESS
"${ROSE_SCM_VERSION_UNIX_DATE_LENGTH_MIN}")
message(
FATAL_ERROR
"Invalid Git Unix timestamp author date "
"\"${ROSE_SCM_VERSION_UNIX_DATE}\" has length="
"${ROSE_SCM_VERSION_UNIX_DATE_LENGTH}; "
"expected length>=${ROSE_SCM_VERSION_UNIX_DATE_LENGTH_MIN}"
)
endif()
message(STATUS "The ROSE SCM version identifier is ${ROSE_SCM_VERSION_ID}")
message(STATUS "The ROSE SCM version Unix timestamp is ${ROSE_SCM_VERSION_UNIX_DATE}")
#-------------------------------------------------------------------------------
# Configuration synopsis used by rose::initialize. The ROSE_CONFIG_TOKEN is
# #define'd as a string in rose_config.h and ultimately rosePublicConfig.h and
# the string is a synopsis of some important configuration details. This string
# is passed by user code to the rose::initialize function which compares it
# against the same macro compiled into the ROSE library. If their contents differ
# it means that the ROSE header files being used by the user are not the same
# as the ROSE header files that were used to compile librose being linked by the
# user and bad things will probably happen.
#
# The CMake ROSE_CONFIG_TOKEN variable is the string that becomes the eventual
# value of the ROSE_CONFIG_TOKEN C preprocessor macro. We initialize it here,
# but other parts of the CMake file might augment its value with additional
# information (e.g., adding the boost version number).
#-------------------------------------------------------------------------------
set(ROSE_CONFIG_TOKEN "rose-${ROSE_SCM_VERSION_ID}")
#-------------------------------------------------------------------------------
# Boost C++ Libraries
#-------------------------------------------------------------------------------
set(Boost_USE_STATIC_LIBS FALSE)
set(Boost_DEBUG TRUE)
# Honor BOOST_HOME environment variable
if (DEFINED ENV{BOOST_HOME})
set (BOOST_ROOT "$ENV{BOOST_HOME}")
endif ()
option(Boost_USE_MULTITHREADED
"Should Boost multithreaded libraries be used?" OFF)
if (WIN32)
FIND_PACKAGE(Boost REQUIRED)
#set (Boost_INCLUDE_DIRS ${Boost_INCLUDE_DIRS}/../../ )
#set (Boost_LIBRARY_DIRS ${Boost_INCLUDE_DIRS}/lib/ )
#set (Boost_LIBRARIES ${Boost_INCLUDE_DIRS}/lib/ )
set (BOOST_LIBRARYDIR ${Boost_LIBRARY_DIRS} )
set (BOOST_INCLUDEDIR ${Boost_INCLUDE_DIRS}/ )
#set (BOOST_ROOT ${Boost_INCLUDE_DIRS}/ )
MESSAGE("Boost information:")
MESSAGE(" BOOST_ROOT: ${BOOST_ROOT}")
MESSAGE(" Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
MESSAGE(" Boost_LIBRARIES: ${Boost_LIBRARIES}")
MESSAGE(" Boost_LIBRARY_DIRS: ${Boost_LIBRARY_DIRS}")
MESSAGE(" BOOST_LIBRARYDIR : ${BOOST_LIBRARYDIR}")
MESSAGE(" BOOST_INCLUDEDIR : ${BOOST_INCLUDEDIR}")
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
endif (WIN32)
# Ensure that Boost is found. Environment variable BOOST_ROOT can help to find a user-specified path to Boost.
SET(Boost_ADDITIONAL_VERSIONS "1.59.0" "1.55.0" "1.36.0" "1.37" "1.37.0" "1.38.0" "1.39.0" "1.40.0" )
find_package( Boost 1.36.0 COMPONENTS date_time filesystem iostreams program_options regex system wave thread REQUIRED)
if(NOT Boost_FOUND)
message(FATAL_ERROR "Could not find Boost version 1.35.0 or newer command")
endif(NOT Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
set(ROSE_CONFIG_TOKEN "${ROSE_CONFIG_TOKEN} boost-${Boost_VERSION}")
# If the boost is compiled with multi-thread support then we must add "-pthread" to all compile and link commands, or whatever
# is appropriate for the system. With GCC it is not sufficient to just add "-lpthread" to the link commands--the "-pthread"
# switch MUST be added to the compile commands as well.
find_package(Threads)
if(CMAKE_COMPILER_IS_GNUCXX AND "${CMAKE_USE_PTHREADS_INIT}")
add_definitions(-pthread)
set(ROSE_CONFIG_TOKEN "${ROSE_CONFIG_TOKEN} pthread")
endif()
# default paths to install header, executable, and libraries
set(INCLUDE_INSTALL_DIR "include")
set(BIN_INSTALL_DIR "bin" ) # The install dir for executables
set(LIB_INSTALL_DIR "lib" )
set(INSTALL_TARGETS_DEFAULT_ARGS RUNTIME DESTINATION "${BIN_INSTALL_DIR}"
LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
ARCHIVE
DESTINATION
"${LIB_INSTALL_DIR}"
COMPONENT
Devel
)
# a new definition to tweak code for cmake
set(USE_CMAKE 1)
# tps (1/4/2010) Do not know how to add flag to CMakeSetup yet
option ( enable-smaller-generated-files "Build with smaller generated files for IR nodes" )
#set( enable-smaller-generated-files 1 )
if ( enable-smaller-generated-files )
add_definitions ("-DsmallerGeneratedFiles" "-DROSE_USE_SMALLER_GENERATED_FILES")
MESSAGE ( STATUS ">>>>>>>>>>>>>>>>>>>>>>>>>> Smaller generated files enabled " )
else ( enable-smaller-generated-files )
MESSAGE ( STATUS ">>>>>>>>>>>>>>>>>>>>>>>>> Smaller generated files disabled" )
endif ( enable-smaller-generated-files )
#/CLR /MDd /TP
if (WIN32)
# /TP to indicate files are C++
# / CLR common intermediate language
# /GL whole program optimization
# /O1 optimization for small files
# /Ob0 disable inline expansion
# /MP multiple processors compilation
# /0s small files
# /wd4716 to turn no return to a warning and not an error
set( CMAKE_BUILD_TYPE Release )
set( CMAKE_CXX_FLAGS " /TP /MP /O1 /Os /GR /EHsc /wd4541 /wd4716" )
set( CMAKE_C_FLAGS " /wd4541 " )
set( CMAKE_SHARED_LINKER_FLAGS_DEBUG " ${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /INCREMENTAL:NO" )
set( CMAKE_SHARED_LINKER_FLAGS_RELEASE " ${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /INCREMENTAL:NO" )
set( CMAKE_MODULE_LINKER_FLAGS_DEBUG " ${CMAKE_MODULE_LINKER_FLAGS_DEBUG} /INCREMENTAL:NO" )
set( CMAKE_MODULE_LINKER_FLAGS_RELEASE " ${CMAKE_MODULE_LINKER_FLAGS_RELEASE} /INCREMENTAL:NO" )
set( CMAKE_LINKER_FLAGS " ${CMAKE_LINKER_FLAGS} /INCREMENTAL:NO" )
set( CMAKE_SHARED_LINKER_FLAGS " ${CMAKE_SHARED_LINKER_FLAGS} /INCREMENTAL:NO" )
set( CMAKE_MODULE_LINKER_FLAGS " ${CMAKE_MODULE_LINKER_FLAGS} /INCREMENTAL:NO" )
set( CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} /INCREMENTAL:NO")
set( CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} /INCREMENTAL:NO")
else (WIN32)
set( CMAKE_CXX_FLAGS " -fexceptions -DHAVE_CONFIG_H -fPIC" )
set( CMAKE_C_FLAGS " -fexceptions -DHAVE_CONFIG_H -fPIC" )
#set( CMAKE_CXX_FLAGS " -fexceptions -DHAVE_CONFIG_H -g -fPIC -fvisibility=hidden" )
#set( CMAKE_C_FLAGS " -fexceptions -DHAVE_CONFIG_H -g -fPIC -fvisibility=hidden" )
#set( CMAKE_CXX_FLAGS " -fexceptions -DHAVE_CONFIG_H -g -fPIC " )
#set( CMAKE_C_FLAGS " -fexceptions -DHAVE_CONFIG_H -g -fPIC " )
endif (WIN32)
#set( CMAKE_VERBOSE_MAKEFILE true )
set(ROSE_TOP_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(ROSE_TOP_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
#Generate our configure file
# --------- please do all system, platform, software tests here --------------
# Setup EDG version
# Set default EDG version to 4.9
set(EDG_VERSION "4.9" CACHE STRING
"major.minor version number for EDG (e.g. 3.3, 3.10, 4.0, 4.1).")
string(SUBSTRING ${EDG_VERSION} 0 1 EDG_MAJOR_VERSION)
string(SUBSTRING ${EDG_VERSION} 2 1 EDG_MINOR_VERSION)
set(ROSE_EDG_MAJOR_VERSION_NUMBER ${EDG_MAJOR_VERSION})
set(ROSE_EDG_MINOR_VERSION_NUMBER ${EDG_MINOR_VERSION})
if ("${EDG_MAJOR_VERSION}" VERSION_EQUAL "4")
set(ROSE_USE_EDG_VERSION_4 1)
set(ROSE_USE_NEW_EDG_INTERFACE 1)
if ("${EDG_MINOR_VERSION}" VERSION_GREATER "3")
set(TEMPLATE_DECLARATIONS_DERIVED_FROM_NON_TEMPLATE_DECLARATIONS 1)
endif()
if ("${EDG_MINOR_VERSION}" VERSION_EQUAL "4")
set(ROSE_USE_EDG_VERSION_4_4 1)
endif()
if ("${EDG_MINOR_VERSION}" VERSION_EQUAL "7")
set(ROSE_USE_EDG_VERSION_4_7 1)
endif()
if ("${EDG_MINOR_VERSION}" VERSION_EQUAL "9")
set(ROSE_USE_EDG_VERSION_4_9 1)
endif()
endif()
# Check if we need to download the EDG binary tarball
if(EXISTS "${PROJECT_SOURCE_DIR}/src/frontend/CxxFrontend/EDG/CMakeLists.txt")
set(have_EDG_source TRUE)
else()
set(have_EDG_source FALSE)
set(edg_lib "")
set(BINARY_EDG 1)
if (NOT WIN32)
if(EXISTS "${PROJECT_BINARY_DIR}/src/frontend/CxxFrontend/EDG.tar.gz")
execute_process(
COMMAND "tar" "-zxvf" "-C" "${PROJECT_BINARY_DIR}/src/frontend/CxxFrontend/EDG")
else()
# no need to display this message after the file has been downloaded
if(NOT EXISTS "${PROJECT_BINARY_DIR}/src/frontend/CxxFrontend/EDG/.libs")
message(WARNING
"At build time, CMake will attempt to download a required library "
"tarball.\n"
"Please note that this EDG binary tarball is currently only available "
"for the GCC compiler.\n" )
endif()
include(${PROJECT_SOURCE_DIR}/cmake/DownloadEDG.cmake)
set(edg_lib EDG)
endif()
endif()
endif()
# Set ROSE_SHLIBPATH_VAR. For Visual Studio, this is PATH.
# Otherwise, it is just LD_LIBRARY_PATH.
if(MSVC)
set(ROSE_SHLIBPATH_VAR "PATH")
else()
set(ROSE_SHLIBPATH_VAR "LD_LIBRARY_PATH")
endif()
# a set of common features: including endian, stdio.h, printf, size of long int ,etc
#taken from LyX
include(ConfigureChecks)
#include(KDE4Defaults)
# a collection of macros which extend the built-in cmake commands
include(MacroLibrary)
# Try to find MySQL / MySQL Embedded library
# MYSQL_FOUND,MYSQL_INCLUDE_DIR,MYSQL_LIBRARIES, etc
include(FindMySQL)
find_package(OpenSSL)
# Language configuration options
option(enable-c "Enable C/C++ language support in ROSE." ON)
if (enable-c)
set(ROSE_BUILD_CXX_LANGUAGE_SUPPORT 1)
set(ROSE_BUILD_C_LANGUAGE_SUPPORT 1)
endif()
option(enable-cuda "Enable cuda support in ROSE." ON)
if (enable-cuda)
find_package(CUDA REQUIRED)
set(ROSE_BUILD_CUDA_LANGUAGE_SUPPORT 1)
endif()
option(enable-java "Enable Java support in ROSE." ON)
if (enable-java)
message(Status "Looking for JAVA ...")
include(FindJava)
find_program(GCJ gcj)
find_program(GCJH gcjh)
find_package(JNI)
set(ROSE_BUILD_JAVA_LANGUAGE_SUPPORT 1)
set(USE_ROSE_INTERNAL_JAVA_SUPPORT 1)
get_filename_component(BACKEND_JAVA_COMPILER ${Java_JAVAC_EXECUTABLE} NAME)
install(FILES ${JAVA_JVM_LIBRARY} DESTINATION lib)
endif()
option(enable-opencl "Enable OpenCL support in ROSE." ON)
if (enable-opencl)
set(ROSE_BUILD_OPENCL_LANGUAGE_SUPPORT 1)
find_path(with-opencl-inc NAMES cl.h
DOC "For OpenCL runtime library")
find_library(with-opencl-lib OpenCL DOC "OpenCL library for runtime examples")
endif()
option(enable-fortran "Enable Fortran support in ROSE." ON)
if (enable-fortran)
if (NOT enable-java)
message(FATAL_ERROR "Fortran support also requires Java support. Either turn enable-java ON, or enable-fortran OFF")
endif()
set(ROSE_BUILD_FORTRAN_LANGUAGE_SUPPORT 1)
enable_language(Fortran)
# check if gfortran was found
if(CMAKE_COMPILER_IS_GNUG77)
set(USE_GFORTRAN_IN_ROSE 1)
# query gfortran version
execute_process(
COMMAND ${CMAKE_Fortran_COMPILER} -dumpversion
OUTPUT_VARIABLE gfortran_version_output)
string(REGEX MATCH "([0-9]+\\.[0-9]+\\.[0-9]+)"
gfortran_version "${gfortran_version_output}")
message(STATUS "gfortran version ${gfortran_version} detected")
endif()
endif()
option(enable-php "Enable PHP support in ROSE." ON)
if (enable-php)
set(ROSE_BUILD_PHP_LANGUAGE_SUPPORT 1)
find_path(with-php php
DOC "Specify the prefix where PHP (and phc) is installed")
endif()
option(enable-python "Enable Python support in ROSE." OFF)
if (enable-python)
set(ROSE_BUILD_PYTHON_LANGUAGE_SUPPORT 1)
find_package(PythonLibs REQUIRED)
option(with-python "Build code that requires a Python interpreter" ON)
if(with-python)
find_package(PythonInterp)
endif()
endif()
option(enable-x10 "Enable X10 language support in ROSE." OFF)
if (enable-x10)
# TODO:
set(ROSE_BUILD_X10_LANGUAGE_SUPPORT 1)
endif()
# Other configuration options
option(disable-binary-analysis-tests
"Disable tests of ROSE binary analysis code" ON)
option(disable-tests-directory
"Disable compilation and testing of the ROSE/tests directory" OFF)
option(disable-tutorial-directory
"Disable compilation and testing of the ROSE/tutorial directory" OFF)
option(disable-projects-directory
"Disable compilation and testing of the ROSE/projects directory" ON)
option(enable-advanced-warnings
"Support for an advanced uniform warning level for ROSE development" OFF)
if (enable-advanced-warnings)
message(WARNING
"Using an advanced uniform warning level for ROSE development.")
set(ROSE_USE_UNIFORM_ADVANCED_WARNINGS_SUPPORT 1)
endif()
option(enable-assembly-semantics
"Enable semantics-based analysis of assembly code" OFF)
option(enable-binary-analysis "Enable binary analysis support in ROSE." ON)
if (enable-binary-analysis)
set(ROSE_BUILD_BINARY_ANALYSIS_SUPPORT 1)
endif()
option(enable-candl "Support for ScopLib" OFF)
if(enable-candl)
find_path(with-candl "include/candl.h"
DOC "Path to a valid Candl installation")
endif()
option(enable-cloog "Support for Cloog" OFF)
if(enable-cloog)
find_path(with-cloog "include/cloog.h"
DOC "Path to a valid Cloog installation")
endif()
option(enable-compass2 "build the Compass2 static analysis tool" OFF)
option(enable-edg-cuda "Build EDG 4.0 with CUDA support" OFF)
option(enable-edg-opencl "Build EDG 4.0 with OpenCL support" OFF)
option(enable-edg_union_struct_debugging
"Should EDG Union/Struct debugging support be used?" OFF)
if(enable-edg_union_struct_debugging)
set(USE_ROSE_EDG_DEBUGGING_SUPPORT 1)
endif()
option(enable-FLTK "Enable FLTK")
if(enable-FLTK)
find_package(FLTK REQUIRED)
endif()
option(enable-gnu-extensions
"Enable internal support in ROSE for GNU language extensions" OFF)
if(enable-gnu-extensions)
set(ROSE_SUPPORT_GNU_EXTENSIONS TRUE)
endif()
option(enable-internalFrontendDevelopment
"Enable development mode to reduce files required to support work on
language frontends" OFF)
if (enable-internalFrontendDevelopment)
set(ROSE_USE_INTERNAL_FRONTEND_DEVELOPMENT 1)
endif()
option(enable-microsoft-extensions
"Enable internal support in ROSE for GNU language extensions" OFF)
if(enable-microsoft-extensions)
set(ROSE_SUPPORT_MICROSOFT_EXTENSIONS TRUE)
endif()
set(enable-ofp-version "0.8.3" CACHE STRING "version number for OFP")
option(enable-ppl "Support for Parma Polyhedral Library" OFF)
if(enable-ppl)
find_path(with-ppl "include/ppl.h"
DOC "Path to Parma Polyhedral Library installation")
find_library(libppl ppl)
endif()
option(enable-purify-api "Enable purify API in code" OFF)
if(enable-purify-api)
set(USE_PURIFY_API 1)
endif()
option(enable-purify-linker "Augment the linker with purify." OFF)
if(enable-purify-linker)
set(USE_PURIFY 1)
set(USE_PURIFY_LINKER 1)
endif()
option(enable-rosehpct "enable build of the ROSE-HPCT module" ON)
option(enable-rose-openGL "enable openGL" OFF)
if(enable-rose-openGL)
find_package(OpenGL)
find_package(GLUT)
endif()
option(enable-scoplib "Support for ScopLib" OFF)
if(enable-scoplib)
find_path(with-scoplib "include/scolib.h"
DOC "Path to a valid ScopLib installation")
endif()
option(enable-yices "Use the Yices Satisfiability Modulo Theories (SMT)")
if(enable-yices)
find_path(with-yices bin/yices DOC
"The prefix used to install Yices.
An executable named /bin/yices should be under the specified prefix.")
endif()
set(ASSERTION_BEHAVIOR "exit" CACHE STRING
"Default behavior of failed assertions. Can be 'abort', 'exit', or 'throw'.")
if(ASSERTION_BEHAVIOR STREQUAL "abort")
add_definitions("-DROSE_ASSERTION_BEHAVIOR=ROSE_ASSERTION_ABORT")
elseif(ASSERTION_BEHAVIOR STREQUAL "exit")
add_definitions("-DROSE_ASSERTION_BEHAVIOR=ROSE_ASSERTION_EXIT")
elseif(ASSERTION_BEHAVIOR STREQUAL "throw")
add_definitions("-DROSE_ASSERTION_BEHAVIOR=ROSE_ASSERTION_THROW")
else()
message(FATAL_ERROR "ASSERTION_BEHAVIOR should be 'abort', 'exit', or 'throw'")
endif()
set(with-alternate_backend_Cxx_compiler "" CACHE STRING
"Specify an alternative C++ back-end compiler")
if(with-alternate_backend_Cxx_compiler)
if(EXISTS ${with-alternate_backend_Cxx_compiler})
set(BACKEND_CXX_COMPILER ${with-alternate_backend_Cxx_compiler})
else()
message(WARNING
"${with-alternate_backend_Cxx_compiler} does not exist.
Specify a full, absolute path to the compiler.")
endif()
endif()
set(with-alternate_backend_C_compiler "" CACHE STRING
"Specify an alternative C back-end compiler")
if(with-alternate_backend_C_compiler)
if(EXISTS ${with-alternate_backend_C_compiler})
set(BACKEND_C_COMPILER ${with-alternate_backend_C_compiler})
message(STATUS "just set backend C compiler to ${BACKEND_C_COMPILER}")
else()
message(WARNING
"${with-alternate_backend_C_compiler} does not exist.
Specify a full, absolute path to the compiler.")
endif()
endif()
set(with-alternate_backend_fortran_compiler "" CACHE STRING
"Specify an alternative fortran back-end compiler")
if(with-alternate_backend_fortran_compiler)
if(EXISTS ${with-alternate_backend_fortran_compiler})
set(BACKEND_FORTRAN_COMPILER ${with-alternate_backend_fortran_compiler})
else()
message(WARNING
"${with-alternate_backend_fortran_compiler} does not exist.
Specify a full, absolute path to the compiler.")
endif()
endif()
set(with-alternate_backend_java_compiler "" CACHE STRING
"Specify an alternative java back-end compiler")
if(with-alternate_backend_java_compiler)
if(EXISTS ${with-alternate_backend_java_compiler})
set(BACKEND_JAVA_COMPILER ${with-alternate_backend_java_compiler})
else()
message(WARNING
"${with-alternate_backend_java_compiler} does not exist.
Specify a full, absolute path to the compiler.")
endif()
endif()
find_path(with-backstroke-ross ROSS
DOC "Specify the path where ROSS is installed")
find_path(with-backstroke-speedes SPEEDES
DOC "Specify the path where SPEEDES is installed")
find_library(with-dwarf dwarf
DOC "Specify the path where libdwarf is installed")
find_library(with-gomp_omp_runtime_library gomp_omp
DOC "Specify the prefix where GOMP Runtime System is installed")
find_path(with-GraphViz_include graphviz.h
DOC "Specify the prefix where GraphViz include files are installed")
find_path(with-GraphViz_libs GraphViz_libs
DOC "Specify the prefix where GraphViz libraries are installed")
find_path(with-haskell runghc
DOC "Path to bin directory containing ghc and runghc.")
find_path(with-ida "ida2sql.py"
DOC "Specify the prefix where IDA Pro is installed")
find_path(with-insure insure++
DOC "Specify the prefix where insure++ is installed")
find_path(with-IntelPin include/IntelPinSupport.h
DOC "Specify the prefix where Intel Pin Package is installed")
find_path(with-ltdl-include ltdl.h
DOC "use the ltdl headers installed in DIR")
find_library(with-ltdl-lib ltdl DOC "Path to ltdl library")
find_path(with-llvm "llvm"
DOC "Specify the prefix where LLVM (and opt) is installed")
find_path(with-maple "include/maple.h"
DOC "Specify the prefix where Maple is installed")
find_path(with-omni_omp_runtime_support include/omni_omp.h
DOC "Specify the prefix where Omni OpenMP Runtime System is installed")
find_path(with-purify bin/purify
DOC "Specify the prefix where purify is installed")
if(with-purify)
set(USE_PURIFY 1)
endif()
find_path(with-QRose QRose DOC "prefix of QRose installation")
option(with-roseQt "Build with roseQt" OFF)
find_path(with-rted rted DOC "Configure option to have RTED enabled.")
find_path(with-smt-solver smt-solver
DOC "Specify the path to an SMT-LIB compatible SMT solver.
Used only for testing.")
find_path(with-wine "bin/wine" DOC "Specify the prefix where Wine is installed")
if (with-wine)
set(ROSE_WINE_INCLUDES -I${with-wine}/include)
endif()
# tps (01/04/2010) : added verbose output
# ------------------------- Begin Generic CMake Variable Logging ------------------
# if you are building in-source, this is the same as CMAKE_SOURCE_DIR, otherwise
# this is the top level directory of your build tree
MESSAGE( STATUS "CMAKE_BINARY_DIR: " ${CMAKE_BINARY_DIR} )
# if you are building in-source, this is the same as CMAKE_CURRENT_SOURCE_DIR, otherwise this
# is the directory where the compiled or generated files from the current CMakeLists.txt will go to
MESSAGE( STATUS "CMAKE_CURRENT_BINARY_DIR: " ${CMAKE_CURRENT_BINARY_DIR} )
# this is the directory, from which cmake was started, i.e. the top level source directory
MESSAGE( STATUS "CMAKE_SOURCE_DIR: " ${CMAKE_SOURCE_DIR} )
# this is the directory where the currently processed CMakeLists.txt is located in
MESSAGE( STATUS "CMAKE_CURRENT_SOURCE_DIR: " ${CMAKE_CURRENT_SOURCE_DIR} )
# contains the full path to the top level directory of your build tree
MESSAGE( STATUS "PROJECT_BINARY_DIR: " ${PROJECT_BINARY_DIR} )
# contains the full path to the root of your project source directory,
# i.e. to the nearest directory where CMakeLists.txt contains the PROJECT() command
MESSAGE( STATUS "PROJECT_SOURCE_DIR: " ${PROJECT_SOURCE_DIR} )
# set this variable to specify a common place where CMake should put all executable files
# (instead of CMAKE_CURRENT_BINARY_DIR)
MESSAGE( STATUS "EXECUTABLE_OUTPUT_PATH: " ${EXECUTABLE_OUTPUT_PATH} )
# set this variable to specify a common place where CMake should put all libraries
# (instead of CMAKE_CURRENT_BINARY_DIR)
MESSAGE( STATUS "LIBRARY_OUTPUT_PATH: " ${LIBRARY_OUTPUT_PATH} )
# tell CMake to search first in directories listed in CMAKE_MODULE_PATH
# when you use FIND_PACKAGE() or INCLUDE()
MESSAGE( STATUS "CMAKE_MODULE_PATH: " ${CMAKE_MODULE_PATH} )
# this is the complete path of the cmake which runs currently (e.g. /usr/local/bin/cmake)
MESSAGE( STATUS "CMAKE_COMMAND: " ${CMAKE_COMMAND} )
# this is the CMake installation directory
MESSAGE( STATUS "CMAKE_ROOT: " ${CMAKE_ROOT} )
# this is the filename including the complete path of the file where this variable is used.
MESSAGE( STATUS "CMAKE_CURRENT_LIST_FILE: " ${CMAKE_CURRENT_LIST_FILE} )
# this is linenumber where the variable is used
MESSAGE( STATUS "CMAKE_CURRENT_LIST_LINE: " ${CMAKE_CURRENT_LIST_LINE} )
# this is used when searching for include files e.g. using the FIND_PATH() command.
MESSAGE( STATUS "CMAKE_INCLUDE_PATH: " ${CMAKE_INCLUDE_PATH} )
# this is used when searching for libraries e.g. using the FIND_LIBRARY() command.
MESSAGE( STATUS "CMAKE_LIBRARY_PATH: " ${CMAKE_LIBRARY_PATH} )
# the complete system name, e.g. "Linux-2.4.22", "FreeBSD-5.4-RELEASE" or "Windows 5.1"
MESSAGE( STATUS "CMAKE_SYSTEM: " ${CMAKE_SYSTEM} )
# the short system name, e.g. "Linux", "FreeBSD" or "Windows"
MESSAGE( STATUS "CMAKE_SYSTEM_NAME: " ${CMAKE_SYSTEM_NAME} )
# only the version part of CMAKE_SYSTEM
MESSAGE( STATUS "CMAKE_SYSTEM_VERSION: " ${CMAKE_SYSTEM_VERSION} )
# the processor name (e.g. "Intel(R) Pentium(R) M processor 2.00GHz")
MESSAGE( STATUS "CMAKE_SYSTEM_PROCESSOR: " ${CMAKE_SYSTEM_PROCESSOR} )
# is TRUE on all UNIX-like OS's, including Apple OS X and CygWin
MESSAGE( STATUS "UNIX: " ${UNIX} )
# is TRUE on Windows, including CygWin
MESSAGE( STATUS "WIN32: " ${WIN32} )
# is TRUE on Apple OS X
MESSAGE( STATUS "APPLE: " ${APPLE} )
# is TRUE when using the MinGW compiler in Windows
MESSAGE( STATUS "MINGW: " ${MINGW} )
# is TRUE on Windows when using the CygWin version of cmake
MESSAGE( STATUS "CYGWIN: " ${CYGWIN} )
# is TRUE on Windows when using a Borland compiler
MESSAGE( STATUS "BORLAND: " ${BORLAND} )
# Microsoft compiler
MESSAGE( STATUS "MSVC: " ${MSVC} )
MESSAGE( STATUS "MSVC_IDE: " ${MSVC_IDE} )
MESSAGE( STATUS "MSVC60: " ${MSVC60} )
MESSAGE( STATUS "MSVC70: " ${MSVC70} )
MESSAGE( STATUS "MSVC71: " ${MSVC71} )
MESSAGE( STATUS "MSVC80: " ${MSVC80} )
MESSAGE( STATUS "CMAKE_COMPILER_2005: " ${CMAKE_COMPILER_2005} )
# set this to true if you don't want to rebuild the object files if the rules have changed,
# but not the actual source files or headers (e.g. if you changed the some compiler switches)
MESSAGE( STATUS "CMAKE_SKIP_RULE_DEPENDENCY: " ${CMAKE_SKIP_RULE_DEPENDENCY} )
# since CMake 2.1 the install rule depends on all, i.e. everything will be built before installing.
# If you don't like this, set this one to true.
MESSAGE( STATUS "CMAKE_SKIP_INSTALL_ALL_DEPENDENCY: " ${CMAKE_SKIP_INSTALL_ALL_DEPENDENCY} )
# If set, runtime paths are not added when using shared libraries. Default it is set to OFF
MESSAGE( STATUS "CMAKE_SKIP_RPATH: " ${CMAKE_SKIP_RPATH} )
# set this to true if you are using makefiles and want to see the full compile and link
# commands instead of only the shortened ones
MESSAGE( STATUS "CMAKE_VERBOSE_MAKEFILE: " ${CMAKE_VERBOSE_MAKEFILE} )
# this will cause CMake to not put in the rules that re-run CMake. This might be useful if
# you want to use the generated build files on another machine.
MESSAGE( STATUS "CMAKE_SUPPRESS_REGENERATION: " ${CMAKE_SUPPRESS_REGENERATION} )
# A simple way to get switches to the compiler is to use ADD_DEFINITIONS().
# But there are also two variables exactly for this purpose:
# the compiler flags for compiling C sources
MESSAGE( STATUS "CMAKE_C_FLAGS: " ${CMAKE_C_FLAGS} )
# the compiler flags for compiling C++ sources
MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
# Choose the type of build. Example: SET(CMAKE_BUILD_TYPE Debug)
MESSAGE( STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE} )
# if this is set to ON, then all libraries are built as shared libraries by default.
MESSAGE( STATUS "BUILD_SHARED_LIBS: " ${BUILD_SHARED_LIBS} )
# the compiler used for C files
MESSAGE( STATUS "CMAKE_C_COMPILER: " ${CMAKE_C_COMPILER} )
# the compiler used for C++ files
MESSAGE( STATUS "CMAKE_CXX_COMPILER: " ${CMAKE_CXX_COMPILER} )
# if the compiler is a variant of gcc, this should be set to 1
MESSAGE( STATUS "CMAKE_COMPILER_IS_GNUCC: " ${CMAKE_COMPILER_IS_GNUCC} )
# if the compiler is a variant of g++, this should be set to 1
MESSAGE( STATUS "CMAKE_COMPILER_IS_GNUCXX : " ${CMAKE_COMPILER_IS_GNUCXX} )
# the tools for creating libraries
MESSAGE( STATUS "CMAKE_AR: " ${CMAKE_AR} )
MESSAGE( STATUS "CMAKE_RANLIB: " ${CMAKE_RANLIB} )
# ------------------------- End of Generic CMake Variable Logging ------------------
if (NOT WIN32)
include(FindOpenSSL)
include(FindSQLITE3)
endif (NOT WIN32)
message(Status "Looking for flex ...")
find_package(FLEX)
if(NOT FLEX_FOUND)
message(FATAL_ERROR "Could not find flex command")
endif(NOT FLEX_FOUND)
message(Status "Looking for BISON ...")
include(FindBison)
FIND_BISON()
if(NOT BISON_FOUND)
message(FATAL_ERROR "Could not find BISON command")
endif(NOT BISON_FOUND)
# include(ConvenienceLibs) # Not in use
if (NOT WIN32)
find_library(M_LIB m)
find_library(RT_LIB rt)
endif (NOT WIN32)
# define a global variable to collect all common linked third-party libraries for rose
if (NOT WIN32)
set( link_with_libraries ${Boost_LIBRARIES} ${M_LIB} ${RT_LIB} ${CMAKE_THREAD_LIBS_INIT})
else (NOT WIN32)
set( link_with_libraries ${Boost_LIBRARIES} shlwapi.lib psapi.lib)
endif (NOT WIN32)
# Check compilers and version numbers, Liao 11/25/2009
# the module is located in src/cmake/modules
include(roseChooseBackendCompiler)
include(roseGenerateBackendCompilerSpecificHeaders)
# Install the directories within <bin>/include-staging
install(DIRECTORY ${CMAKE_BINARY_DIR}/include-staging/ DESTINATION include)
# --------- finish all fundamental tests, now set derivative variables
# Liao 12/1/2009, This is essential to find the right include path from either build or installation tree
# for a translator
message(Status "Running tests ...")
if (HAVE_DLFCN_H)
if (HAVE_DLADDR)
set (use_rose_in_build_tree_var TRUE)
# this following line won't work since it only set the environment variable for cmake's session
# not for ctest session. Still no good way to set it within cmake
# fortunately,
set ($ENV{ROSE_IN_BUILD_TREE} ${ROSE_TOP_BINARY_DIR})
endif (HAVE_DLADDR)
else (HAVE_DLFCN_H)
set (use_rose_in_build_tree_var, FALSE)
endif (HAVE_DLFCN_H)
set( LIBHARU_SOURCE_DIR ${ROSE_TOP_SRC_DIR}/src/3rdPartyLibraries/libharu-200910170404 )
set( LIBHARU_BINARY_DIR ${ROSE_TOP_BINARY_DIR}/src/3rdPartyLibraries/libharu-200910170404 )
set( ROSE_INCLUDES
${ROSE_TOP_BINARY_DIR}
${ROSE_TOP_BINARY_DIR}/src/frontend/SageIII/
${ROSE_TOP_BINARY_DIR}/src/frontend/SageIII/astFileIO
${ROSE_TOP_SRC_DIR}
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/sage_support
${ROSE_TOP_SRC_DIR}/src/ROSETTA/src/
${ROSE_TOP_SRC_DIR}/src
${ROSE_TOP_SRC_DIR}/src/frontend/CxxFrontend/EDG/EDG_SAGE_Connection/
${ROSE_TOP_SRC_DIR}/src/frontend/CxxFrontend/EDG/EDG_3.3/src
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/astFixup
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/astPostProcessing
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/astMerge
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/astVisualization
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/includeDirectivesProcessing
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/astFileIO
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/sageInterface
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/virtualCFG
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/astTokenStream
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/astHiddenTypeAndDeclarationLists
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/astFileIO
${ROSE_TOP_SRC_DIR}/src/frontend/SageIII/astFromString
${ROSE_TOP_SRC_DIR}/src/frontend/OpenFortranParser_SAGE_Connection
${ROSE_TOP_SRC_DIR}/src/frontend/PHPFrontend
${ROSE_TOP_SRC_DIR}/src/frontend/PythonFrontend
${ROSE_TOP_SRC_DIR}/src/frontend/BinaryFormats
${ROSE_TOP_SRC_DIR}/src/frontend/BinaryLoader
${ROSE_TOP_SRC_DIR}/src/frontend/BinaryDisassembly
${ROSE_TOP_SRC_DIR}/src/frontend/Disassemblers
${ROSE_TOP_SRC_DIR}/src/frontend/ExecFormats
${ROSE_TOP_SRC_DIR}/src/frontend
${ROSE_TOP_SRC_DIR}/src/backend/unparser
${ROSE_TOP_SRC_DIR}/src/backend/unparser/formatSupport
${ROSE_TOP_SRC_DIR}/src/backend/unparser/languageIndependenceSupport
${ROSE_TOP_SRC_DIR}/src/backend/unparser/CxxCodeGeneration
${ROSE_TOP_SRC_DIR}/src/backend/unparser/FortranCodeGeneration
${ROSE_TOP_SRC_DIR}/src/backend/unparser/JavaCodeGeneration
${ROSE_TOP_SRC_DIR}/src/backend/unparser/PHPCodeGeneration
${ROSE_TOP_SRC_DIR}/src/backend/unparser/PythonCodeGeneration