From b0f7674d86f35f1b3946e8ea8ff1351a45c6b286 Mon Sep 17 00:00:00 2001 From: rifki sadikin Date: Fri, 28 Sep 2018 22:59:10 +0700 Subject: [PATCH] Resolve CMakeLists.txt problem with header --- example/CMakeLists.txt | 5 +++-- example/PoissonSolver3DGPUTest.cpp | 2 ++ example/PoissonSolver3DGPUTest.h | 2 +- gpuapp/CMakeLists.txt | 4 ---- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 50a984b..9d08431 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -38,10 +38,11 @@ endif(PSLIB_NOTFOUND GREATER -1) # install(TARGETS poissonsolvergputest DESTINATION bin) - +INCLUDE_DIRECTORIES( + ${CMAKE_PREFIX_PATH}/include +) set(CPP_SOURCE PoissonSolver3DGPUTest.cpp) set(HEADERS PoissonSolver3DGPUTest.h) add_executable(poissonsolvergputest ${CPP_SOURCE} ${PSLIB}) - install(TARGETS poissonsolvergputest DESTINATION bin) diff --git a/example/PoissonSolver3DGPUTest.cpp b/example/PoissonSolver3DGPUTest.cpp index da4aa2b..d645481 100644 --- a/example/PoissonSolver3DGPUTest.cpp +++ b/example/PoissonSolver3DGPUTest.cpp @@ -1,5 +1,7 @@ #include "PoissonSolver3DGPUTest.h" + +// test case test int main() { return 1; diff --git a/example/PoissonSolver3DGPUTest.h b/example/PoissonSolver3DGPUTest.h index 8df4120..2441220 100644 --- a/example/PoissonSolver3DGPUTest.h +++ b/example/PoissonSolver3DGPUTest.h @@ -2,7 +2,7 @@ #define POISSONSOLVERGPU3DGPUTEST_H #include -#include "gpulib/PoissonSolver3DGPU.h" +#include "PoissonSolver3DGPU.h" #endif diff --git a/gpuapp/CMakeLists.txt b/gpuapp/CMakeLists.txt index 1bd1872..7321742 100644 --- a/gpuapp/CMakeLists.txt +++ b/gpuapp/CMakeLists.txt @@ -4,7 +4,3 @@ cuda_add_executable(poissonsolvertest ) target_link_libraries(poissonsolvertest PoissonSolver3DGPU) -INSTALL(FILES PoissonSolver3DGPUTest.cpp PoissonSolver3DGPUTest.h - DESTINATION example) -INSTALL(FILES "${CMAKE_BINARY_DIR}/gpuapp/poissonsolvertest" - DESTINATION example)