-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathSourceList.cmake
35 lines (27 loc) · 1.05 KB
/
SourceList.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
#---------------------------------------------------------------------
# Set some variables to shorten up the call to the function below
set(APP_DIR ${EMsoftOO_SOURCE_DIR}/opencl)
#---------------------------------------------------------------------
# Aggregate all the OpenCL files that are needed
set(EMSoft_CL_SRCS
${APP_DIR}/DictIndx.cl
${APP_DIR}/EMMC.cl
${APP_DIR}/EMMCfoil.cl
${APP_DIR}/EMMCxyz.cl
${APP_DIR}/MBmoduleOpenCL.cl
)
if(NOT EXISTS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/opencl")
file(MAKE_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/opencl")
endif()
foreach(file ${EMSoft_CL_SRCS})
file(COPY "${file}" DESTINATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/opencl/")
endforeach()
#---------------------------------------------------------------------
# This sets up the two variables install_dir and lib_install_dir
EMsoft_SetupInstallDirs()
#---------------------------------------------------------------------
# Create the Installation Rules
INSTALL(FILES ${EMSoft_CL_SRCS}
COMPONENT Applications
DESTINATION ${extra_install_dir}/opencl
)