git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2517 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
449c894517
commit
d68c44fbb7
1 changed files with 39 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
|||
######################################################################################
|
||||
### 1) Include the sources
|
||||
######################################################################################
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
|
||||
# include CUDA source directory
|
||||
${GPU_SRC_DIR}
|
||||
# include EO source directory
|
||||
${EO_SRC_DIR}/src
|
||||
# include MO source directory
|
||||
${MO_SRC_DIR}/src
|
||||
# include problems directory
|
||||
${PROBLEMS_SRC_DIR}
|
||||
# include GPU directory
|
||||
${GPU_SRC_DIR}/src
|
||||
# include your source directory
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../src
|
||||
)
|
||||
|
||||
######################################################################################
|
||||
|
||||
######################################################################################
|
||||
### 2) Specify where CMake can find the libraries
|
||||
######################################################################################
|
||||
|
||||
LINK_DIRECTORIES(${EO_BIN_DIR}/lib ${CUDA_DIR}/lib )
|
||||
|
||||
######################################################################################
|
||||
|
||||
######################################################################################
|
||||
### 3) Define your targets and link the librairies
|
||||
######################################################################################
|
||||
|
||||
CUDA_ADD_EXECUTABLE(testSimpleTS_CPU testSimpleTS_CPU.cu)
|
||||
CUDA_ADD_EXECUTABLE(testSimpleHC_CPU testSimpleHC_CPU.cu)
|
||||
|
||||
TARGET_LINK_LIBRARIES(testSimpleTS_CPU eoutils ga eo)
|
||||
TARGET_LINK_LIBRARIES(testSimpleHC_CPU eoutils ga eo)
|
||||
Loading…
Add table
Add a link
Reference in a new issue