diff options
Diffstat (limited to 'src/modules/python/CMakeLists.txt')
| -rw-r--r-- | src/modules/python/CMakeLists.txt | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/modules/python/CMakeLists.txt b/src/modules/python/CMakeLists.txt index e9c44a622..668608d4f 100644 --- a/src/modules/python/CMakeLists.txt +++ b/src/modules/python/CMakeLists.txt @@ -1,12 +1,16 @@ # CMakeLists for src/modules/python +# +# Only build this, if WITH_PYTHON was set and passed to CMake -SET(kvipython_SRCS - libkvipython.cpp -) +IF(WANT_PYTHON) + SET(kvipython_SRCS + libkvipython.cpp + ) -# After this call, files will be moc'ed to moc_kvi_*.cpp -QT4_WRAP_CPP(kvipython_MOC_SRCS ${kvipython_MOC_HDRS}) + # After this call, files will be moc'ed to moc_kvi_*.cpp + QT4_WRAP_CPP(kvipython_MOC_SRCS ${kvipython_MOC_HDRS}) -SET(kvi_module_name kvipython) + SET(kvi_module_name kvipython) -INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt) + INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt) +ENDIF(WANT_PYTHON) |
