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)
This commit is contained in:
Bertrand Bellenot 2016-07-21 11:42:47 +02:00 committed by sftnight
parent 0d24d146df
commit 79c8fc1d7c

View File

@ -10,18 +10,23 @@
set(LLVM_NO_DEAD_STRIP 1)
add_cling_executable(cling
cling.cpp)
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
clingMetaProcessor
clingInterpreter
clingUtils
)
install(TARGETS cling