Better Quality Test
This commit is contained in:
parent
952c15c1c1
commit
30e4023a2e
@ -1,28 +1,11 @@
|
|||||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12.0)
|
# The new Python3 module is much more robust than the previous PythonInterp
|
||||||
# The new Python3 module is much more robust than the previous PythonInterp
|
FIND_PACKAGE(Python3 COMPONENTS Interpreter)
|
||||||
find_package(Python3 COMPONENTS Interpreter)
|
# Set variables for backwards compatibility with cmake < 3.12.0
|
||||||
# Set variables for backwards compatibility with cmake < 3.12.0
|
SET(PYTHONINTERP_FOUND ${Python3_Interpreter_FOUND})
|
||||||
set(PYTHONINTERP_FOUND ${Python3_Interpreter_FOUND})
|
SET(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
|
||||||
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
|
|
||||||
else()
|
|
||||||
set(Python_ADDITIONAL_VERSIONS 3.8)
|
|
||||||
find_package(PythonInterp 3)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_executable(jsontestrunner_exe
|
ADD_EXECUTABLE(jsontestrunner_exe main.cpp)
|
||||||
main.cpp
|
TARGET_LINK_LIBRARIES(jsontestrunner_exe PRIVATE jsoncpp::framework)
|
||||||
)
|
|
||||||
|
|
||||||
if(BUILD_SHARED_LIBS)
|
|
||||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12.0)
|
|
||||||
add_compile_definitions( JSON_DLL )
|
|
||||||
else()
|
|
||||||
add_definitions(-DJSON_DLL)
|
|
||||||
endif()
|
|
||||||
target_link_libraries(jsontestrunner_exe jsoncpp_lib)
|
|
||||||
else()
|
|
||||||
target_link_libraries(jsontestrunner_exe jsoncpp_static)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set_target_properties(jsontestrunner_exe PROPERTIES OUTPUT_NAME jsontestrunner_exe)
|
set_target_properties(jsontestrunner_exe PROPERTIES OUTPUT_NAME jsontestrunner_exe)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user