Find Python dynamically so it works on Windows too

This commit is contained in:
Micke Prag 2012-12-04 16:12:54 +01:00
parent 7d0f3747fe
commit 81946e9887

View file

@ -26,10 +26,11 @@ FUNCTION(ADD_SOURCES TARGET PATH)
FOREACH(SOURCE ${SOURCES})
LIST(APPEND L ${PATH}/${SOURCE})
ENDFOREACH()
ADD_TEST(StyleGuidelines-${TARGET} ${CMAKE_CURRENT_SOURCE_DIR}/cpplint.py --filter=${cpplint_filters} ${L})
ADD_TEST(StyleGuidelines-${TARGET} ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/cpplint.py --filter=${cpplint_filters} ${L})
ENDFUNCTION()
IF(ENABLE_TESTING)
INCLUDE(FindPythonInterp)
FIND_LIBRARY(CPPUNIT cppunit)
ADD_SUBDIRECTORY(common)
ADD_SUBDIRECTORY(service)