updated
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2440 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
2ad3f608c1
commit
7071f450f8
1 changed files with 39 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
||||||
|
######################################################################################
|
||||||
|
### 1) Include the sources
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(
|
||||||
|
|
||||||
|
# include CUDA source directory
|
||||||
|
${CUDA_SRC_DIR}
|
||||||
|
# include EO source directory
|
||||||
|
${PARADISEO_EO_SRC_DIR}/src
|
||||||
|
# include MO source directory
|
||||||
|
${PARADISEO_MO_SRC_DIR}/src
|
||||||
|
# include problems directory
|
||||||
|
${PARADISEO_PROBLEMS_SRC_DIR}
|
||||||
|
# include GPU directory
|
||||||
|
${PARADISEO_GPU_SRC_DIR}
|
||||||
|
# include your source directory
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../src
|
||||||
|
)
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
### 2) Specify where CMake can find the libraries
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
LINK_DIRECTORIES(${PARADISEO_EO_BIN_DIR}/lib ${CUDA_LIB_DIR} )
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
######################################################################################
|
||||||
|
### 3) Define your targets and link the librairies
|
||||||
|
######################################################################################
|
||||||
|
|
||||||
|
CUDA_ADD_EXECUTABLE(CutestSimpleTS_CPU testSimpleTS_CPU.cu)
|
||||||
|
CUDA_ADD_EXECUTABLE(CutestSimpleHC_CPU testSimpleHC_CPU.cu)
|
||||||
|
|
||||||
|
TARGET_LINK_LIBRARIES(CutestSimpleTS_CPU eoutils ga eo)
|
||||||
|
TARGET_LINK_LIBRARIES(CutestSimpleHC_CPU eoutils ga eo)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue