From af446d08a29c448474d35b447a099d1dde836372 Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 29 Sep 2011 13:59:42 +0000 Subject: [PATCH] updated git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2433 331e1502-861f-0410-8da2-ba01fb791d7f --- .../tutoriel/PPP_GPU/CMakeLists.txt | 48 ++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/branches/ParadisEO-GPU/tutoriel/PPP_GPU/CMakeLists.txt b/branches/ParadisEO-GPU/tutoriel/PPP_GPU/CMakeLists.txt index 8bf58768d..3dffa681e 100644 --- a/branches/ParadisEO-GPU/tutoriel/PPP_GPU/CMakeLists.txt +++ b/branches/ParadisEO-GPU/tutoriel/PPP_GPU/CMakeLists.txt @@ -1 +1,47 @@ -ADD_SUBDIRECTORY(application) \ No newline at end of file +############################################################################## +## +## CMakeLists file for OneMax Example/application +## +############################################################################### + + +###################################################################################### +### 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(GPUtestSimpleTS_PPP testSimpleTS_PPP.cu) + +TARGET_LINK_LIBRARIES(GPUtestSimpleTS_PPP eoutils ga eo) + + +