-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (27 loc) · 1.23 KB
/
CMakeLists.txt
File metadata and controls
33 lines (27 loc) · 1.23 KB
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
set(TRANSFORM_SOURCES Passes.cpp ExprPropagation.cpp Inline.cpp RenameLocal.cpp
DeadDeclsElimination.cpp Format.cpp OpenMPAutoPar.cpp DVMHWriter.cpp
SharedMemoryAutoPar.cpp DVMHDirecitves.cpp DVMHSMAutoPar.cpp
DVMHDataTransferIPO.cpp StructureReplacement.cpp LoopInterchange.cpp
LoopReversal.cpp RemoveRedarray.cpp)
if(MSVC_IDE)
file(GLOB_RECURSE TRANSFORM_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/include/tsar/Transform/Clang/*.h)
file(GLOB_RECURSE TRANSFORM_INTERNAL_HEADERS
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h)
source_group(bcl FILES ${BCL_CORE_HEADERS})
endif()
add_library(TSARTransformClang STATIC
${TRANSFORM_SOURCES} ${TRANSFORM_HEADERS} ${TRANSFORM_INTERNAL_HEADERS})
if(MSVC)
target_compile_options(TSARTransformClang
PRIVATE $<$<NOT:$<CONFIG:Release>>:/bigobj>)
endif()
if(NOT PACKAGE_LLVM)
add_dependencies(TSARTransformClang ${CLANG_LIBS} ${LLVM_LIBS})
endif()
add_dependencies(TSARTransformClang DirectivesGen DiagnosticKinds
IntrinsicsGen AttributesGen)
target_link_libraries(TSARTransformClang TSARAnalysisClang TSARTool BCL::Core)
set_target_properties(TSARTransformClang PROPERTIES
FOLDER "${TSAR_LIBRARY_FOLDER}"
COMPILE_DEFINITIONS $<$<NOT:$<CONFIG:Debug>>:NDEBUG>)