cling/tools/driver/CMakeLists.txt
Bertrand Bellenot 79c8fc1d7c Build cling.exe on Windows using the CMake object libraries
This allows to export the symbols from the executable, using the next version of CMake (not yet in the git master version of CMake)
2016-07-21 11:59:27 +02:00

34 lines
893 B
CMake

#------------------------------------------------------------------------------
# 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.
#------------------------------------------------------------------------------
# Keep symbols for JIT resolution
set(LLVM_NO_DEAD_STRIP 1)
add_cling_executable(cling
cling.cpp
$<TARGET_OBJECTS:obj.clingInterpreter>
$<TARGET_OBJECTS:obj.clingMetaProcessor>
$<TARGET_OBJECTS:obj.clingUtils>
)
set_target_properties(cling
PROPERTIES ENABLE_EXPORTS 1)
if(MSVC)
set_target_properties(cling
PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS 1)
endif(MSVC)
target_link_libraries(cling
LLVMSupport
clingUserInterface
)
install(TARGETS cling
RUNTIME DESTINATION bin)