Resolve CMakeLists.txt problem with header

master
rifki sadikin 6 years ago
parent 25b633b696
commit b0f7674d86
  1. 5
      example/CMakeLists.txt
  2. 2
      example/PoissonSolver3DGPUTest.cpp
  3. 2
      example/PoissonSolver3DGPUTest.h
  4. 4
      gpuapp/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)

@ -1,5 +1,7 @@
#include "PoissonSolver3DGPUTest.h"
// test case test
int main()
{
return 1;

@ -2,7 +2,7 @@
#define POISSONSOLVERGPU3DGPUTEST_H
#include <iostream>
#include "gpulib/PoissonSolver3DGPU.h"
#include "PoissonSolver3DGPU.h"
#endif

@ -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)

Loading…
Cancel
Save