Mercurial > hg > kwantix
annotate src/CMakeLists.txt @ 37:e87cb53283b4
imported patch vtk-patch
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Thu, 11 Mar 2010 23:55:38 -0600 |
parents | 22f78a6faa3e |
children | 6cdad791f16f |
rev | line source |
---|---|
25
6c6003bcad16
Cleanup, work on VTK code
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
1 include (${CMAKE_ROOT}/Modules/FindVTK.cmake) |
35
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
2 include (FindGSL.cmake) |
25
6c6003bcad16
Cleanup, work on VTK code
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
3 |
6c6003bcad16
Cleanup, work on VTK code
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
4 if (USE_VTK_FILE) |
28
0af772242000
Reorganise source tree
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
25
diff
changeset
|
5 include(${USE_VTK_FILE}) |
25
6c6003bcad16
Cleanup, work on VTK code
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
6 endif (USE_VTK_FILE) |
6c6003bcad16
Cleanup, work on VTK code
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
7 |
35
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
8 set(PEDANTIC_COMPILE_FLAGS |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
9 "-Wall -pedantic -Werror -W -Wconversion -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fshort-enums -fno-common -Wfatal-errors -Wno-deprecated -std=c++0x" |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
10 ) |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
11 set(LAX_COMPILE_FLAGS |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
12 "-Wall -Wfatal-errors -std=c++0x" |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
13 ) |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
14 |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
15 if(CMAKE_BUILD_TYPE STREQUAL "Debug") |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
16 set(PEDANTIC_COMPILE_FLAGS "${PEDANTIC_COMPILE_FLAGS} -pg") |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
17 set(LAX_COMPILE_FLAGS "${LAX_COMPILE_FLAGS} -pg") |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
18 endif() |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
19 |
37
e87cb53283b4
imported patch vtk-patch
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
35
diff
changeset
|
20 include_directories("include/") |
e87cb53283b4
imported patch vtk-patch
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
35
diff
changeset
|
21 |
35
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
22 set(KWANTIX_SOURCES |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
23 bvp |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
24 ddm |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
25 diff_op |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
26 error |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
27 func |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
28 interpolator |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
29 interp_values |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
30 linalg |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
31 rbf |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
32 utils |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
33 main |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
34 ) |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
35 |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
36 set( |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
37 VTK_SOURCES |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
38 vtkplot |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
39 ) |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
40 |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
41 set_source_files_properties( |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
42 ${KWANTIX_SOURCES} |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
43 PROPERTIES COMPILE_FLAGS ${PEDANTIC_COMPILE_FLAGS} |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
44 ) |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
45 |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
46 set_source_files_properties( |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
47 ${VTK_SOURCES} |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
48 PROPERTIES COMPILE_FLAGS ${LAX_COMPILE_FLAGS} |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
49 ) |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
50 |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
51 add_executable(kwantix ${KWANTIX_SOURCES} ${VTK_SOURCES}) |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
52 target_link_libraries(kwantix |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
53 vtkRendering |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
54 ${GSL_LIBRARIES} |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
55 ${GSL_CBLAS_LIBRARIES} |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
56 ) |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
57 |
22f78a6faa3e
Migrate the build system to CMake, tweak Doxyfile, add vtkplot.cpp as a skeleton for a VTK plotting class
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
31
diff
changeset
|
58 set_target_properties(kwantix PROPERTIES RUNTIME_OUTPUT_DIRECTORY "../") |