From d68c44fbb799c66f2e6dfa29736968ebb9911021 Mon Sep 17 00:00:00 2001 From: boufaras Date: Tue, 25 Oct 2011 14:02:05 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2517 331e1502-861f-0410-8da2-ba01fb791d7f --- .../QAP_CPU/application/CMakeLists.txt | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 trunk/paradiseo-gpu/tutorial/QAP_CPU/application/CMakeLists.txt diff --git a/trunk/paradiseo-gpu/tutorial/QAP_CPU/application/CMakeLists.txt b/trunk/paradiseo-gpu/tutorial/QAP_CPU/application/CMakeLists.txt new file mode 100644 index 000000000..e15b9da21 --- /dev/null +++ b/trunk/paradiseo-gpu/tutorial/QAP_CPU/application/CMakeLists.txt @@ -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) \ No newline at end of file