|
Revision 174:d204809217c6, 0.8 KB
(checked in by Andreas Schaefer <gentryx@…>, 14 months ago)
|
|
testing vectorized struct of arrays prototype
|
| Line | |
|---|
| 1 | set(RELATIVE_PATH "") |
|---|
| 2 | include(auto.cmake) |
|---|
| 3 | |
|---|
| 4 | find_package(Qt4) |
|---|
| 5 | |
|---|
| 6 | # fixme: introduce feature "with/without qt" |
|---|
| 7 | # fixme: use configure script to find opencv, same in latticegas |
|---|
| 8 | execute_process(COMMAND pkg-config opencv --cflags --libs |
|---|
| 9 | OUTPUT_VARIABLE OPENCV_FLAGS) |
|---|
| 10 | STRING(REGEX REPLACE "\n" "" OPENCV_FLAGS ${OPENCV_FLAGS}) |
|---|
| 11 | set(CMAKE_CXX_FLAGS "${OPENCV_FLAGS} ${CMAKE_CXX_FLAGS} -fopenmp") |
|---|
| 12 | |
|---|
| 13 | include(${QT_USE_FILE}) |
|---|
| 14 | |
|---|
| 15 | set(MY_HEADERS |
|---|
| 16 | canvaswriter.h |
|---|
| 17 | flowwidget.h |
|---|
| 18 | framegrabber.h |
|---|
| 19 | interactivesimulator.h) |
|---|
| 20 | |
|---|
| 21 | QT4_WRAP_CPP(MY_MOC_SOURCES ${MY_HEADERS}) |
|---|
| 22 | include_directories(./) |
|---|
| 23 | |
|---|
| 24 | set(CUDA_TOOLKIT_ROOT_DIR "/opt/cuda") |
|---|
| 25 | find_package(CUDA) |
|---|
| 26 | find_package(Qt4) |
|---|
| 27 | |
|---|
| 28 | if (CUDA_FOUND) |
|---|
| 29 | cuda_add_executable(flowingcanvas ${SOURCES} ${MY_MOC_SOURCES}) |
|---|
| 30 | target_link_libraries(flowingcanvas ${LOCAL_LIBGEODECOMP_LINK_LIB} ${QT_LIBRARIES}) |
|---|
| 31 | endif(CUDA_FOUND) |
|---|
| 32 | |
|---|