moved test block into the project’s CMakeLists.txt.
use `${CMAKE_BINARY_DIR}/lib` rather than `${CMAKE_BINARY_DIR}/ThirdParty`