- enable_testing()
- include_directories(${CHECK_INCLUDE_DIRS})
- set(LIBS ${LIBS} ${CHECK_LIBRARIES} pcsc_cpptools)
- include_directories(. ../src)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -I/usr/include/PCSC -I${CMAKE_SOURCE_DIR}/src/include")
- add_executable(test_pcsc_cpp_tools test_pcsc_cpp_tools.cpp)
- target_link_libraries(test_pcsc_cpp_tools ${LIBS})
- add_test(test_pcsc_cpp_tools ${CMAKE_CURRENT_BINARY_DIR}/test_pcsc_cpp_tools)
|