Find Python dynamically so it works on Windows too
This commit is contained in:
parent
7d0f3747fe
commit
81946e9887
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue