-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
24 lines (20 loc) · 941 Bytes
/
CMakeLists.txt
File metadata and controls
24 lines (20 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
set(TRANSFORM_SOURCES Passes.cpp DeadCodeElimination.cpp InterprocAttr.cpp
MetadataUtils.cpp Utils.cpp CallExtractor.cpp DependenceInliner.cpp
NoCaptureAnalysis.cpp MallocWrapper.cpp)
if(MSVC_IDE)
file(GLOB_RECURSE TRANSFORM_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/include/tsar/Transform/IR/*.h)
file(GLOB_RECURSE TRANSFORM_INTERNAL_HEADERS
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h)
source_group(bcl FILES ${BCL_CORE_HEADERS})
endif()
add_library(TSARTransformIR STATIC
${TRANSFORM_SOURCES} ${TRANSFORM_HEADERS} ${TRANSFORM_INTERNAL_HEADERS})
if(NOT PACKAGE_LLVM)
add_dependencies(TSARTransformIR ${LLVM_LIBS})
endif()
add_dependencies(TSARTransformIR TSARAnalysisMemory IntrinsicsGen AttributesGen)
target_link_libraries(TSARTransformIR BCL::Core)
set_target_properties(TSARTransformIR PROPERTIES
FOLDER "${TSAR_LIBRARY_FOLDER}"
COMPILE_DEFINITIONS $<$<NOT:$<CONFIG:Debug>>:NDEBUG>)