2014-01-07 14:57:25 +04:00
#------------------------------------------------------------------------------
# CLING - the C++ LLVM-based InterpreterG :)
#
# This file is dual-licensed: you can choose to license it under the University
# of Illinois Open Source License or the GNU Lesser General Public License. See
# LICENSE.TXT for details.
#------------------------------------------------------------------------------
2012-09-05 13:37:39 +04:00
set ( LLVM_LINK_COMPONENTS
$ { L L V M _ T A R G E T S _ T O _ B U I L D }
a s m p a r s e r
b i t r e a d e r
b i t w r i t e r
c o d e g e n
l i n k e r
s u p p o r t
m c
e x e c u t i o n e n g i n e
t a r g e t
j i t
x 8 6 i n f o
x 8 6 a s m p r i n t e r
)
#set(LLVM_USED_LIBS
# clingWhatever
#)
add_cling_library ( clingInterpreter
A S T D u m p e r . c p p
A S T N o d e E r a s e r . c p p
2013-03-01 20:22:32 +04:00
A u t o S y n t h e s i z e r . c p p
2013-10-30 18:59:05 +04:00
C h e c k E m p t y T r a n s a c t i o n T r a n s f o r m e r . c p p
2012-09-05 13:37:39 +04:00
C I F a c t o r y . c p p
2013-09-20 14:01:10 +04:00
C l a n g I n t e r n a l S t a t e . c p p
2012-09-05 13:37:39 +04:00
D e c l C o l l e c t o r . c p p
D e c l E x t r a c t o r . c p p
2013-09-24 18:24:53 +04:00
D y n a m i c L i b r a r y M a n a g e r . c p p
2012-09-05 13:37:39 +04:00
D y n a m i c L o o k u p . c p p
D y n a m i c E x p r I n f o . c p p
E x e c u t i o n C o n t e x t . c p p
I n c r e m e n t a l P a r s e r . c p p
I n t e r p r e t e r . c p p
2012-10-09 14:29:44 +04:00
I n t e r p r e t e r C a l l b a c k s . c p p
2012-09-05 13:37:39 +04:00
I n v o c a t i o n O p t i o n s . c p p
2013-09-17 18:49:58 +04:00
I R D u m p e r . c p p
2012-09-05 13:37:39 +04:00
L o o k u p H e l p e r . c p p
2013-09-17 18:49:58 +04:00
N u l l D e r e f P r o t e c t i o n T r a n s f o r m e r . c p p
2012-11-02 12:11:24 +04:00
R e q u i r e d S y m b o l s . c p p
2012-10-15 18:30:58 +04:00
R e t u r n S y n t h e s i z e r . c p p
2013-09-17 18:49:58 +04:00
R u n t i m e E x c e p t i o n . c p p
2012-10-05 17:01:15 +04:00
S t o r e d V a l u e R e f . c p p
2012-09-05 13:37:39 +04:00
T r a n s a c t i o n . c p p
2012-10-26 17:21:09 +04:00
T r a n s a c t i o n T r a n s f o r m e r . c p p
2013-02-25 11:47:39 +04:00
V a l u e . c p p
2012-09-05 13:37:39 +04:00
V a l u e P r i n t e r . c p p
V a l u e P r i n t e r I n f o . c p p
V a l u e P r i n t e r S y n t h e s i z e r . c p p
)
2013-09-17 18:49:58 +04:00
set_source_files_properties ( RuntimeException.cpp COMPILE_FLAGS -fexceptions )
2012-09-05 13:37:39 +04:00
#add_dependencies(clangDriver ClangAttrList ClangDiagnosticDriver
# ClangDriverOptions ClangCC1Options ClangCC1AsOptions)
2014-01-14 19:14:18 +04:00
add_file_dependencies ( ${ CMAKE_CURRENT_SOURCE_DIR } /CIFactory.cpp
$ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / c l i n g - c o m p i l e d a t a . h )
2014-02-10 13:35:34 +04:00
# Remove all -I from CMAKE_CXX_FLAGS
set ( CMAKE_CXX_FLAGS_NO_I ${ CMAKE_CXX_FLAGS } )
2014-01-14 19:14:18 +04:00
file ( WRITE ${ CMAKE_CURRENT_BINARY_DIR } /cling-compiledata.h
2014-02-10 13:35:34 +04:00
" #define LLVM_CXX \"${CMAKE_CXX_COMPILER} ${CMAKE_CXX_FLAGS_NO_I} ${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE}}\"
2014-01-14 19:14:18 +04:00
" )