git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2604 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
9913a1c890
commit
3157e1f491
13 changed files with 1210 additions and 0 deletions
67
branches/ParadisEO-GPU/paradiseo-gpu/test/CMakeLists.txt
Normal file
67
branches/ParadisEO-GPU/paradiseo-gpu/test/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
######################################################################################
|
||||
### 1) Include the sources
|
||||
######################################################################################
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
|
||||
# include CUDA source directory
|
||||
${CUDA_DIR}/include
|
||||
# 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_DIR}/lib )
|
||||
|
||||
|
||||
######################################################################################
|
||||
|
||||
######################################################################################
|
||||
### 3) Define your targets and link the librairies
|
||||
######################################################################################
|
||||
|
||||
SET (TEST_LIST
|
||||
t-moGPUBitVector
|
||||
t-moGPUIntVector
|
||||
t-moGPURealVector
|
||||
t-moGPUPermutationVector
|
||||
t-moGPUMemory
|
||||
t-moGPUObject
|
||||
t-moGPUBitNeighbor
|
||||
t-moGPUXBitFlippingNeighbor
|
||||
t-moGPUXSwapNeighbor
|
||||
)
|
||||
|
||||
FOREACH (test ${TEST_LIST})
|
||||
SET ("T_${test}_SOURCES" "${test}.cu")
|
||||
ENDFOREACH (test)
|
||||
|
||||
|
||||
IF(ENABLE_CMAKE_TESTING)
|
||||
|
||||
# Add the tests
|
||||
FOREACH (test ${TEST_LIST})
|
||||
CUDA_ADD_EXECUTABLE(${test} ${T_${test}_SOURCES})
|
||||
ADD_TEST(${test} ${test})
|
||||
ENDFOREACH (test)
|
||||
|
||||
# Link the librairies
|
||||
FOREACH (test ${TEST_LIST})
|
||||
TARGET_LINK_LIBRARIES(${test} ga es eoutils eo)
|
||||
ENDFOREACH (test)
|
||||
|
||||
ENDIF(ENABLE_CMAKE_TESTING)
|
||||
|
||||
######################################################################################
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue