@@ -6,7 +6,6 @@ INCLUDE(CheckFunctionExists)
6
6
7
7
PROJECT (ca_smoothing )
8
8
9
-
10
9
find_package (VTK REQUIRED )
11
10
include (${VTK_USE_FILE} )
12
11
@@ -16,13 +15,16 @@ INCLUDE(${SWIG_USE_FILE})
16
15
FIND_PACKAGE (PythonLibs )
17
16
INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH} )
18
17
18
+ INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR} )
19
19
20
20
add_library (ca_smoothing SHARED ca_smoothing.cxx )
21
21
add_executable (ca_smoothing_app ca_smoothing_app.cxx )
22
+
23
+ SET (Libraries vtkPythonCore )
22
24
23
25
if (VTK_LIBRARIES )
24
- target_link_libraries (ca_smoothing ${VTK_LIBRARIES} )
25
- target_link_libraries (ca_smoothing_app ca_smoothing ${VTK_LIBRARIES} )
26
+ target_link_libraries (ca_smoothing ${VTK_LIBRARIES} ${Libraries } )
27
+ target_link_libraries (ca_smoothing_app ca_smoothing ${VTK_LIBRARIES} ${Libraries } )
26
28
else ()
27
29
target_link_libraries (ca_smoothing vtkHybrid )
28
30
endif ()
@@ -31,10 +33,10 @@ SET_SOURCE_FILES_PROPERTIES(ca_smoothing.i PROPERTIES CPLUSPLUS ON)
31
33
#SET_SOURCE_FILES_PROPERTIES(ca_smoothing.i PROPERTIES SWIG_FLAGS "-includeall")
32
34
33
35
SWIG_ADD_MODULE (ca_smoothing python ca_smoothing.i ca_smoothing.cxx )
34
- SWIG_LINK_LIBRARIES (ca_smoothing ${PYTHON_LIBRARIES} ${VTK_LIBRARIES} )
36
+ SWIG_LINK_LIBRARIES (ca_smoothing ${PYTHON_LIBRARIES} ${VTK_LIBRARIES} ${Libraries} )
35
37
36
38
IF (CMAKE_COMPILER_IS_GNUCXX )
37
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" )
39
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x " )
38
40
ENDIF (CMAKE_COMPILER_IS_GNUCXX )
39
41
40
42
CHECK_INCLUDE_FILE_CXX (unordered_map HAVE_CXX0X )
0 commit comments