set(TARGET_NAME "speedtest")

file(GLOB_RECURSE BUILD_SRC *.cpp *.h)
add_executable(${TARGET_NAME} ${BUILD_SRC})

target_link_directories(${TARGET_NAME} PUBLIC ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
target_link_libraries(${TARGET_NAME} PUBLIC tbplas)

# if(WIN32)
#     target_link_libraries(${TARGET_NAME} PUBLIC shlwapi)
# elseif(UNIX)
#     target_link_libraries(${TARGET_NAME} PUBLIC pthread)
# endif()

# # Install only plotting scripts, since the users are likely to modify the
# # calculation scripts when learning the examples, which may conflict the
# # installed version of files.
# file(GLOB PY_FILES "${CMAKE_CURRENT_SOURCE_DIR}/plot_*.py")
# list(APPEND PY_FILES utils.py)
# install(
#     FILES ${PY_FILES}
#     DESTINATION ${TBPLAS_SAMPLES_SRC_INSTALL_PATH}/${TARGET_NAME}
#     PERMISSIONS
#         OWNER_READ OWNER_WRITE OWNER_EXECUTE
#         GROUP_READ GROUP_EXECUTE
#         WORLD_READ WORLD_WRITE)
