-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_with_tpl.cmake
37 lines (28 loc) · 1.29 KB
/
build_with_tpl.cmake
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
34
35
36
37
message(STATUS "Building with TPL")
set(vt_DIR "" CACHE STRING "Path to VT")
set(checkpoint_DIR "" CACHE STRING "Path to checkpoint")
# Create symbolic links for adding as a subdirectory to test with all DARMA
# libraries at the same level
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${vt_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/TPL/vt)
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${checkpoint_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/TPL/checkpoint)
add_subdirectory(TPL/checkpoint)
add_subdirectory(TPL/vt)
#################### VT RUNTIME SAMPLE #####################
set(RUNTIME_SAMPLE vt-runtime-sample)
add_executable(
${RUNTIME_SAMPLE}
"${CMAKE_SOURCE_DIR}/vt-runtime/src/sample.h"
"${CMAKE_SOURCE_DIR}/vt-runtime/src/sample.cc"
)
target_link_libraries(${RUNTIME_SAMPLE} PUBLIC magistrate)
target_link_libraries(${RUNTIME_SAMPLE} PUBLIC vt)
############################################################
################### VT TRACE-ONLY SAMPLE ###################
set(TRACE_ONLY_SAMPLE vt-trace-only-sample)
add_executable(
${TRACE_ONLY_SAMPLE}
"${CMAKE_SOURCE_DIR}/vt-trace-only/src/sample.cc"
)
target_link_libraries(${TRACE_ONLY_SAMPLE} PUBLIC magistrate)
target_link_libraries(${TRACE_ONLY_SAMPLE} PUBLIC vt-trace)
############################################################